mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-06 00:48:19 +08:00
6c91f96e18
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1730 af4574ff-66df-0310-9fd7-8a98e5e911e0
46 lines
1.9 KiB
XML
46 lines
1.9 KiB
XML
<sect2>
|
|
<title>Configuring MPlayer</title>
|
|
|
|
<sect3><title>Config files</title>
|
|
<para><filename>/etc/mplayer/*</filename>, <filename>~/.mplayer/*</filename></para>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
<para>If you wish to utilize a <application>FreeType</application> font,
|
|
you need to link a <acronym>TTF</acronym>
|
|
file to your <filename class="directory">~/.mplayer</filename> directory. For example:
|
|
<screen><userinput><command>ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf ~/.mplayer/subfont.ttf
|
|
</command></userinput></screen>
|
|
otherwise
|
|
<screen><userinput><command>tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
|
|
ln -sf /usr/share/mplayer/font/font-arial-iso-8859-1/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* /usr/share/mplayer/font</command></userinput></screen>
|
|
You can chose your font size of 14, 18, 24 or 28.
|
|
</para>
|
|
|
|
<para>Set the proper permissions for <acronym>CODEC</acronym>s, skins and fonts:</para>
|
|
|
|
<screen><userinput><command>chown -R root:root <replaceable>[CODECs location]</replaceable> &&
|
|
chown -R root:root /usr/share/mplayer</command></userinput></screen>
|
|
|
|
<para>Optionally, set up the <acronym>GUI</acronym> with the following commands:</para>
|
|
|
|
<screen><userinput><command>cat > /etc/mplayer/mplayer.conf << "EOF"</command>
|
|
gui = yes
|
|
skin = default
|
|
<command>EOF</command></userinput></screen>
|
|
|
|
<para>The first line, <userinput>gui = yes</userinput>, will make
|
|
MPlayer start in <acronym>GUI</acronym> mode automatically. If you want to decide whether to start
|
|
in <acronym>GUI</acronym> mode or not, leave that line out and start
|
|
<command>mplayer</command> with
|
|
<option>-gui</option> or as <command>gmplayer</command> (e.g.
|
|
when starting from a Window Manager menu or command prompt). Note that
|
|
the main configuration file is called <filename>config</filename> if it
|
|
is placed in the <filename class="directory">~/.mplayer</filename> directory.</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|