HowTo install WebCDwriter On SME 5

Author

Placido Sanchez
http://www.geocities.com/lapsch
Last Updated 04-01-02

WARNING

Tested only on SME 5. Before you do anything make sure to read the documentation for each of the packages below, and ......
You are responsible for any changes you make, so only add these settings if you know what you're doing, or are prepared to deal with the consequences.

Introduction

WebCDwriter ( http://wwwhomes.uni-bielefeld.de/jhaeger/webCDwriter/ )
"webCDwriter can be used to make a single CD-writer available to the users in your network."

Download

1 audiofile (needed by mpg123) ftp://speakeasy.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/audiofile-0.2.1-2.i386.rpm
2 esound (needed by mpg123) ftp://speakeasy.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/esound-0.2.22-5.i386.rpm
3 mpg123 (needed by webCDWriter) ftp://speakeasy.rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/mpg123-0.59r-10.i386.rpm
4 webCDWriter (rpm for redhat 7.2) http://129.70.4.38/download/webCDwriter-2.2c-1.i586.rpm

Needed for workstations accessing webCDcreator

Java Runtime Plugin (for linux, windows...)
    http://java.sun.com/products/archive/j2se/1.3.1_02/jre/

Optional - suns Java Web Start (recommended, does not depend on browser, runs alone)
    http://java.sun.com/products/javawebstart/download-windows.html
 

Things you should already have done

Configure your CDR(W) drive.
Install mkisofs and cdrecord

If you need to do this follow these instructions:
CDWriter-howto.html

NOTE: webCDWriter 2.1 requires cdrtools-1.10, the rpms from rpmfind.net do NOT work on 2.2.x kernels, I've rebuild the  ftp://ftp.redhat.com/pub/redhat/linux/7.2/en/os/i386/SRPMS/cdrtools-1.10-4.src.rpm  on SME 5 and seems to work properly.

You might need to upgrade some other packages
Get all the updates from
ftp://updates.redhat.com/7.0/
ftp://updates.redhat.com/7.1/
ftp://updates.redhat.com/7.2/

Installation

Install all the files in the 'Download' section. In the order that they appear.

rpm -Uvh audiofile-0.2.1-2.i386.rpm
rpm -Uvh esound-0.2.22-5.i386.rpm
rpm -Uvh mpg123-0.59r-10.i386.rpm

NOTE: before you install webCDwriter rpm do the following, besure its 'webCDcreator' and not 'webcdcreator' (notice the capital 'CD').

mkdir /home/e-smith/files/primary/html/webCDcreator
ln -s /home/e-smith/files/primary/html/webCDcreator /var/www/html/webCDcreator

rpm -Uvh webCDwriter-2.2c-1.i586.rpm

Before you start CDWserver, edit '/etc/CDWserver/config' to your needs.
Install the java plugin on the machine/s you will be using to access webCDcreator.
If you will be using java web start make sure to configure apache correctly,
edit/create /etc/e-smith/templates-custom/etc/mime.types/JavaWebStart.jnlp
put this two lines below in 'JavaWebStart.jnlp'
--------------------------------------------
# For java web start
application/x-java-jnlp-file    jnlp
--------------------------------------------

rebuild /etc/mime.types
/sbin/e-smith/expand-template /etc/mime.types
restart apache
/etc/rc.d/init.d/httpd restart
Finally start CDWserver
/etc/rc.d/init.d/CDWserver start
Go to a workstation, open a browser, go to http://xxx.xxx.xxx.xxx/webCDcreator/ or http://server.domain.something/webCDcreator/

Enjoy!

Troubleshooting

If you get a cdrecord error like the one below
-------------------------------------------------------------------------------
cdrecord: Invalid argument. Cannot get mmap for 4198400 Bytes on /dev/zero
--------------------------------------------------------------------------------
this means that cdrecord was not compile with the same kernel version your machine is using(probably on a 2.4.x machine),
a solution would be to use an older cdrecord version, or recompile cdrecord using your kernel version.
Hosted by www.Geocities.ws

1