Web Hosting Talk







View Full Version : How to install Midnight commander


Im_Goodspeed
11-21-2004, 06:14 PM
Midnight Commander is a very useful file manager.

To run midnight commander (http://www.ibiblio.org/mc/) you need glib 1.x.x. or newer.

1. Install glib
# wget ftp://ftp.gtk.org/pub/gtk/v2.5/glib-2.5.6.tar.gz
# tar zxvf glib-2.5.6.tar.gz
# cd glib-2.5.6
# ./configure --prefix=/usr
# make
# make install

NOTE. If you're installing Glib 2.x.x configure it with /usr directory.

2. Install Midnight Commander
# wget http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-4.6.0.tar.gz
# tar zxvf mc-4.6.0.tar.gz
# cd mc-4.6.0
# ./configure
# make
# make install

To run Midnight commander use

#mc

Also, you may add mouse support. Install gpm daemon (http://linux.schottelius.org/gpm/) to get it work with mouse.

Enjoy!

lvalics
12-31-2004, 02:51 AM
A faster way can be to intall it with YUM, will resolve depenencies as well.

WARP3
12-31-2004, 02:56 AM
Yum is not available on all platforms. Installing from source is 99% available.


On a sidenote.. anyone knows a secure alternative to mc ?
For some customers, i want to make available something like mc, but one that can be chroot'ed to their homedir.

yourmail
01-24-2005, 01:50 AM
how can be installed with yum ??

lvalics
01-24-2005, 02:50 AM
yum install mc

yourmail
01-24-2005, 03:54 AM
it says package mc not found !!!

lvalics
01-24-2005, 04:12 AM
[base]
name=Atomic Rocket Turtle - $releasever - Base OS RPMS mirror
baseurl=http://3es.atomicrocketturtle.com/3rd-party/base/$releasever/

[updates]
name=Atomic Rocket Turtle - $releasever - OS Update RPMS mirror
baseurl=http://3es.atomicrocketturtle.com/3rd-party/updates/$releasever/

I use for base this, now see what is your base and updates.Need to be there.

yourmail
01-24-2005, 09:41 PM
where do i set this ???

what is the most complete mirror for yum and centos ???

Im_Goodspeed
01-25-2005, 08:17 AM
Originally posted by WARP3
On a sidenote.. anyone knows a secure alternative to mc ?
For some customers, i want to make available something like mc, but one that can be chroot'ed to their homedir.
Unfortunately, I don't know the way to do it...

Originally posted by yourmail
where do i set this ???

what is the most complete mirror for yum and centos ???

Set it in /etc/yum.conf

Just try to set it up from rpm:
http://www.rpmfind.net/linux/rpm2html/search.php?query=mc&submit=Search+...&system=&arch=

yourmail
01-25-2005, 05:28 PM
root@server [~]# yum update
Gathering header information file(s) from server(s)
Server: CentOS-3.3 - Addons
Server: Atomic Rocket Turtle - 3.3 - Base OS RPMS mirror
retrygrab() failed for:
http://3es.atomicrocketturtle.com/3rd-party/base/3.3/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://3es.atomicrocketturtle.com/3rd-party/base/3.3/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found
root@server [~]#




what should i do now ???
why this update server doesnt work ???

which is the best and most complete server to use ???

thanx!