Page 1 of 2

MC Midnight Commander

Posted: Wed 20 Jan 2010, 23:08
by aragon
Home: http://www.midnight-commander.org/
Version: 4.8.0
GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. 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.
Compiled and tested in Puppy 4.31.

aragon

Posted: Thu 21 Jan 2010, 00:19
by abushcrafter
Thanks muchly.

Saving/exporting a tree?

Posted: Thu 21 Jan 2010, 03:00
by davids45
G'day,

Can this file manager save a directory tree as a text file? And even better would be saving some file-size data as well.

I occasionally like to make a record of what's on a disk (files, sizes, dates) and load this into a spreadsheet.

Or is there another Puppy program that will do this easily?

Thanks,
David S.

Re: Saving/exporting a tree?

Posted: Thu 21 Jan 2010, 04:45
by Flash
davids45 wrote:G'day,

Can this file manager save a directory tree as a text file? And even better would be saving some file-size data as well.

I occasionally like to make a record of what's on a disk (files, sizes, dates) and load this into a spreadsheet.
That sounds like something I've done.
...is there another Puppy program that will do this easily? ...
Here is a program called "Tree" which I think might do what you want.

Posted: Thu 21 Jan 2010, 05:01
by aarf
when all else fails MC will rescue you.

Posted: Thu 21 Jan 2010, 09:15
by aragon
what i've forgot to mention is it's ability to 'install' pets (thanks to MikeB). as it opens pet-files in a virtual filesystem, you could simple browse the package and copy the included dirs to /.

aragon

Posted: Mon 15 Feb 2010, 09:19
by aragon
uploaded new version. see main post.

aragon

Re: Saving/exporting a tree?

Posted: Mon 15 Feb 2010, 16:24
by DMcCunney
davids45 wrote:G'day,

Can this file manager save a directory tree as a text file? And even better would be saving some file-size data as well.

I occasionally like to make a record of what's on a disk (files, sizes, dates) and load this into a spreadsheet.

Or is there another Puppy program that will do this easily?
If you want a visual directory tree, the Tree program Flash suggested is a good start.

If you want file size data, a command line will do it:

Code: Select all

ls -lR / > filelist.txt &
This does a recursive directory list and redirects the output to the specified file. The trailing & tells the shell to run it as a background process. You can substitute whatever directory you want to be the starting point for / above, and provide a full path to the file listing to specify where it is created.
______
Dennis

Posted: Wed 12 May 2010, 07:23
by aragon
uploaded new version. see main post.

aragon

Posted: Sun 16 May 2010, 00:10
by seldomseen
Thank you. Works great in Lupu 5. My older .pet files were not working for it. Gotta have my mc.

Newer versions

Posted: Tue 20 Jul 2010, 21:00
by Q5sys
I had compiled MC-4.7.2 a while back but never uploaded it and was going to today... and then noticed that 4.7.3 was released 2 weeks ago, so I compiled that one as well.

Instead of creating a new thread... i'll just upload the newer versions here.

These were compiled in puppy v5 with a kernel of 2.6.33.2

MC 4.7.2
MC 4.7.3

Posted: Fri 27 Aug 2010, 10:17
by Van78
hi I downloaded the latter file and it 'installed' under category 'none' . I am running Lupus 5.10 and am an ab. beginner....

I tried to find mc-commander with pfind but ....no chance...
How do I run it?
How do I get a link under my category filesystem and how do I get it on the desktop?

besides, as you may have guessed I am a Windows user but I started when we used NortonCommander V1..... now I am a TC fan but think it is good when I stick to sth like it under Puppy too.

thanks

Posted: Fri 27 Aug 2010, 10:44
by paulhomebus
To run midnight commander, as it doesn't have any mc.desktop file in /usr/share/applications....

You just type mc (lowercase) in console/terminal

Paul

Posted: Fri 27 Aug 2010, 10:51
by Van78
Hi Paul

ok, could run it that way. Anyway, since I am a beginner that is no great benefit for me since I like to use a filemanager often. Any alteratives?

Would be great. Thanks

Posted: Fri 27 Aug 2010, 19:39
by paulhomebus
Yep, here is a little code for a mc.desktop file, copy code into geany, save it to /usr/share/applications/mc.desktop

Code: Select all

[Desktop Entry]
Version=1.0
Type=Application
Name=Midnight Commander
GenericName=MC
Comment=Awesome filemanager 
Exec=mc /
TryExec=mc /
Icon=/usr/share/icons/hicolor/64x64/apps/mc.png
Terminal=true
Categories=Utility;
StartupNotify=true
just change the Categories field if you want it in a different place on the menu.

Hope this helps.
Paul

Posted: Mon 20 Sep 2010, 07:23
by aragon
uploaded actual stable version. see main post.

aragon

Posted: Thu 04 Nov 2010, 02:14
by musher0
Here's my script to run mc as transparent.

Code: Select all

#!/bin/bash
# mccolor-tr.sh
# mccolor transparent

