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