LDP/LDP/ref/docbook/VideoLAN-Quickstart/install-vls.sgml

227 lines
5.2 KiB
Plaintext

<!--
<sect2><title>Under Windows</title>
<para>
Download the Zip file for Windows from the <ulink
url="http://www.videolan.org/vls/download.html">vls download
page</ulink> and unzip-it in a directory.
</para>
<note><para>
The Windows version of vls can only stream MPEG
files stored on a hard drive. It cannot stream DVDs, satellite channels
or real-time MPEG encoded videos.
</para></note>
<sect2><title>Under Linux Debian</title>
<para>
Edit <filename>/etc/apt/sources.list</filename> and add the following line :
</para>
<programlisting>
deb http://www.videolan.org/pub/videolan/debian $(ARCH)/
deb-src http://www.videolan.org/pub/videolan/debian sources/
</programlisting>
<para>
Then install the packages :
</para>
<screen>
<prompt># </prompt><userinput>apt-get update</userinput>
<prompt># </prompt><userinput>apt-get install libdvdcss2 vls-dvd</userinput>
</screen>
<para>
If you don't want to stream DVDs, type instead :
</para>
<screen>
<prompt># </prompt><userinput>apt-get update</userinput>
<prompt># </prompt><userinput>apt-get install vls</userinput>
</screen>
</sect2>
<sect2><title>Under Linux RedHat, Mandrake or SuSE</title>
<para>
Download the RPM package of libdvdcss from the <ulink
url="http://www.videolan.org/libdvdcss/download.html">libdvdcss download page</ulink>.
</para>
<para>
Download the RPM package of libdvbpsi from the <ulink url="http://www.videolan.org/libdvbpsi/download.htm">libdvbpsi
download page</ulink>.
</para>
<para>
Download the RPM package of libdvdread from <ulink
url="http://www.dtek.chalmers.se/groups/dvd/redhat.shtm">Ogle's download page</ulink>.
</para>
<para>
Download the RPM packages <filename>vls</filename> and <filename>vls-dvd</filename> from the <ulink url="http://www.videolan.org/vls/download.html">vls download page</ulink>.
</para>
<para>
Then install the RPM packages you have downloaded :
</para>
<screen>
<prompt># </prompt><userinput>rpm -Uhv vls-version.i586.rpm vls-dvd-version.i586.rpm libdvdcss2-version.i586.rpm
libdvbpsi1-version.i586.rpm libdvdread-version.i386.rpm</userinput>
</screen>
</sect2>
-->
<sect2><title>Under Linux or Unix</title>
<para>The method below is for any Unix or Linux supported by the
Videolan Server. It explains how to compile and install vls and the
needed librairies from sources.</para>
<sect3><title>Install the librairies</title>
<para>
Many librairies are needed for particular uses :
</para>
<itemizedlist>
<listitem><para><emphasis>libdvbpsi</emphasis> (always needed)</para></listitem>
<listitem><para><emphasis>libdvdcss</emphasis> if you want to be able to access encrypted DVDs,</para></listitem>
<listitem><para><emphasis>libdvdread</emphasis> if you want to be able to stream DVDs.</para></listitem>
</itemizedlist>
<para>
Download the libraries from <ulink
url="http://www.videolan.org/pub/videolan/vls/"></ulink> in the directory
<filename>version/contrib</filename>.
</para>
<para>
For each librairie, uncompress, configure, compile and install :
</para>
<para>
<screen>
<prompt>% </prompt><userinput>tar xvzf library.tar.gz</userinput>
<prompt>% </prompt><userinput>cd library</userinput>
<prompt>% </prompt><userinput>./configure --enable-shared</userinput>
<prompt>% </prompt><userinput>make</userinput>
<prompt># </prompt><userinput>make install</userinput>
</screen>
</para>
<para>
Check that the configuration file <filename>/etc/ld.so.conf</filename>
contains the following line :
</para>
<programlisting>
/usr/local/lib
</programlisting>
<para>If the line is not present, add-it and then run :</para>
<screen>
<prompt># </prompt><userinput>ldconfig</userinput>
</screen>
</sect3>
<sect3><title>Install the VideoLAN Server</title>
<!--
<para>
Download the sources of the latest release : get the file
<filename>vls-version.tar.gz</filename> from the <ulink url="http://www.videolan.org/vls/download.html">vls download page</ulink>. Uncompress-it :
</para>
<screen>
<prompt>% </prompt><userinput>tar xvzf vls-version.tar.gz</userinput>
<prompt>% </prompt><userinput>cd vls-version</userinput>
</screen>
-->
<para>
Get the most recent version of the VideoLAN Server from the public CVS :
</para>
<screen>
<prompt>% </prompt><userinput>cvs -d:pserver:anonymous@cvs.videolan.org:/cvs/videolan login</userinput>
</screen>
<para>
There is no password. Type enter, then :
</para>
<screen>
<prompt>% </prompt><userinput>cvs -d:pserver:anonymous@cvs.videolan.org:/cvs/videolan checkout -P -r v0_4_5 vls</userinput>
</screen>
<para>
To get the list of configuration options, do :
</para>
<screen>
<prompt>% </prompt><userinput>./configure --help</userinput>
</screen>
<para>
Then configure vls :
</para>
<itemizedlist>
<listitem><para>if you want a basic vls without DVD support, do :
</para>
<screen>
<prompt>% </prompt><userinput>./configure --disable-dvd</userinput>
</screen>
</listitem>
<listitem><para>if you want a full vls with DVD support, do :
</para>
<screen>
<prompt>% </prompt><userinput>./configure</userinput>
</screen>
</listitem>
</itemizedlist>
<para>
Then, compile and install :
</para>
<screen>
<prompt>% </prompt><userinput>make</userinput>
<prompt># </prompt><userinput>make install</userinput>
</screen>
<para>
You can also do a <command>make uninstall</command>, <command>make
clean</command> or <command>make distclean</command> as needed.
</para>
</sect3>
</sect2>