Sunday, January 25, 2009

Bored with the look your MC's color?

MC (Midnite Commander) usually used as a file manager on Linux system. MC can be used both in the computer at the local and remote computer. Also, the MC can be used to transfer a file between two computers. You do not need to use ftp client, like gFTP.


To change the colors of your MC, edit the configuration file "ini" on folder /home/your_name/.mc/. To edit the file "ini", you can't use the mcedit editor, should use the vi editor. Basically, you just add 2 lines below to your the configuration file "ini".

Code :
[Colors]


base_color=gray,black:normal=yellow,black:menu=yellow,gray:viewunderline=balck,green:edi
tnormal=white,black:editmarked=black,white:menuhot=red,gray:directory=brightred,gray:exe
cutable=brightgreen,gray:device=white,gray:input=yellow,gray:link=brightcyan,gray:stalledlin
k=white,gray:reverse=brightmagenta,black:selected=black,yellow:marked=yellow,brown:mark
select=black,magenta

Code :

[msmunir@msmunir1 ~]$ pwd

/home/msmunir

[msmunir@msmunir1 ~]$ cd .mc

[msmunir@msmunir1 .mc]$ ls

cedit filepos history ini Tree

[msmunir@msmunir1 .mc]$

With vi editor, edit the configuration file "ini". Go to the last page.

Code :
[msmunir@msmunir1 .mc]$ vi ini

Example of MC "ini" configuration file after modification.

Code :
[Midnight-Commander]

show_backups=1

show_dot_files=1

verbose=1

mark_moves_down=1

pause_after_run=1

shell_patterns=1

...

...

[Misc]

ftpfs_password=anonymous@

ftp_proxy_host=gate

display_codepage=Other_8_bit

[Colors]

base_color=gray,black:normal=yellow,black:menu=yellow,gray:viewunderline=balck,green:edi
tnormal=white,black:editmarked=black,white:menuhot=red,gray:directory=brightred,gray:exe
cutable=brightgreen,gray:device=white,gray:input=yellow,gray:link=brightcyan,gray:stalledlin
k=white,gray:reverse=brightmagenta,black:selected=black,yellow:marked=yellow,brown:mark
select=black,magenta

[Panelize]

Find *.orig after patching=find . -name \*.orig -print

Find SUID and SGID programs=find . \( \( -perm -04000 -a -perm +011 \) -o \( -perm -02000 -a -
perm +01 \) \) -print

Find rejects after patching=find . -name \*.rej -print

by. msmunir@batan.go.id


No comments:

Post a Comment