FAQ 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. GNU Midnight Commander
  2. Questions and Answers
  3. The newest version of this document is available at
  4. http://cvs.gnome.org/lxr/source/mc/FAQ?raw=1
  5. * 1 Getting started
  6. + 1.1 What is Midnight Commander?
  7. + 1.2 Does it run on my machine?
  8. + 1.3 Does it work with my terminal?
  9. + 1.4 What else do I need to run MC?
  10. + 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
  11. + 1.6 Where can I get GNU Midnight Commander?
  12. + 1.7 I don't have FTP access. Where can I get MC?
  13. * 2 Keyboard
  14. + 2.1 What does documentation mean with the C-?, M-? and F?
  15. keys?
  16. + 2.2 Why don't function keys (or some other key) work?
  17. + 2.3 How do I use function keys F11 to F20?
  18. + 2.4 Why does the ESC key behave funny?
  19. + 2.5 How can I add the plus sign (+) on the command line?
  20. + 2.6 C-o doesn't work!
  21. + 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the
  22. manual?
  23. * 3 Mouse
  24. + 3.1 How do I enable mouse support?
  25. + 3.2 How do I cut and paste text with mouse?
  26. + 3.3 How do I get the extension dependent pop-up menu to
  27. pop up?
  28. * 4 Display
  29. + 4.1 Why do I keep getting "Terminal not powerful enough for
  30. SLang" or "Terminal not powerful enough for SLsmg"?
  31. + 4.2 Why don't line drawing characters work?
  32. + 4.3 Can one use latin-1 characters without losing the lines?
  33. + 4.4 I have problems with entering/viewing national
  34. characters!
  35. + 4.5 How can I get colors?
  36. + 4.6 My color_xterm goes completely (or partially) black!
  37. + 4.7 Where can I get xterm or rxvt?
  38. + 4.8 I got colors working with MC but the other programs don't
  39. work at all anymore!
  40. + 4.9 Why are there both terminfo and termcap? Wouldn't one
  41. database be enough?
  42. * 5 Graphical user interface
  43. + 5.1 Xview, Tk and Gnome editions?
  44. * 6 Command line problems
  45. + 6.1 How do I stay in the last directory when I exit Midnight
  46. Commander?
  47. + 6.2 How can I access command line history?
  48. + 6.3 How can I complete commands, file names, variable names
  49. and so on?
  50. + 6.4 I am using ksh. Can I use functions defined in the .kshrc
  51. within MC?
  52. + 6.5 Is there any way to include additional options or hot
  53. keys to MC?
  54. * 7 Virtual file systems
  55. + 7.1 How can I see the contents of a tar archive?
  56. + 7.2 How do I get out of a tar archive?
  57. + 7.3 How do I do anonymous ftp with MC?
  58. + 7.4 How do I do non-anonymous ftp with MC?
  59. + 7.5 How do I close an ftp connection?
  60. + 7.6 Why aren't the contents of ftp panel updated?
  61. + 7.7 What kind of proxy server works with Midnight Commander?
  62. * 8 Other common problems
  63. + 8.1 How do I get the internal editor to work?
  64. + 8.2 Is there any way to 'bookmark' favorite ftp-fs links?
  65. + 8.3 Why I keep getting: "There is no disk in the drive.
  66. Please insert a disk into drive D:"?
  67. + 8.4 When I start Midnight Commander, nothing happens!
  68. * 9 Development
  69. + 9.1 Who has written Midnight Commander?
  70. + 9.2 Do I dare to use a development version?
  71. + 9.3 How can I report a bug/request for a feature?
  72. + 9.4 How can I join the development?
  73. * 10 More information
  74. + 10.1 This document didn't answer my question. Where else can
  75. I look for an answer?
  76. + 10.2 What mailing lists are there for Midnight Commander?
  77. + 10.3 Where should I look on the World Wide Web for MC stuff?
  78. + 10.4 Are the mailing lists archived anywhere?
  79. * 11 Legal issues
  80. + 11.1 Authorship
  81. + 11.2 Feedback is invited
  82. + 11.3 Disclaimer and copyright
  83. 1 Getting started
  84. 1.1 What is Midnight Commander?
  85. GNU Midnight Commander is a user-friendly yet powerful file manager
  86. and visual shell, useful to novice and guru alike. It provides a
  87. clear, user-friendly, and somewhat protected interface to a Unix
  88. system while making many frequent file operations more efficient and
  89. preserving the full power of the command prompt. You will wonder how
  90. you could ever live without it.
  91. For more thorough description take a look at the announcement of
  92. Midnight Commander 4.0.
  93. 1.2 Does it run on my machine?
  94. Yes, Midnight Commander can run on almost any machine, including Unix
  95. clones, Windows 95/NT and OS/2. Midnight Commander does not run on
  96. Macintosh.
  97. Midnight Commander uses GNU Autoconf which can automatically
  98. configure Midnight Commander for use on almost any (if not every)
  99. Unix clone. Following configurations have been tested:
  100. * i386-*-linux1.x, 2.x
  101. * alpha-linux-linux2
  102. * sparc-linux-linux2.x
  103. * sparc64-linux-linux2.1
  104. * mips-sgi-irix5.x, 6.x
  105. * mips-dec-ultrix4.3
  106. * rs6000-ibm-aix3.2.5
  107. * sparc-sun-sunos4.1
  108. * sparc-sun-solaris2.3, 2.4, 2.5
  109. * sparc-sun-netbsd1.0
  110. * hppa-hp-hpux9
  111. * hppa-hp-hpux7
  112. * m68k-apple-aux
  113. * unixware
  114. * mc88110-aviion-dgux5.4R2.01
  115. * i386-*-sco3.2v4.2
  116. * i386-*-sco3.2v5
  117. * i386-*-windows-nt-3.51, 4.0
  118. * i386-*-windows95
  119. * i386-*-os2
  120. Windows 95/NT port can be compiled with Microsoft Visual C++, Borland
  121. C++, RSX and Mingw32.
  122. 1.3 Does it work with my terminal?
  123. Yes, it does.
  124. Because Midnight Commander is a full screen program it doesn't run on
  125. dummy terminals but anything more advanced will do (like vt100). If
  126. your terminal works with vi, emacs, elm or pine it will work with
  127. Midnight Commander.
  128. 1.4 What else do I need to run MC?
  129. You need an Unix compatible operating system. Support for Windows 95/NT
  130. and OS/2 is incomplete - you should be prepared to fix things.
  131. To compile any edition you need to have GLib installed. It's available
  132. at ftp://ftp.gtk.org/pub/gtk/. Only GLib versions 1.2.x will be
  133. currently detected.
  134. If you want to use mouse on the Linux console you need the gpm daemon
  135. from ftp://ftp.systemy.it/pub/develop/. You need nothing extra to use
  136. mouse on xterm.
  137. If you do not want to use the S-Lang library you could try using
  138. ncurses (we recommend only version 4.1 and above).
  139. 1.5 Is GNU Midnight Commander Public Domain? Copyrighted?
  140. Midnight Commander is under GNU Public License which basically means
  141. that you may freely copy, change and distribute it, but that you may
  142. not impose any restrictions on further distribution, and that you must
  143. make the source code available. This is not the same as Public Domain.
  144. For details, the GNU license is included in GNU Midnight Commander
  145. source distribution (the COPYING file).
  146. Midnight Commander is now officially a part of the GNU project.
  147. All the authors of GNU Midnight Commander have given all their rights
  148. on the program to the Free Software Foundation.
  149. 1.6 Where can I get GNU Midnight Commander?
  150. The main site is ftp://ftp.gnome.org/pub/GNOME/stable/sources/mc/
  151. 1.7 I don't have FTP access. Where can I get MC?
  152. Most GNU/Linux distributions include GNU Midnight Commander. For
  153. example, Debian, Mandrake, Red Hat, Slackware and SuSE.
  154. 2 Keyboard
  155. 2.1 What does documentation mean with the C-?, M-? and F? keys?
  156. GNU Midnight Commander documentation uses emacs style names for
  157. keyboard keys.
  158. C stands for the Ctrl key. For example, C-f means that you should hold
  159. down the Ctrl key and press the f key.
  160. M stands for the Meta key. Your terminal might call it Alt or Compose
  161. instead of Meta. For example, M-f means that you should hold down the
  162. Meta/Alt/Compose key and press the f key. If your terminal doesn't
  163. have Meta, Alt or Compose or they don't work you can use Esc. For M-f
  164. press the Esc key and then press the f key.
  165. F? stands for a function key. If your terminal doesn't have function
  166. keys or they don't work you can use Esc. For example, for F3 press the
  167. Esc key and then press the 3 key.
  168. 2.2 Why don't function keys (or some other key) work?
  169. Your terminfo or termcap database has missing or incorrect definitions
  170. for function keys. Type "mc -V" to see what terminal database is being
  171. used. If the result is "using the S-Lang library with terminfo
  172. database" you should install one of the enhanced terminfo databases
  173. included in GNU Midnight Commander source distribution. For example,
  174. if you are using xterm type "tic xterm.ti".
  175. If the result is "using the S-Lang library with termcap database" you
  176. should fix your /etc/termcap database.
  177. Better termcap and terminfo databases are available here:
  178. http://www.tuxedo.org/~esr/terminfo/
  179. ftp://dickey.his.com/ncurses/
  180. You can select whether Midnight Commander will use terminfo or termcap
  181. database by giving --with-terminfo or --with-termcap option to the
  182. configure. Default is terminfo if found, otherwise termcap.
  183. If you don't have permissions to edit terminal databases you can use
  184. Learn keys feature of Midnight Commander instead. Press Esc 9 o k and
  185. follow instructions.
  186. If all else fails you can emulate function keys by first pressing the
  187. ESC key and then one of the number keys. For example, if you want to
  188. produce F9, press ESC, then 9. If you don't have a ESC key on your
  189. keyboard you can try alt-9 or meta-9.
  190. 2.3 How do I use function keys F11 to F20?
  191. These can mapped to function keys F1 to F10 with Shift held. e.g.
  192. function key F13 can be activated by pressing Shift-F3. You can define
  193. the keys this way in the Options menu. The convention for PC keyboards
  194. is that F11-20 always means Shift with F1-10
  195. Note! Windows 95/NT and OS/2 ports use F11 and F12 keys to change the
  196. current disk drive. In this case F11 and F12 mean the real F11 and F12
  197. keys, not shift-F1 and shift-F2.
  198. 2.4 Why does the ESC key behave funny?
  199. Midnight Commander uses the ESC key as a prefix for simulating the
  200. Meta and Alt keys (for terminals which don't have Meta or Alt, see the
  201. three previous questions). For example, pressing ESC-a is the same as
  202. pressing Meta-a. In addition most terminals use ESC for internal
  203. representation of arrow keys, function keys and other enhanced keys.
  204. If you want to use ESC to cancel things you have to press it twice i.
  205. e. ESC-ESC. If you find this cumbersome you can generally use F10 to
  206. cancel. Alternatively turn on the old_esc_mode setting in the
  207. ~/.mc.ini file. The old_esc_mode setting makes ESC work as a prefix
  208. only if another key is pressed within 0.5 seconds. After 0.5 seconds
  209. the ESC key cancels. There is no way to make ESC cancel immediately
  210. (if we want to be able to use arrows keys and function keys).
  211. 2.5 How can I add the plus sign (+) on the command line?
  212. Press C-q first, then press the + sign.
  213. The plus key is the hotkey for the select files command. If you want
  214. to add a literal plus on to the command line you must quote it by
  215. pressing C-q first.
  216. Another common key which needs the C-q prefix is backslash "\".
  217. 2.6 C-o doesn't work!
  218. Maybe C-o is a stty control character on your terminal. See man stty
  219. for details on how to list and change stty control characters.
  220. 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the manual?
  221. The "a1" key is the key which has the "a1" caption on it.
  222. The "c1" key is the key which has the "c1" caption on it.
  223. If you have to ask what these two keys are your keyboard hasn't
  224. probably got them. Actually, I have never seen a keyboard which has
  225. got them.
  226. 3 Mouse
  227. 3.1 How do I enable mouse support?
  228. Invoke mc like this (without quotes): "mc -x". If this doesn't work
  229. upgrade to a terminal which compatible with the Xterm mouse sequences.
  230. Alternatively, on Linux console you can use gpm.
  231. 3.2 How do I cut and paste text with mouse?
  232. Hold down shift key while using mouse to cut and paste.
  233. 3.3 How do I get the extension dependent pop-up menu to pop up?
  234. It was developed for the GNOME edition. The text-mode edition doesn't
  235. support this feature yet.
  236. 4 Display
  237. 4.1 Why do I keep getting "Terminal not powerful enough for SLang" or
  238. "Terminal not powerful enough for SLsmg"?
  239. This means that your terminfo databases do not contain the correct
  240. definitions for your terminal.
  241. You could try using a different terminal setting. If you use csh or
  242. tcsh:
  243. setenv TERM vt100
  244. or if you use sh, bash, ksh or zsh:
  245. export TERM=vt100
  246. If this doesn't help you can recompile MC to use termcap instead of
  247. terminfo:
  248. ./configure --with-termcap
  249. make
  250. 4.2 Why don't line drawing characters work?
  251. Since version 4.0.13 there's the command line option -a to force use of
  252. +, |, - for line drawing (only available when compiled with S-Lang).
  253. Use this -a option if any of the suggestions below doesn't help.
  254. In general, there are three cases:
  255. * Lines are shown as ASCII characters like this
  256. +---------+
  257. | |
  258. +---------+
  259. This also happens when you use the -a option. Other than that
  260. possible reason is 1 or 2 (see below).
  261. * Lines are shown as lower case characters like this
  262. lqqqqqqqqqk
  263. x x
  264. mqqqqqqqqqj
  265. Possible reason is 1 or 2 (see below).
  266. * Lines are shown as blanks or missing characters. Possible reason
  267. is 2 or 3 (see below).
  268. The reason for the problem is one of following:
  269. 1. Your terminal might not support line drawing characters. Vt100
  270. compatible terminals, rxvt, xterm and color_xterm do support them.
  271. 2. Your terminfo or termcap database might have missing or incorrect
  272. definitions for line drawing characters. Set the acsc variable in
  273. the terminfo database like this:
  274. acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x\263h
  275. \2600\333
  276. Don't forget issue 'tic' command. This supposes you are using PC
  277. character set. The octal values might be different for other
  278. character sets. If you are using termcap instead of terminfo, you
  279. should modify above solution appropriately.
  280. 3. Your terminal font might not support line drawing characters. Try
  281. changing the font.
  282. Here is Miguel's answer to Torben on this subject.
  283. Torben:
  284. When I load consolefonts/iso01.f16, I get perfectly right national
  285. characters, but the line drawing characters in mc get wrong. Is it
  286. a mc problem, or is it a problem with the font? (I guess it is).
  287. Is there a trick?
  288. Miguel:
  289. First of all, we should determine whether the font has line drawing
  290. characters or not.
  291. If it has line drawing characters, then a new terminfo entry should
  292. be written for this specific case. Let's call this linux-iso01. The
  293. acsc variable should be modified to reflect which characters are
  294. used to do the line drawing.
  295. If it does not have line drawing characters, then we should get rid
  296. of the switch to acsc sequences and make the acsc sequence be just
  297. a mapping to the ugly +, -, |, - characters.
  298. You can get your terminfo definition by running the infocmp
  299. program, making the proper changes and running the tic program to
  300. compile your new terminfo database.
  301. 4.3 Can one use latin-1 characters without losing the lines?
  302. Yes, you need a correct font and a correct termcap/terminfo database.
  303. For font, if you use xterm try "xterm -fn fixed".
  304. For termcap/terminfo database, change the acsc capability in the
  305. database.
  306. 4.4 I have problems with entering/viewing national characters!
  307. Upgrade to version 4.0.12 or newer.
  308. From the Options - Display Bits dialog select Full 8 bits or ISO
  309. 8859-1. In addition, select 8 bit input from the same dialog.
  310. 4.5 How can I get colors?
  311. Invoke mc like this (without quotes): "mc -c".
  312. If you get colors, be happy.
  313. If your terminal stays black and white, your terminal doesn't support
  314. color. You might want to upgrade to a terminal which compatible with
  315. the ANSI color sequences.
  316. If your terminal goes completely black, see the next question.
  317. More detailed answer:
  318. Check that your terminal supports color. color_xterm, rxvt and Linux
  319. console do support, most other terminals don't. You can test color
  320. support with following simple C program:
  321. #include <stdio.h>
  322. int main (void){
  323. printf ("\033[32m Hello world! \033[m\n");
  324. return 0;
  325. }
  326. Compile and run it. If you see "Hello world!" text in green your
  327. terminal supports color, otherwise not (however, for color_xterm see
  328. also the next question).
  329. Check whether you are using Ncurses or the S-Lang library (type
  330. "mc -V" to find out).
  331. With S-Lang library you can force color support by setting the
  332. environment variable COLORTERM to any value.
  333. If you use ncurses library, check that your terminfo database supports
  334. color. If not, you should install one of the enhanced terminfo
  335. databases included in GNU Midnight Commander source distribution.
  336. You might want to set the TERM environment variable so that you are
  337. using the correct terminfo database or termcap entry.
  338. If you use color_xterm (or rxvt) the correct value might be
  339. xterm-color, xtermc or simply xterm.
  340. If you use Linux console the correct value for TERM is linux or
  341. console.
  342. 4.6 My color_xterm goes completely (or partially) black!
  343. Some color_xterm terminals define all colors as black instead of the
  344. standard ANSI colors. This makes them go completely black when you try
  345. to use Midnight Commander with colors.
  346. You will have to override the defaults. Create a file "color.defaults"
  347. which has the following contents:
  348. color_xterm*color0: Black
  349. color_xterm*color1: Red
  350. color_xterm*color2: Green
  351. color_xterm*color3: Yellow
  352. color_xterm*color4: Blue
  353. color_xterm*color5: Magenta
  354. color_xterm*color6: Cyan
  355. color_xterm*color7: White
  356. color_xterm*background: White
  357. color_xterm*foreground: Black
  358. (replace color_xterm with the name of your color_xterm, color_xterm
  359. mentions its name in its title bar)
  360. Now type:
  361. xrdb -merge color.defaults
  362. Alternatively you can add the suggested contents of the color.defaults
  363. file to your .Xdefaults or .Xresources file (or what ever the name of
  364. your X configuration file is). Or you can replace your non-ANSI
  365. color_xterm with an ANSI color_xterm.
  366. 4.7 Where can I get xterm or rxvt?
  367. xterm is included with the X Window System, so you probably already
  368. have it if you have X. This version is not actively maintained, but
  369. Thomas Dickey maintains his more advanced version of xterm at
  370. ftp://dickey.his.com/xterm/
  371. rxvt has its own site http://www.rxvt.org/ - get the latest version
  372. there.
  373. 4.8 I got colors working with MC but the other programs don't work at all
  374. anymore!
  375. Midnight Commander uses terminfo database (if available) but many
  376. other programs use termcap database. If you set the TERM environment
  377. variable to a value which has no corresponding entry in termcap
  378. database those programs stop working. You should add the new value of
  379. TERM to the termcap database.
  380. Example: If you have set TERM to xterm-color locate from /etc/termcap
  381. the line which starts:
  382. xterm|vs100|xterm terminal emulator
  383. Change it to start:
  384. xterm|xterm-color|vs100|xterm terminal emulator
  385. 4.9 Why are there both terminfo and termcap? Wouldn't one database be
  386. enough?
  387. You might want to read the Unix-Haters Handbook at
  388. http://catalog.com/hopkins/unix-haters/handbook.html. It lists many
  389. more reasons why Unix sucks.
  390. You can configure which terminal database you want to use with the
  391. "--with-termcap" and "--with-terminfo" flags of configure. If you
  392. don't specify them, the configure script will try to use terminfo if
  393. available otherwise it will use termcap.
  394. 5 Graphical user interface
  395. 5.1 Xview, Tk and Gnome editions?
  396. Xview and Tk and GNOME editions have been removed from the sources.
  397. 6 Command line problems
  398. 6.1 How do I stay in the last directory when I exit Midnight Commander?
  399. See the description of the -P option in the Options section of the
  400. manual.
  401. 6.2 How can I access command line history?
  402. You can browse previous commands with M-p and M-n. Alternatively, you
  403. can summon the command history listbox by pressing F9 c h.
  404. Since version 4.1.15 all the input widgets have permanent history. You
  405. can summon the history listbox by pressing M-h.
  406. 6.3 How can I complete commands, file names, variable names and so on?
  407. Just press M-Tab. Press M-Tab again to get a listbox if there are
  408. multiple possible completions.
  409. 6.4 I am using ksh. Can I use functions defined in the .kshrc within MC?
  410. Sorry, MC only supports bash, tcsh and zsh functions. Ksh functions
  411. are not supported because ksh lacks the necessary hooks needed for
  412. subshell integration.
  413. Switch to bash or zsh. They are both quite compatible with ksh. Your
  414. ksh functions should work as such or after minimal changes.
  415. 6.5 Is there any way to include additional options or hot keys to MC?
  416. Yes, F2 invokes an user menu which fully configurable. You can add
  417. any shell commands to the user menu. See the mc(1) man page for more
  418. info.
  419. Another way to add functionality is the external panelize feature.
  420. See the mc(1) man page for more info.
  421. And finally, you can code any feature you want yourself. MC source
  422. code is free which means you can change it anyway you want. There are
  423. some limitations to make sure MC stays free. See GNU General Public
  424. License for details.
  425. 7 Virtual file systems
  426. Note! Virtual file systems are supported by Unix ports only. The
  427. Windows 95/NT and OS/2 ports do NOT support virtual file systems. This
  428. means you haven't got ftp, zip or tar support on Windows 95/NT and
  429. OS/2.
  430. This chapter describes the behavior of the 4.1.x versions of the
  431. Midnight Commander. The behavior of the 4.5.x versions is somewhat
  432. different. More on that when the 4.5.x versions get more stable.
  433. 7.1 How can I see the contents of a tar archive?
  434. If you use keyboard just move the selection bar on the tar file and
  435. press enter.
  436. If you use mouse just double-click on the tar file.
  437. If these procedures don't work, your .mc.ext file is faulty. Replace
  438. it with one from the MC source distribution.
  439. You can also enter a tar archive by typing "cd tar:filename.tar.gz"
  440. where filename.tar.gz is the name of the archive.
  441. The recognized suffixes for tar archives are .tar, .tar.gz and .tgz.
  442. If your tar archive uses different suffix you have to rename it.
  443. 7.2 How do I get out of a tar archive?
  444. Just press enter on the toplevel ".." file or chdir to a non-tar
  445. directory. Just typing "cd" with no parameters is enough (it will take
  446. you to your home directory).
  447. 7.3 How do I do anonymous ftp with MC?
  448. Just type "cd ftp://hostname" where hostname is the name of the host
  449. you want to connect. Alternatively, select FTP link from the Left or
  450. Right menu and type the name of the host you want to connect.
  451. 7.4 How do I do non-anonymous ftp with MC?
  452. Non-anonymous ftp works just like the anonymous ftp but you give the
  453. login name with the host name. For example, type "cd
  454. ftp://username@hostname".
  455. 7.5 How do I close an ftp connection?
  456. Just chdir to a non-ftp directory. Just typing "cd" with no parameters
  457. is enough (it will take you to your home directory).
  458. Internally Midnight Commander closes ftp connection only after a
  459. timeout. This isn't visible to the end user.
  460. 7.6 Why aren't the contents of ftp panel updated?
  461. Update is skipped because there would be a serious performance
  462. penalty. Constantly updating directory panels through a ftp connection
  463. would take too much time.
  464. You can use C-r to force an update.
  465. 7.7 What kind of proxy server works with Midnight Commander?
  466. There are two kinds of ftp proxies: proxies for ftp clients and
  467. proxies for web browsers.
  468. Midnight Commander only supports ftp proxies which are meant for ftp
  469. clients. Common WWW proxies (like Squid) are not supported. A rule of
  470. thumb is that if a ftp proxy works with a web browser, it won't work
  471. with Midnight Commander.
  472. 8 Other common problems
  473. 8.1 How do I get the internal editor to work?
  474. The F4 key used to default to an external editor because that was what
  475. most people were used to. The newer versions use internal editor by
  476. default.
  477. To use the internal editor with an old version, select Configuration
  478. from the Options menu and check the 'use internal edit' option.
  479. Alternatively add the line
  480. use_internal_edit=1
  481. under the [Midnight-Commander] section in your .mc.ini file (which is
  482. in your home directory).
  483. To make the editor work all the time, go to the default/* section in
  484. the file lib/mc/mc.ext file and remove the line
  485. Edit=%var{EDITOR:vi} %f
  486. The internal editor will now be invoked for anything not specified
  487. elsewhere in the mc.ext file.
  488. Make sure that you edit the correct mc.ext file. The Midnight
  489. Commander first checks the existence of $HOME/.mc.ext. If this file is
  490. missing MC will use $prefix/lib/mc/mc.ext instead ($prefix can be
  491. changed with configure before compilation and it defaults to
  492. /usr/local).
  493. When you run `F9/Command/Extension file edit' for the very first time
  494. Midnight Commander copies the system-wide mc.ext from $prefix/lib/mc
  495. into your home directory because you need write access in order to
  496. change it.
  497. And please don't forget that "make install" overwrites
  498. $prefix/lib/mc/mc.ext.
  499. 8.2 Is there any way to 'bookmark' favorite ftp-fs links?
  500. Use the directory hotlist. Just press control-backslash. If your
  501. national keyboard layout doesn't have backslash key, just press the
  502. control key with the key which is the backslash key in the English
  503. keyboard layout.
  504. 8.3 Why I keep getting: "There is no disk in the drive. Please insert a disk
  505. into drive D:"?
  506. This is a known bug of the Windows 95/NT and OS/2 ports. MC looks its
  507. configuration files from the D:\MC directory and if the D: drive is a
  508. removable drive (like a CD ROM drive) and there is no disk in drive
  509. you get this message every time you try to do anything.
  510. Since version 4.0.6 you can specify the actual location of the
  511. Midnight Commander configuration files with the MCHOME environment
  512. variable.
  513. 8.4 When I start Midnight Commander, nothing happens!
  514. First, invoke MC without subshell support: "mc -u". If this helps
  515. check the shell you are using. Subshell support works best with bash
  516. although tcsh and zsh are also supported. You might want to upgrade
  517. your shell to a newer version. If you use something else than bash,
  518. tcsh or zsh, subshell support is disabled automatically.
  519. If disabling subshell doesn't help, try to reconfigure MC with
  520. "--with-included-slang" and "--with-termcap" options and recompile.
  521. If this helps, there is something wrong with your terminfo database
  522. or shared S-Lang library. For better terminfo databases see chapter
  523. 4. For a better S-Lang library, upgrade to a newer version or keep
  524. using the "--with-included-slang" option.
  525. This problem can also be caused by gpm as noted by Luis Espinoza:
  526. In regards to why Midnight Commander does nothing when invoked. I
  527. recently had the same problem. At the same time gpm was not loading
  528. properly with my patched kernel (now 2.0.33 from 2.0.30).
  529. Downloading version 1.13 of gpm, and got it working :-) MC still
  530. appeared locked.... However moving the mouse, brought MC to life.
  531. The mouse I am using is a Kensington Expert Mouse (Trackball).
  532. 9 Development
  533. 9.1 Who has written Midnight Commander?
  534. Midnight Commander was started by Miguel de Icaza and he is the
  535. maintainer of the package. Other authors have joined the project
  536. later:
  537. * Mauricio Plaza (early releases)
  538. * Janne Kukonlehto (joined Sep 27 1994)
  539. * Radek Doulik (joined Oct 30 1994)
  540. * Fred Leeflang (joined Nov 2 1994)
  541. * Dugan Porter (joined Dec 1 1994)
  542. * Jakub Jelinek (joined Feb 8 1995)
  543. * Ching Hui (joined Jun 27 1995)
  544. * Andrej Borsenkow (joined Jul 1996)
  545. * Paul Sheer (joined Nov 1 1996)
  546. * Norbert Warmuth
  547. * Alex I. Tkachenko
  548. Alessandro Rubini has been specially helpful with debugging and
  549. enhancing of the mouse support. John E. Davis has made his S-Lang
  550. library available to us and answered many questions about it.
  551. Many people have contributed bug reports, feature suggestions and
  552. small code bits (alphabetical order):
  553. * Thomasz Cholewo
  554. * Juan Jose Ciarlante
  555. * Alexander Dong (OS/2 port, NT port updates)
  556. * Erwin van Eijk
  557. * Torben Fjerdingstad
  558. * Massimo Fontanelli
  559. * Juan Grigera (NT port)
  560. * Gerd Knorr
  561. * Sergey Ya. Korshunoff
  562. * Jean-Daniel Luiset
  563. * Wim Osterholt
  564. * Antonio Palama (old DOS port)
  565. * Thomas Pundt
  566. * Marcelo Roccasalva
  567. * Ilya Rybkin
  568. * Vadim Sinolits
  569. * Jon Stevens
  570. * Adam Tla/lka
  571. 9.2 Do I dare to use a development version?
  572. I am afraid you have to answer to this question yourself. Development
  573. versions seldom cause data loss but they have usually got many bugs.
  574. It's up to you to judge whether new features outweigh the bugs.
  575. 9.3 How can I report a bug/request for a feature?
  576. You might first want to get the newest development version to see if
  577. the bug is fixed or the feature is added already.
  578. Send your report/request to mc-devel@gnome.org or mc@gnome.org. These
  579. mailing lists are the most certain way to contact the
  580. developers. Remember to mention if you are not on the mailing list
  581. to make sure that you will receive a copy of replies.
  582. Give as much details as possible. A too long message is a lot better
  583. than a too short message.
  584. For segmentation faults a stack backtrace is appreciated. You can
  585. produce stack backtrace as follows:
  586. * If segmentation fault produced a core file:
  587. 1. Load the core file by typing "gdb mc core" or "dbx mc core".
  588. 2. Type "where".
  589. 3. Cut and paste the results to your message.
  590. * If segmentation fault didn't produce a core file:
  591. 1. Load mc by typing "gdb mc" or "dbx mc".
  592. 2. Start mc by typing "run".
  593. 3. Try to reproduce the segmentation fault by doing whatever you
  594. did last time when the segmentation fault occurred.
  595. 4. Type "where".
  596. 5. Cut and paste the results to your message.
  597. 6. For the future you might want to check out what is the
  598. command in your shell to allow producing of the core files.
  599. Usually it is "limit coredumpsize unlimited" or "ulimit
  600. coredumpsize" or "ulimit -c unlimited".
  601. 9.4 How can I join the development?
  602. To join the development just code the feature you want to add and send
  603. your patch for inclusion. Email address is mc-devel@gnome.org.
  604. Before you start coding check the latest development version. It might
  605. be that your feature has already been implemented.
  606. Note that the authors of GNU Midnight Commander have given all their
  607. rights on the program to the Free Software Foundation. You will have
  608. to do the same if you contribute non-trivial patches. Otherwise we
  609. have to reject your patches in order to avoid copyright problems.
  610. 10 More information
  611. 10.1 This document didn't answer my question. Where else can I look for an
  612. answer?
  613. Read messages from the Discussion (mailing list archive) or read the
  614. Manual.
  615. Upgrade to a newer version of Midnight Commander. Many problems are
  616. fixed in the new versions.
  617. If you still can't find an answer, post your question to the Midnight
  618. Commander mailing list. Its address is mc@gnome.org.
  619. 10.2 What mailing lists are there for Midnight Commander?
  620. Following mailing lists discuss about Midnight Commander:
  621. mc@gnome.org
  622. General discussion of GNU Midnight Commander
  623. To subscribe visit
  624. http://mail.gnome.org/mailman/listinfo/mc/
  625. mc-devel@gnome.org
  626. Technical development discussion
  627. To subscribe visit
  628. http://mail.gnome.org/mailman/listinfo/mc-devel/
  629. 10.3 Where should I look on the World Wide Web for MC stuff?
  630. There is a WWW page for Midnight Commander. The URL is:
  631. http://www.gnome.org/mc/
  632. 10.4 Are the mailing lists archived anywhere?
  633. The mc and mc-devel lists are archived on the World Wide Web. There are
  634. links to the archives on the mailing list pages (see 10.2).
  635. 11 Legal issues
  636. 11.1 Authorship
  637. Questions and Answers was written by Janne Kukonlehto. Parts of it
  638. originate from Ian Jackson, Miguel de Icaza, Dugan Porter, Norbert
  639. Warmuth and Paul Sheer.
  640. 11.2 Feedback is invited
  641. Send your comments about this document and GNU Midnight Commander to
  642. mc@gnome.org
  643. 11.3 Disclaimer and copyright
  644. Note that this document is provided as is. The information in it is
  645. not warranted to be correct; you use it at your own risk.
  646. You can use Questions and Answers according to GNU Public License (see
  647. the COPYING file in GNU Midnight Commander source distribution).
  648. Questions and Answers is not public domain.