LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-14-2011, 05:53 PM   #1
Marlino
LQ Newbie
 
Registered: Jul 2011
Location: Germany
Distribution: W2k, LFS
Posts: 17

Rep: Reputation: 2
Arrow BLFS Tip: Use current version of Midnight Commander (mc)


Quote:
Originally Posted by midnight-commander.org
GNU Midnight Commander is a visual file manager ...
It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.
In the stable and svn version of the BLFS book are installation instructions for mc-4.6.1.

That version of mc is very much outdated and has quite a few shortcomings,
compared to the current version 4.7.5.3.

F.e.: I like to use mc for finding files more than using find,
as mc gives feedback about what it is doing, while it is running ...

mc-4.6.1 can not be used to do a case insensitive search for file names.
The single check box for case sensitivity in the find dialog
seems to only affect the file contents, but not their names.

(I did try to omit patches and find alternative patches,
but didn't find any that would help that problem.
This way I found the new version and the new home of mc. )

mc-4.7.5.3 has a much more advanced find file dialog
with a case sensitivity check box for file names as well as for file contents.
(Not mentioning the other nice features there)

Current versions of mc can be found here:
http://www.midnight-commander.org/downloads/

I built it this way without problems:
Code:
./configure --prefix=/usr --enable-vfs-undelfs --enable-vfs-smb
make
--enable-vfs-undelfs enables a feature to recover deleted files from ext2 file systems.
--enable-vfs-smb is for browsing samba shares.

make check can be run, but I believe, it does not actually test anything.

As always, I installed it as a root user:
Code:
make install
There seems to be no way to set it, so that the search would follow symbolic links to directories,
but I consider that a minor thing.

I like this new version of mc quite a lot.
 
Old 08-17-2011, 03:12 PM   #2
Marlino
LQ Newbie
 
Registered: Jul 2011
Location: Germany
Distribution: W2k, LFS
Posts: 17

Original Poster
Rep: Reputation: 2
Meanwhile, I found out that the above configuration will make mc
put its system wide configuration files to /usr/etc/mc.

I felt, I'd rather have them in /etc/mc,
so I uninstalled and installed with the following settings
Code:
./configure --prefix=/usr --sysconfdir=/etc --enable-vfs-undelfs --enable-vfs-smb
Not really a problem, but can be done this was right from the start.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 10:55 AM
Midnight Commander help? masterross Linux - Software 3 01-22-2008 09:25 AM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM
Where's mc (Midnight Commander) Shadow Of Death Linux - Software 7 01-09-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration