[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[ee122615] | 7 | <!ENTITY mc-download-http "https://www.midnight-commander.org/downloads/mc-&mc-version;.tar.xz">
|
---|
| 8 | <!ENTITY mc-download-ftp " ">
|
---|
| 9 | <!ENTITY mc-md5sum "1e29f8d2ce66b686b905857553a092be">
|
---|
| 10 | <!ENTITY mc-size "2.0 MB">
|
---|
| 11 | <!ENTITY mc-buildsize "89 MB">
|
---|
| 12 | <!ENTITY mc-time "0.6 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[ab0209e] | 15 | <sect1 id="mc" xreflabel="mc-&mc-version;">
|
---|
[2571cae1] | 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 |
|
---|
[539ace5] | 32 | <para><application>MC</application> (Midnight Commander) is a text-mode
|
---|
[3cd5c69] | 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 |
|
---|
[ee122615] | 38 | &lfs71_checked;
|
---|
| 39 |
|
---|
| 40 | <note><para>The download site uses a self-signed security certificate.
|
---|
| 41 | You will need to accept it as valid to get the source code.</para></note>
|
---|
| 42 |
|
---|
[2571cae1] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&mc-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&mc-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &mc-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &mc-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &mc-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &mc-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[3a575ab5] | 65 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 66 | <itemizedlist spacing="compact">
|
---|
| 67 | <listitem>
|
---|
[ee122615] | 68 | <para>Optional patch:
|
---|
| 69 | <ulink url="&patch-root;/mc-&mc-version;-missing-1.patch"/>
|
---|
| 70 | </para>
|
---|
[3a575ab5] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[2571cae1] | 74 | <bridgehead renderas="sect3">MC Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[476618b] | 77 | <para role="required">
|
---|
| 78 | <xref linkend="glib2"/> and
|
---|
| 79 | <xref linkend="pcre"/>
|
---|
[ee122615] | 80 | </para>
|
---|
[2571cae1] | 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ee122615] | 83 | <para role="optional">
|
---|
| 84 | <xref linkend="gpm"/>,
|
---|
| 85 | <xref linkend="x-window-system"/>,
|
---|
| 86 | <xref linkend="samba3"/>,
|
---|
| 87 | <xref linkend="slang"/>,
|
---|
| 88 | <xref linkend="zip"/>, and
|
---|
| 89 | <xref linkend="unzip"/>
|
---|
| 90 | </para>
|
---|
[2571cae1] | 91 |
|
---|
[1039de3] | 92 | <para condition="html" role="usernotes">User Notes:
|
---|
[6c42d4e] | 93 | <ulink url="&blfs-wiki;/MC"/></para>
|
---|
[1039de3] | 94 |
|
---|
[2571cae1] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of MC</title>
|
---|
| 99 |
|
---|
[ee122615] | 100 | <para>Add a missing file to run all tests:</para>
|
---|
[3a575ab5] | 101 |
|
---|
[ee122615] | 102 | <screen><userinput>patch -Np1 -i ../mc-&mc-version;-missing-1.patch</userinput></screen>
|
---|
[3a575ab5] | 103 |
|
---|
[2571cae1] | 104 | <para>Install <application>MC</application> by
|
---|
| 105 | running the following commands:</para>
|
---|
| 106 |
|
---|
[ab0209e] | 107 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 108 | --enable-charset \
|
---|
| 109 | --disable-static \
|
---|
| 110 | --sysconfdir=/etc \
|
---|
| 111 | --with-screen=ncurses &&
|
---|
[f0801a2d] | 112 | make</userinput></screen>
|
---|
[3a575ab5] | 113 |
|
---|
[ee122615] | 114 | <para>To test the results, issue: <userinput>make check</userinput>.</para>
|
---|
[bccbdaea] | 115 |
|
---|
[7f78b6f] | 116 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 117 |
|
---|
[ab0209e] | 118 | <screen role="root"><userinput>make install &&
|
---|
| 119 | cp -v doc/keybind-migration.txt /usr/share/mc</userinput></screen>
|
---|
[3a575ab5] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="commands">
|
---|
| 124 | <title>Command Explanations</title>
|
---|
[29f80ebc] | 125 |
|
---|
[3a575ab5] | 126 | <para><parameter>--enable-charset</parameter>: This option adds support
|
---|
[f0801a2d] | 127 | to <command>mcedit</command> for editing files in encodings different
|
---|
[ee122615] | 128 | from the one implied by the current locale.</para>
|
---|
[29f80ebc] | 129 |
|
---|
[ab0209e] | 130 | <para><parameter>--sysconfdir=/etc</parameter>: This option places the
|
---|
| 131 | global configureation directory in <filename
|
---|
| 132 | class="directory">/etc</filename>.</para>
|
---|
| 133 |
|
---|
| 134 | <para><parameter>--with-screen=ncurses</parameter>: This option is only
|
---|
[a458af83] | 135 | required if the optional <xref linkend="slang"/> package is not installed.
|
---|
[ab0209e] | 136 | </para>
|
---|
| 137 |
|
---|
[ee122615] | 138 | <para><parameter>--with-screen=(slang|ncurses)</parameter>: This
|
---|
[f0801a2d] | 139 | parameter selects the screen library used by <application>MC</application>.
|
---|
[ee122615] | 140 | <xref linkend="slang"/> is the default if found.</para>
|
---|
[2571cae1] | 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="configuration">
|
---|
| 145 | <title>Configuring MC</title>
|
---|
| 146 |
|
---|
| 147 | <sect3 id="mc-config">
|
---|
| 148 | <title>Config Files</title>
|
---|
| 149 |
|
---|
[52f9553c] | 150 | <para><filename>~/.config/mc/*</filename></para>
|
---|
[2571cae1] | 151 |
|
---|
| 152 | <indexterm zone="mc mc-config">
|
---|
[52f9553c] | 153 | <primary sortas="e-AA.config/.mc/*">~/.config/.mc/*</primary>
|
---|
[2571cae1] | 154 | </indexterm>
|
---|
| 155 |
|
---|
| 156 | </sect3>
|
---|
| 157 |
|
---|
| 158 | <sect3>
|
---|
| 159 | <title>Configuration Information</title>
|
---|
| 160 |
|
---|
[52f9553c] | 161 | <para>The <filename class="directory">~/.config/mc</filename> directory and
|
---|
[2571cae1] | 162 | its contents are created when you start <command>mc</command> for the
|
---|
[52f9553c] | 163 | first time. Then you can edit the main <filename>~/.config/mc/ini</filename>
|
---|
[0619e6d] | 164 | configuration file manually or through the <application>MC</application>
|
---|
[2571cae1] | 165 | shell. Consult the mc(1) man page for details.</para>
|
---|
| 166 |
|
---|
[ab0209e] | 167 | <note><para> On 8.x versions of <application>mc</application>,
|
---|
| 168 | keybind names used in mc.keymap.* files are changed. This is
|
---|
| 169 | described in <filename>keybind-migration.txt</filename>.</para></note>
|
---|
| 170 |
|
---|
[2571cae1] | 171 | </sect3>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
| 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Programs</segtitle>
|
---|
| 180 | <segtitle>Installed Libraries</segtitle>
|
---|
| 181 | <segtitle>Installed Directories</segtitle>
|
---|
| 182 |
|
---|
| 183 | <seglistitem>
|
---|
[ee122615] | 184 | <seg>mc, mcdiff, mcedit, and mcview</seg>
|
---|
[2571cae1] | 185 | <seg>None</seg>
|
---|
[52f9553c] | 186 | <seg>/etc/mc, /usr/libexec/mc, /usr/share/mc, ~/config/mc</seg>
|
---|
[2571cae1] | 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
[3a575ab5] | 195 | <varlistentry id="conssaver">
|
---|
| 196 | <term><command>cons.saver</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>is used internally by <command>mc</command> for saving and
|
---|
[f0801a2d] | 199 | restoring the text behind the panels on Linux text console.</para>
|
---|
[3a575ab5] | 200 | <indexterm zone="mc conssaver">
|
---|
| 201 | <primary sortas="b-conssaver">cons.saver</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
[2571cae1] | 206 | <varlistentry id="mc-prog">
|
---|
| 207 | <term><command>mc</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>is a visual shell.</para>
|
---|
| 210 | <indexterm zone="mc mc-prog">
|
---|
| 211 | <primary sortas="b-mc">mc</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="mcedit">
|
---|
| 217 | <term><command>mcedit</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>is an internal file editor.</para>
|
---|
| 220 | <indexterm zone="mc mcedit">
|
---|
| 221 | <primary sortas="b-mcedit">mcedit</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
[ee122615] | 226 | <varlistentry id="mcdiff">
|
---|
| 227 | <term><command>mcdiff</command></term>
|
---|
[3a575ab5] | 228 | <listitem>
|
---|
[ee122615] | 229 | <para>is an internal visual diff tool.</para>
|
---|
| 230 | <indexterm zone="mc mcdiff">
|
---|
| 231 | <primary sortas="b-mcdiff">mcdiff</primary>
|
---|
[3a575ab5] | 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
[2571cae1] | 236 | <varlistentry id="mcview">
|
---|
| 237 | <term><command>mcview</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>is an internal file viewer.</para>
|
---|
| 240 | <indexterm zone="mc mcview">
|
---|
| 241 | <primary sortas="b-mcview">mcview</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | </variablelist>
|
---|
| 247 |
|
---|
| 248 | </sect2>
|
---|
[2082ebf6] | 249 |
|
---|
| 250 | </sect1>
|
---|