[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 |
|
---|
[2dd3436a] | 7 | <!ENTITY mc-download-http "http://ftp.midnight-commander.org/mc-&mc-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY mc-download-ftp " ">
|
---|
[83f3feb] | 9 | <!ENTITY mc-md5sum "2c3dd9af66e4cfef5a7a460df1cdf868">
|
---|
[ca0df6f9] | 10 | <!ENTITY mc-size "2.3 MB">
|
---|
[83f3feb] | 11 | <!ENTITY mc-buildsize "71 MB (add 96 MB for tests)">
|
---|
[e94280ea] | 12 | <!ENTITY mc-time "0.3 SBU (using parallelism=4; add 0.2 SBU for tests)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[880c568] | 15 | <sect1 id="mc" xreflabel="MC-&mc-version;">
|
---|
[2571cae1] | 16 | <?dbhtml filename="mc.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[880c568] | 19 | <title>MC-&mc-version;</title>
|
---|
[2571cae1] | 20 |
|
---|
| 21 | <indexterm zone="mc">
|
---|
[880c568] | 22 | <primary sortas="a-MC">MC</primary>
|
---|
[2571cae1] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to MC</title>
|
---|
| 27 |
|
---|
[b1532549] | 28 | <para>
|
---|
| 29 | <application>MC</application> (Midnight Commander) is a text-mode
|
---|
| 30 | full-screen file manager and visual shell. It provides a clear,
|
---|
| 31 | user-friendly, and somewhat protected interface to a Unix system while
|
---|
| 32 | making many frequent file operations more efficient and preserving the
|
---|
| 33 | full power of the command prompt.
|
---|
| 34 | </para>
|
---|
[3cd5c69] | 35 |
|
---|
[868811b] | 36 | &lfs121_checked;
|
---|
[ee122615] | 37 |
|
---|
[2571cae1] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[b1532549] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&mc-download-http;"/>
|
---|
| 43 | </para>
|
---|
[2571cae1] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[b1532549] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&mc-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[2571cae1] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b1532549] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &mc-md5sum;
|
---|
| 53 | </para>
|
---|
[2571cae1] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b1532549] | 56 | <para>
|
---|
| 57 | Download size: &mc-size;
|
---|
| 58 | </para>
|
---|
[2571cae1] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b1532549] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &mc-buildsize;
|
---|
| 63 | </para>
|
---|
[2571cae1] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b1532549] | 66 | <para>
|
---|
| 67 | Estimated build time: &mc-time;
|
---|
| 68 | </para>
|
---|
[2571cae1] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">MC Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[476618b] | 75 | <para role="required">
|
---|
[7170b0a7] | 76 | <xref linkend="glib2"/>
|
---|
[ee122615] | 77 | </para>
|
---|
[2571cae1] | 78 |
|
---|
[2dd3436a] | 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[d2bd92f] | 81 | <xref linkend="slang"/>
|
---|
[2dd3436a] | 82 | </para>
|
---|
| 83 |
|
---|
[2571cae1] | 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ee122615] | 85 | <para role="optional">
|
---|
[3e63f22a] | 86 | <xref linkend="doxygen"/>,
|
---|
[ee122615] | 87 | <xref linkend="gpm"/>,
|
---|
[7170b0a7] | 88 | <xref linkend="graphviz"/>,
|
---|
[73fb07ad] | 89 | <xref linkend="libssh2"/>,
|
---|
[7170b0a7] | 90 | <xref linkend="pcre2"/>,
|
---|
[73fb07ad] | 91 | <xref linkend="ruby"/>,
|
---|
[7170b0a7] | 92 | <!--<xref linkend="samba"/>,-->
|
---|
[3e63f22a] | 93 | <xref linkend="unzip"/>,
|
---|
| 94 | <xref linkend="x-window-system"/>, and
|
---|
| 95 | <xref linkend="zip"/>
|
---|
[ee122615] | 96 | </para>
|
---|
[2571cae1] | 97 |
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of MC</title>
|
---|
| 102 |
|
---|
[b1532549] | 103 | <para>
|
---|
| 104 | Install <application>MC</application> by
|
---|
| 105 | running the following commands:
|
---|
| 106 | </para>
|
---|
[2571cae1] | 107 |
|
---|
[2dd3436a] | 108 | <screen><userinput>./configure --prefix=/usr \
|
---|
[ab0209e] | 109 | --sysconfdir=/etc \
|
---|
[2dd3436a] | 110 | --enable-charset &&
|
---|
[f0801a2d] | 111 | make</userinput></screen>
|
---|
[3a575ab5] | 112 |
|
---|
[b1532549] | 113 | <para>
|
---|
| 114 | To test the results, issue: <command>make check</command>.
|
---|
[2edd9049] | 115 |
|
---|
[b1532549] | 116 | </para>
|
---|
[bccbdaea] | 117 |
|
---|
[b1532549] | 118 | <para>
|
---|
| 119 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 120 | </para>
|
---|
[7f78b6f] | 121 |
|
---|
[f2abc73] | 122 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[3a575ab5] | 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="commands">
|
---|
| 127 | <title>Command Explanations</title>
|
---|
[29f80ebc] | 128 |
|
---|
[b1532549] | 129 | <para>
|
---|
| 130 | <parameter>--sysconfdir=/etc</parameter>: This switch places the
|
---|
[1711612] | 131 | global configuration directory in <filename
|
---|
[b1532549] | 132 | class="directory">/etc</filename>.
|
---|
| 133 | </para>
|
---|
[ab0209e] | 134 |
|
---|
[b1532549] | 135 | <para>
|
---|
| 136 | <parameter>--enable-charset</parameter>: This switch adds support
|
---|
| 137 | to <command>mcedit</command> for editing files in encodings different
|
---|
| 138 | from the one implied by the current locale.
|
---|
| 139 | </para>
|
---|
[57d40736] | 140 |
|
---|
[44ecc1d7] | 141 | <para>
|
---|
| 142 | <parameter>--with-screen=ncurses</parameter>: Use this if you don't
|
---|
| 143 | have <xref linkend="slang"/> installed.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
[7170b0a7] | 146 | <para>
|
---|
| 147 | <option>--with-search-engine=pcre2</option>: Use this switch if you would
|
---|
| 148 | prefer to use <xref linkend="pcre2" role="nodep"/> instead of GLib for
|
---|
[abfacaf] | 149 | the built-in search engine.
|
---|
[7170b0a7] | 150 | </para>
|
---|
| 151 |
|
---|
[2571cae1] | 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="configuration">
|
---|
| 155 | <title>Configuring MC</title>
|
---|
| 156 |
|
---|
| 157 | <sect3 id="mc-config">
|
---|
| 158 | <title>Config Files</title>
|
---|
| 159 |
|
---|
[b1532549] | 160 | <para>
|
---|
| 161 | <filename>~/.config/mc/*</filename>
|
---|
| 162 | </para>
|
---|
[2571cae1] | 163 |
|
---|
| 164 | <indexterm zone="mc mc-config">
|
---|
[52f9553c] | 165 | <primary sortas="e-AA.config/.mc/*">~/.config/.mc/*</primary>
|
---|
[2571cae1] | 166 | </indexterm>
|
---|
| 167 |
|
---|
| 168 | </sect3>
|
---|
| 169 |
|
---|
| 170 | <sect3>
|
---|
| 171 | <title>Configuration Information</title>
|
---|
| 172 |
|
---|
[b1532549] | 173 | <para>
|
---|
| 174 | The <filename class="directory">~/.config/mc</filename> directory and
|
---|
| 175 | its contents are created when you start <command>mc</command> for the
|
---|
| 176 | first time. Then you can edit the main <filename>~/.config/mc/ini
|
---|
| 177 | </filename> configuration file manually or through the <application>
|
---|
[23b54336] | 178 | MC</application> shell. Consult the <ulink role='man'
|
---|
| 179 | url='&man;mc.1'>mc(1)</ulink> man page for details.
|
---|
[b1532549] | 180 | </para>
|
---|
| 181 |
|
---|
[2571cae1] | 182 | </sect3>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | <sect2 role="content">
|
---|
| 187 | <title>Contents</title>
|
---|
| 188 |
|
---|
| 189 | <segmentedlist>
|
---|
| 190 | <segtitle>Installed Programs</segtitle>
|
---|
| 191 | <segtitle>Installed Libraries</segtitle>
|
---|
| 192 | <segtitle>Installed Directories</segtitle>
|
---|
| 193 |
|
---|
| 194 | <seglistitem>
|
---|
[b01e2d2] | 195 | <seg>mc and the symlinks mcdiff, mcedit and mcview</seg>
|
---|
[2571cae1] | 196 | <seg>None</seg>
|
---|
[05ec61e9] | 197 | <seg>/etc/mc and /usr/{libexec,share}/mc</seg>
|
---|
[2571cae1] | 198 | </seglistitem>
|
---|
| 199 | </segmentedlist>
|
---|
| 200 |
|
---|
| 201 | <variablelist>
|
---|
| 202 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 203 | <?dbfo list-presentation="list"?>
|
---|
| 204 | <?dbhtml list-presentation="table"?>
|
---|
| 205 |
|
---|
[7170b0a7] | 206 | <!-- This program is installed in /usr/libexec
|
---|
[3a575ab5] | 207 | <varlistentry id="conssaver">
|
---|
| 208 | <term><command>cons.saver</command></term>
|
---|
| 209 | <listitem>
|
---|
[b1532549] | 210 | <para>
|
---|
| 211 | is used internally by <command>mc</command> for saving and
|
---|
[4c24eb0a] | 212 | restoring the text behind the panels on Linux text console
|
---|
[b1532549] | 213 | </para>
|
---|
[3a575ab5] | 214 | <indexterm zone="mc conssaver">
|
---|
| 215 | <primary sortas="b-conssaver">cons.saver</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
[7170b0a7] | 219 | -->
|
---|
[3a575ab5] | 220 |
|
---|
[2571cae1] | 221 | <varlistentry id="mc-prog">
|
---|
| 222 | <term><command>mc</command></term>
|
---|
| 223 | <listitem>
|
---|
[b1532549] | 224 | <para>
|
---|
[4c24eb0a] | 225 | is a visual shell
|
---|
[b1532549] | 226 | </para>
|
---|
[2571cae1] | 227 | <indexterm zone="mc mc-prog">
|
---|
| 228 | <primary sortas="b-mc">mc</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
[ee122615] | 233 | <varlistentry id="mcdiff">
|
---|
| 234 | <term><command>mcdiff</command></term>
|
---|
[3a575ab5] | 235 | <listitem>
|
---|
[b1532549] | 236 | <para>
|
---|
[4c24eb0a] | 237 | is an internal visual diff tool
|
---|
[b1532549] | 238 | </para>
|
---|
[ee122615] | 239 | <indexterm zone="mc mcdiff">
|
---|
| 240 | <primary sortas="b-mcdiff">mcdiff</primary>
|
---|
[3a575ab5] | 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
[af5248e2] | 245 | <varlistentry id="mcedit">
|
---|
| 246 | <term><command>mcedit</command></term>
|
---|
| 247 | <listitem>
|
---|
[b1532549] | 248 | <para>
|
---|
[4c24eb0a] | 249 | is an internal file editor
|
---|
[b1532549] | 250 | </para>
|
---|
[af5248e2] | 251 | <indexterm zone="mc mcedit">
|
---|
| 252 | <primary sortas="b-mcedit">mcedit</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
[2571cae1] | 257 | <varlistentry id="mcview">
|
---|
| 258 | <term><command>mcview</command></term>
|
---|
| 259 | <listitem>
|
---|
[b1532549] | 260 | <para>
|
---|
[4c24eb0a] | 261 | is an internal file viewer
|
---|
[b1532549] | 262 | </para>
|
---|
[2571cae1] | 263 | <indexterm zone="mc mcview">
|
---|
| 264 | <primary sortas="b-mcview">mcview</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | </variablelist>
|
---|
| 270 |
|
---|
| 271 | </sect2>
|
---|
[2082ebf6] | 272 |
|
---|
| 273 | </sect1>
|
---|