Cdred install
=============
Currently cdred doesn't have an automatic installation. Follow this steps to install it manually:


1. Compile. Type as a normal user (not as root):
	make

	*******If you get error messages about esd read the 2.8 section of the FAQ.*******

2. Create /dev/cdred file in the client computer. Type the following as root:
	mknod /dev/cdred b 250 0
	
   If you got another block device with the number 250, change the definition of CDRED_MAJOR_NR in driver.c to 
   an available number, compile again and create /dev/cdred with that number.


3. Install the driver in the client computer. Type the following as root:
	insmod cdred_driver.o procfile_uid=X procfile_gid=Y 

   Replace X and Y with your uid and gid, respectively. This enables cdredd to be executed without root permissions, this is 
   HIGHLY RECOMENDABLE.

   If you use cdred with a jukebox driver (CD Changer) please read README.jukebox.


4. Launch cdred server in the computer that shares the cdrom drive.
	cdred_server &

	If you want to share a cdrom drive different from /dev/cdrom use the -c /dev/whatever option:
	cdred_server -c /dev/whatever &


5. Execute cdredd in the client computer passing it the computer where cdred_server is running:
	cdredd server_host &

	If you want cdred to use esound for audio output, use the -E option.

6. Launch in the client computer your favourite cd player program and tell it to use /dev/cdred as the cdrom device.
   For help about doing this in a particular program consult its documentation. Some examples: 
	gtcd --device=/dev/cdred
	cdp -c /dev/cdred
	ascd -device /dev/cdred

   Some programs with a graphical user interface (xfreecd or kscd, for example) doesn't have a command line option for doing this,
   but have a configuration window with the opcion "CDROM device" or something alike. Type there /dev/cdred.

   If the program that you want to use doesn't let you change your cdrom device it will surely use /dev/cdrom, who is a symbolic
   link to other device. Change the link so that it points to /dev/cdred and everything should work fine. Doing this will make that
   *all* the programs in the system that use /dev/cdrom will now use /dev/cdred, therefore this is the most advisable method when 
   the client computer doesn't have a cdrom drive.


   Currently cdred doesn't let you use more than one program using it at the same time. This will be solved in future versions.

The steps 3, 4 and 5 must be done each time you boot your machine. In next versions cdred will have a simpler installation.