urxvt -bg sienna4 -fg cornsilk -sr +st -bc -T Midnight_Commander -tr -tint white -sh 67 -bd firebrick4 -g 140x48+150+150 -cr white -b 4 -e mc --colors normal=blue,default:selected=brightblue,gray:marked=yellow,default:markselect=yellow,gray:directory=brightblue,default:executable=brightgreen,default:link=cyan,default:device=brightmagenta,default:special=lightgray,default:errors=red,default:reverse=green,default:gauge=green,default:input=white,gray:dnormal=green,gray:dfocus=brightgreen,gray:dhotnormal=cyan,gray:dhotfocus=brightcyan,gray:menu=green,default:menuhot=cyan,default:menusel=green,gray:menuhotsel=cyan,default:helpnormal=cyan,default:editnormal=green,default:editbold=blue,default:editmarked=gray,blue:stalelink=red,default 
Works in Squeeze 0.09 and probably many other Puppies.

Please note the actual colour coding is not from me (the part starting at --colors, until the end). Trying to retrace the author... There is a dead link on this page, but the illustration is still there.

http://www.xxzz.de/index.php?serendipit ... ton%5D.y=0

I do not understand German, but it seems that the colour settings in the script above were written by a "Stefan Krauth am Sonntag, 23. November 2008". If a German-speaking person could confirm that? (aragon, maybe?) :) Thanks in advance.

So that's my bit towards more honesty everywhere today. 8)

Also, mc 4.7 now supports skins, and there are so many sites about those skins that you'll get lost!

Enjoy!

Posted: Fri 05 Nov 2010, 16:59
by aragon
Hi Christian,

yes the name of the kraut is 'Stefan Krauth'.

Thanks for posting the script.

Aragon

Posted: Fri 05 Nov 2010, 17:18
by musher0
Thanks, aragon, for checking the validity of that information.

Here is another script, but this time for the gotar skin (included in aragon's package).

I'll post the "rem's" below. They are a bit long, but they may help newbies understand how "make the bed" for mc. The attached pet file runs "out of the box". Also, see the picture.

@van78: It's got a " gotar.desktop " file, too! :D So it can be run from the menu.

/////////////////

Code: Select all

#!/bin/sh
# mc-gotar.sh
# Script for mc using the included "gotar" skin, by musher0.
# Save in : /root/my-applications/bin 
# and give it permission to be run.

# urxvt -fn "xft:Bitstream Vera Sans Mono:pixelsize=17" -g 100x35+67+113 -fg DarkSeaGreen1 -bg "#5D2E33" -T Midnight_Commander -e mc -S gotar

# Notes by musher0, Nov. 3, 2010
#################################
# geometry
##########
# Suggested geometries:
# -g 84x30+67+113 
# -g 132x48+67+113  # Anything else too big, I'd say. Limited by screen itself.
# -g 120x40+67+113 
# -g 110x45+67+113 
# -g 100x35+67+113  # Happy medium, I think.

# Backgrounds
#############
# Also possible, of course : -bg black. Gives better contrast than the 
# following: # -bg IndianRed4 # -bg "#133659" # coral4 # "#693B1C" # darkred
# However, I find that " -bg "#5D2E33" " gives a kind of "red wine" colour 
# against which all elements of the gotar skin are well contrasted.

# Fonts
#######
# Always possible, of course: no font parameter. 
# mc will use whatever (u-), (m-) or rxvt proper hands over.
#
# -fn "x:9x15" # Provided by the Linux system. Hm...
# 
# -fn "xft:Bitstream Vera Sans Mono:pixelsize=17"
# provides a better alternative. This font usually comes with Puppy.
# If, somehow, it's not included, it can be found here:
# http://www.fontsquirrel.com/fonts/download/Bitstream-Vera-Sans-Mono
#
# The font will play accordeon with the geometry parameter and make mc 
# take the screen space it needs automatically. (My understanding of it!)
#
# The "mono" variants of fonts such as Liberation and Toga can be tried, but
# find an afternoon with nothing better to do (:-(, expect variable success,
# and lots of fiddling with the fontsize.
#
# Reminder for installing new fonts
###################################
# Place in /usr/share/fonts/default/TTF # and then do, 
# in console : " fc-cache " (without the quotes) to activate it.
#
# Fontsize
##########
# If your focusing capacity rivals that of a microscope, then go right ahead 
# and specify a smaller fontsize than what's indicated in the line!

# Once you've read it, make a copy of this script under 
# ~/my-documents/DOCS-Linux/mc-gotar.txt # (suggested location),
# and erase the comments from the script itself to gain a few bytes 
# in RAM at runtime.
############## end ################
Enjoy!

Posted: Fri 10 Dec 2010, 04:18
by stu90
This is a great application - wasn't sure if i would like it at first but after a day find i am using it just as much as rox. :)

Are you guys using puppyfied /etc/mc/mc.ext file? i had to change mine to get images to open with viewnior and mp3's with mplayer.

thanks.