MC Midnight Commander

Filemanagers, partitioning tools, etc.
Message
Author
aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

MC Midnight Commander

#1 Post 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
Attachments
mc.png
(98.08 KiB) Downloaded 9752 times
Last edited by aragon on Mon 31 Oct 2011, 20:05, edited 8 times in total.

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#2 Post by abushcrafter »

Thanks muchly.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Saving/exporting a tree?

#3 Post 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.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

Re: Saving/exporting a tree?

#4 Post 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.
Attachments
tree_DOC-1.5.2.2.pet
(3.55 KiB) Downloaded 1677 times
tree-1.5.2.2.pet
(16.28 KiB) Downloaded 1694 times

aarf

#5 Post by aarf »

when all else fails MC will rescue you.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#6 Post 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

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#7 Post by aragon »

uploaded new version. see main post.

aragon

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

Re: Saving/exporting a tree?

#8 Post 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

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#9 Post by aragon »

uploaded new version. see main post.

aragon

User avatar
seldomseen
Posts: 40
Joined: Mon 30 May 2005, 16:05
Location: Charleston, SC
Contact:

#10 Post by seldomseen »

Thank you. Works great in Lupu 5. My older .pet files were not working for it. Gotta have my mc.
Registered Linux user #437574
Using Puppy 3.0 and Slack variations - Vector 5.8
256M RAM, 1.3 GHz, AMD Athlon Duron

User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

Newer versions

#11 Post 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

Van78
Posts: 42
Joined: Thu 08 Jan 2009, 13:26

#12 Post 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

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#13 Post 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

Van78
Posts: 42
Joined: Thu 08 Jan 2009, 13:26

#14 Post 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

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#15 Post 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

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#16 Post by aragon »

uploaded actual stable version. see main post.

aragon

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#17 Post 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!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#18 Post by aragon »

Hi Christian,

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

Thanks for posting the script.

Aragon

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#19 Post 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!
Attachments
mc-gotar-0.01.pet
"gotar" script for Midnight Commander
(2.23 KiB) Downloaded 1096 times
gotar1.jpg
(85.67 KiB) Downloaded 3692 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

stu90

#20 Post 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.

Post Reply