| 1 |
rplay INSTALL - Installation instructions -*-outline-*- |
| 2 |
|
| 3 |
* Overview |
| 4 |
|
| 5 |
This file contains a list of installation instructions for rplay. |
| 6 |
Please read this file very carefully and don't skip any steps unless |
| 7 |
you think you know what you are doing. If you get confused at any |
| 8 |
time during the installation please read the documents in the `doc' |
| 9 |
directory. |
| 10 |
|
| 11 |
* Configuration |
| 12 |
|
| 13 |
** Execute `./configure' |
| 14 |
|
| 15 |
rplay is configured using GNU autoconf. Execute `./configure' in the |
| 16 |
rplay source directory to create rplay configuration files for your |
| 17 |
system. If you want to install rplay in a directory tree other than |
| 18 |
`/usr/local' use `./configure --prefix=/installation/path'. |
| 19 |
|
| 20 |
The file `INSTALL.generic' contains generic GNU autoconf installation |
| 21 |
instructions. Please read this file if you're having problems |
| 22 |
using configure. |
| 23 |
|
| 24 |
If the configuration script cannot determine your system type it will |
| 25 |
try to use a generic configuration. Note that the system type is used |
| 26 |
to enable system specific audio routines. The generic configuration |
| 27 |
assumes an 8000 Hz audio device that accepts ulaw encoded audio data. |
| 28 |
System specific audio routines are located in the rplayd/audio |
| 29 |
directory. See the PORTING file for more information on porting rplay |
| 30 |
to another system. |
| 31 |
|
| 32 |
** Edit `Makefile.config' |
| 33 |
|
| 34 |
You may need to edit `Makefile.config' to choose the correct C |
| 35 |
compiler, CC_OPTIONS, and LD_OPTIONS. Note that configure will try to |
| 36 |
use the gcc compiler with the -O flag by default. HP users should |
| 37 |
uncomment all the lines specified. |
| 38 |
|
| 39 |
** Edit `include/config.h' |
| 40 |
|
| 41 |
rplay configuration parameters can be changed in `include/config.h'. |
| 42 |
This is where you can change the location of rplay.conf, rplay.hosts, |
| 43 |
rplay.servers, rplay.cache, and rplay.log, if necessary. (These file |
| 44 |
names are automatically modified by configure's --prefix option) |
| 45 |
There's several other parameters that you may want to enable or |
| 46 |
disable or change. |
| 47 |
|
| 48 |
** Special HP modifications |
| 49 |
|
| 50 |
HP users need to edit `librplay/Makefile' to comment/uncomment a few lines. |
| 51 |
See the directions in `librplay/Makefile' for more information. |
| 52 |
-- I've got to add this to the configure script. |
| 53 |
|
| 54 |
* Build Makefile dependencies (optional) |
| 55 |
|
| 56 |
Execute `make depend' to create dependencies in the Makefiles. The |
| 57 |
`makedepend' program is used to create the dependencies (see |
| 58 |
`Makefile.config'). |
| 59 |
|
| 60 |
* Compile rplay |
| 61 |
|
| 62 |
Execute `make' to compile rplay. Compiler flags can be changed by |
| 63 |
specifying CFLAGS on the make command line. (i.e. `make CFLAGS="-O4 |
| 64 |
-g"') The C compiler can be changed in the same manner as CFLAGS by |
| 65 |
using the CC make parameter. |
| 66 |
|
| 67 |
If rplay does not compile successfully you might need to change either |
| 68 |
the `Makefile.config' or `include/config.h'. |
| 69 |
|
| 70 |
* Create configuration files |
| 71 |
|
| 72 |
Create your rplay.servers, rplay.hosts, and rplay.conf files. Manual |
| 73 |
pages for each of these files are included in the `doc' directory. |
| 74 |
Note that the rplay.hosts file is only required if AUTH was defined in |
| 75 |
include/config.h. (AUTH is defined by default) |
| 76 |
|
| 77 |
* Install rplay |
| 78 |
|
| 79 |
When rplay successfully compiles, execute `make install'. This will |
| 80 |
verify that rplay has been compiled successfully and install rplay. |
| 81 |
|
| 82 |
* rplayd installation options |
| 83 |
|
| 84 |
** Is rplayd secure enough to run as root? |
| 85 |
|
| 86 |
Well, that's entirely up to you. The BAD_DIRS option in |
| 87 |
`include/config.h' restricts the directories that can be accessed by |
| 88 |
rplayd. (By default BAD_DIRS includes /etc, /dev, /devices, and |
| 89 |
/proc) Remember to read the NO WARRANTY section in the COPYING file. |
| 90 |
|
| 91 |
** Running rplayd from inetd |
| 92 |
|
| 93 |
Option --inetd *must* be used. |
| 94 |
|
| 95 |
Sample inetd.conf entry: |
| 96 |
|
| 97 |
rplay dgram udp wait root /usr/sbin/rplayd rplayd --inetd |
| 98 |
|
| 99 |
Sample /etc/services entry: |
| 100 |
|
| 101 |
rplay 5555/udp |
| 102 |
|
| 103 |
** Running rplayd as a standalone daemon |
| 104 |
|
| 105 |
When rplayd is not started by inetd it must be started manually by |
| 106 |
individual users or at system startup. Users may wish to start rplayd |
| 107 |
whenever they use the system console. See `rplayd --help' for option |
| 108 |
information. |
| 109 |
|
| 110 |
** Audio device permissions |
| 111 |
|
| 112 |
Check your systems audio device permissions. SunOS 4.1.x can |
| 113 |
automatically set the permissions of /dev/audio using /etc/fbtab. |
| 114 |
(`man 5 fbtab') Solaris 2.X uses /etc/logindevperm. When these device |
| 115 |
permission files include the audio device, only the person logged in |
| 116 |
on the system console will have access to the audio device. Linux |
| 117 |
users should check /dev/dsp and /dev/mixer. |
| 118 |
|
| 119 |
* Now see if rplay works |
| 120 |
|
| 121 |
Start rplayd (using inetd or standalone) and execute `rplay sound', |
| 122 |
where `sound' is the name of a sound file in rplay.conf, a sound file |
| 123 |
in the current directory, or a complete pathname to a sound file. |
| 124 |
|
| 125 |
* It doesn't work! |
| 126 |
|
| 127 |
** Try debug mode |
| 128 |
|
| 129 |
If a `sound' is not played then I recommend you run rplayd in debug |
| 130 |
mode to see exactly what is wrong. When using rplayd in debug mode |
| 131 |
all inetd.conf entries (if any) must be removed and inetd restarted. |
| 132 |
|
| 133 |
Try running `rplayd -d' and `rplay sound'. |
| 134 |
You should see output like: |
| 135 |
|
| 136 |
rplayd: loading local file /home/mrb/sounds/bogus.au |
| 137 |
rplayd: bogus.au input=file bits=8 sample-rate=8000 channels=1 samples=9542 format=ulaw byte-order=big-endian |
| 138 |
|
| 139 |
** Other possible problems |
| 140 |
|
| 141 |
*** Is the volume of the audio device very low or zero? |
| 142 |
|
| 143 |
Use xrplay, audiotool, xmix, xmixer, etc., to change the volume. |
| 144 |
|
| 145 |
*** Is another program using the audio device? |
| 146 |
|
| 147 |
There are several programs around that hog the audio device. These |
| 148 |
programs include web browsers, soundtool, audiotool, play, |
| 149 |
x_soundtool, any many other sound players. Note that rplay is audio |
| 150 |
device friendly and will close the audio device when it is not being |
| 151 |
used (see --audio-close). |
| 152 |
|
| 153 |
*** Are you running another audio server like Aserver? |
| 154 |
|
| 155 |
rplay does not work with Aserver and probably won't work with other |
| 156 |
servers. If you want to use rplay make sure other audio servers are |
| 157 |
not running. |
| 158 |
|
| 159 |
When you see errors like `/dev/audio open: Device busy', another |
| 160 |
program is using the audio device. Read the audio device permissions |
| 161 |
section above. |
| 162 |
|
| 163 |
** Ask for help |
| 164 |
|
| 165 |
If you are still having problems send email to [email protected] and I |
| 166 |
will do my best to help you out. The rplay mailing list is discussed |
| 167 |
in the README file. |
| 168 |
|
| 169 |
$Id: INSTALL,v 1.2 1998/08/13 06:12:58 boyns Exp $ |