by Trickster

(Transferred from the wiki by Peter)

The goal of this tutorial is to do a step-by-step installation of Xine, and configure it to allow DVD playback.

What you will need:

LibDVDCSS (Optional, but quite useful.) For this PET, the current version is libdvdcss-1.2.6
Xine-Lib and some Xine front-end. I used Xine-UI because it worked right-away. For this PET, the current versions are xine-lib-1-beta12 and xine-ui-0.9.21

Installing LibDVDCSS

Download and extract the tarball. Change directory to the folder you just extracted, and Configure it.
./configure --prefix=/usr
Then compile it by typing make, and install it as root
Code:
  su -c "make install".
Installing Xine Libraries

1.Download and extract the tarball. Change directory to the folder you just extracted, and Configure it with
Code:
  ./configure, then install it su -c make install.
2.With a text editor, make sure your /etc/ld.so.conf contains /usr/local/lib. Then, run
Code:
  su -c ldconfig
Installing Xine-UI

1. Unpack your frontend , then run
Code:
  ./configure and make install.
Check access to your DVD player

1. Check to see if /dev/dvd exists. If it does not, make a symbolic link to it from your dcd player
Code:
  su -c "ln -s /dev/hdc /dev/dvd"
(assuming your dvd player is on /dev/hdc.) Next, make sure your user account can access both /dev/hdc and /dev/dvd. ls -la will list all the permissions.

2. If your user account does not have permissions, there are two ways to deal with it:
quick and dirty
Code:
  su -c "chmod 755 /dev/hdc /dev/dvd"
slow and efficient

  1. Make a group called media. su -c "groupadd media"
  2. Make sure your optical devices belong to that group. su -c "chgrp media /dev/hdc /dev/dvd"
  3. Then make sure the owner and the group can read and write those devices, and no-one else. su -c "chmod 660 /dev/hdc /dev/dvd"
  4. Add your user account to the media group. su -c "adduser yourusername media"


You should be all set now. From the command line, type xine-check, This should check your configuration. If you don't get any errors, you should be good to go.

References

Xine FAQ
Linux Sound Permissions
Configuring and administering Linux