source: general/sysutils/mc.xml@ 6732c094

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6732c094 was 6732c094, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated all the XML files (and the one stylesheet) to use the 4.5 version of DocBook XML DTD

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6716 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mc-download-http "http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-&mc-version;.tar.gz">
8 <!ENTITY mc-download-ftp "ftp://ftp.uni-koeln.de/util/shell/mc-&mc-version;.tar.gz">
9 <!ENTITY mc-md5sum "18b20db6e40480a53bac2870c56fc3c4">
10 <!ENTITY mc-size "3.8 MB">
11 <!ENTITY mc-buildsize "29 MB">
12 <!ENTITY mc-time "0.4 SBU">
13]>
14
15<sect1 id="mc" xreflabel="MC-&mc-version;">
16 <?dbhtml filename="mc.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>MC-&mc-version;</title>
24
25 <indexterm zone="mc">
26 <primary sortas="a-MC">MC</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to MC</title>
31
32 <para><application>MC</application> (Midnight Commander) is a text-mode
33 full-screen file manager and visual shell. It provides a clear,
34 user-friendly, and somewhat protected interface to a Unix system while
35 making many frequent file operations more efficient and preserving the
36 full power of the command prompt.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&mc-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&mc-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &mc-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &mc-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &mc-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &mc-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>Required patch: <ulink
64 url="&patch-root;/mc-&mc-version;-bash32-1.patch"/></para>
65 </listitem>
66 <listitem>
67 <para>Recommended Patch: <ulink
68 url="&patch-root;/mc-&mc-version;-debian_fixes-1.patch"/></para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Do I Need the Debian Patch?</bridgehead>
73 <para>Midnight Commander without the Debian patch is completely unusable
74 in multibyte locales because it assumes that characters and
75 bytes are the same thing. The issue manifests itself as massive screen
76 content corruption similar to what is depicted in
77 <ulink url="&files-anduin;/mc-bad.png">this screenshot</ulink>
78 (taken in the ru_RU.UTF-8 locale). For a general discussion of this type
79 of issue, see the <xref linkend="locale-wrong-multibyte-characters"/>
80 section of the <xref linkend="locale-issues"/> page. The Debian patch
81 mostly fixes this issue, and adds support for recoding remote FTP
82 filenames. Debian also fixed 64-bit issues, rare segfaults in
83 <command>mcedit</command>, and improved syntax highlighting.</para>
84
85 <para>If you do not use a multibyte locale and do not need any of the new
86 features or fixes, the patch is still supposed to be harmless.
87 However, the patch changes the dependencies and build instructions, and
88 in the past it caused unacceptable regressions for non-UTF-8 locale users.
89 Thus, failsafe instructions without the patch are left in the book just
90 in case. Due to the size and unofficial nature of the patch, please
91 do not report bugs in the patched <application>MC</application> to the
92 original <application>MC</application> developers.</para>
93
94 <bridgehead renderas="sect3">MC Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Required</bridgehead>
97 <para role="required"><xref linkend="GLib"/> (untested with Debian patch) or
98 <xref linkend="glib2"/></para>
99
100 <bridgehead renderas="sect4">Optional</bridgehead>
101 <para role="optional"><xref linkend="gpm"/>,
102 <xref linkend="x-window-system"/>,
103 <xref linkend="samba3"/>,
104 <xref linkend="slang"/> (required when building with Debian patch),
105 <xref linkend="zip"/>,
106 <xref linkend="unzip"/>, and
107 <xref linkend="gnome-libs"/></para>
108
109 <para condition="html" role="usernotes">User Notes:
110 <ulink url="&blfs-wiki;/MC"/></para>
111
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of MC</title>
116
117 <para>Fix incompatibility of <application>MC</application>-&mc-version;
118 with <application>Bash</application>-3.2:</para>
119
120<screen><userinput>patch -Np1 -i ../mc-&mc-version;-bash32-1.patch</userinput></screen>
121
122 <para>If desired, apply Debian fixes:</para>
123
124<screen><userinput>patch -Np1 -i ../mc-&mc-version;-debian_fixes-1.patch</userinput></screen>
125
126 <para>Install <application>MC</application> by
127 running the following commands:</para>
128
129<screen><userinput>CPPFLAGS="-DUTF8" ./configure --prefix=/usr \
130 --enable-charset &amp;&amp;
131make</userinput></screen>
132
133 <para><application>MC</application> with Debian patches expects its
134 documentation to be stored in UTF-8 encoding on disk, and automatically
135 converts it to the locale encoding when displaying on the terminal. This
136 is different from the expectations of the unpatched
137 <application>MC</application>, so the documentation files have to be
138 converted if (and only if) the Debian patch has been applied:</para>
139
140<screen><userinput>convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &amp;&amp;
141convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &amp;&amp;
142convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &amp;&amp;
143convert-mans KOI8-R UTF-8 lib/mc.hint.ru &amp;&amp;
144convert-mans KOI8-U UTF-8 lib/mc.hint.uk &amp;&amp;
145convert-mans BIG5 UTF-8 lib/mc.hint.zh &amp;&amp;
146convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &amp;&amp;
147convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &amp;&amp;
148convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &amp;&amp;
149convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru</userinput></screen>
150
151 <para>This package does not come with a test suite.</para>
152
153 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
154
155<screen role="root"><userinput>make install &amp;&amp;
156chmod 1755 /usr/lib/mc/cons.saver</userinput></screen>
157
158 </sect2>
159
160 <sect2 role="commands">
161 <title>Command Explanations</title>
162
163 <para><parameter>CPPFLAGS="-DUTF8"</parameter>: This parameter activates
164 UTF-8 support in the Debian patch and has no effect without this
165 patch.</para>
166
167 <para><parameter>--enable-charset</parameter>: This option adds support
168 to <command>mcedit</command> for editing files in encodings different
169 from the one implied by the current locale. This feature works in
170 non-UTF-8 locales only, even with the Debian patch.</para>
171
172 <para><parameter>--with-screen=(slang|mcslang|ncurses)</parameter>: This
173 parameter selects the screen library used by <application>MC</application>.
174 <application>NCurses</application> support is
175 currently buggy (MC does not handle mouse events in xterm correctly).
176 UTF-8 support in the Debian patch is functional
177 only when external <xref linkend="slang"/> is used as a screen library
178 (this is the default).</para>
179
180 <para><parameter>--with-codepagedir=DIR</parameter>: This parameter was
181 useful only with <application>SAMBA</application>-2.x. New versions of
182 <application>SAMBA</application> do not have codepage files.</para>
183
184 <para><command>chmod 1755 /usr/lib/mc/cons.saver</command>: The
185 <command>cons.saver</command> program has to be installed setuid
186 root, because on LFS regular users have no access to
187 <filename>/dev/vcsa*</filename> devices. This step is optional if
188 <application>MC</application> is going to be started from X terminal
189 emulators or <command>ssh</command> sessions only (thus rendering the
190 <command>cons.saver</command> binary completely unneeded).</para>
191
192 <!-- Other distributions make the devices owned by the vcsa group
193 and make the cons.saver program setgid vcsa instead -->
194
195 </sect2>
196
197 <sect2 role="configuration">
198 <title>Configuring MC</title>
199
200 <sect3 id="mc-config">
201 <title>Config Files</title>
202
203 <para><filename>~/.mc/*</filename></para>
204
205 <indexterm zone="mc mc-config">
206 <primary sortas="e-AA..mc/*">~/..mc/*</primary>
207 </indexterm>
208
209 </sect3>
210
211 <sect3>
212 <title>Configuration Information</title>
213
214 <para>The <filename class="directory">~/.mc</filename> directory and
215 its contents are created when you start <command>mc</command> for the
216 first time. Then you can edit the main <filename>~/.mc/ini</filename>
217 configuration file manually or through the <application>MC</application>
218 shell. Consult the mc(1) man page for details.</para>
219
220 </sect3>
221
222 </sect2>
223
224 <sect2 role="content">
225 <title>Contents</title>
226
227 <segmentedlist>
228 <segtitle>Installed Programs</segtitle>
229 <segtitle>Installed Libraries</segtitle>
230 <segtitle>Installed Directories</segtitle>
231
232 <seglistitem>
233 <seg>cons.saver, mc, mcedit, mcmfmt, and mcview</seg>
234 <seg>None</seg>
235 <seg>/usr/share/mc and /usr/lib/mc</seg>
236 </seglistitem>
237 </segmentedlist>
238
239 <variablelist>
240 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
241 <?dbfo list-presentation="list"?>
242 <?dbhtml list-presentation="table"?>
243
244 <varlistentry id="conssaver">
245 <term><command>cons.saver</command></term>
246 <listitem>
247 <para>is used internally by <command>mc</command> for saving and
248 restoring the text behind the panels on Linux text console.</para>
249 <indexterm zone="mc conssaver">
250 <primary sortas="b-conssaver">cons.saver</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="mc-prog">
256 <term><command>mc</command></term>
257 <listitem>
258 <para>is a visual shell.</para>
259 <indexterm zone="mc mc-prog">
260 <primary sortas="b-mc">mc</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="mcedit">
266 <term><command>mcedit</command></term>
267 <listitem>
268 <para>is an internal file editor.</para>
269 <indexterm zone="mc mcedit">
270 <primary sortas="b-mcedit">mcedit</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="mcmfmt">
276 <term><command>mcmfmt</command></term>
277 <listitem>
278 <para>is used internally by <command>mcview</command> when viewing
279 mailbox files.</para>
280 <indexterm zone="mc mcmfmt">
281 <primary sortas="b-mcmfmt">mcmfmt</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="mcview">
287 <term><command>mcview</command></term>
288 <listitem>
289 <para>is an internal file viewer.</para>
290 <indexterm zone="mc mcview">
291 <primary sortas="b-mcview">mcview</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 </variablelist>
297
298 </sect2>
299
300</sect1>
Note: See TracBrowser for help on using the repository browser.