First, set initial passwords for the csadmin and postgres accounts:
root#
passwd csadmin
root#
passwd csoperator
root#
passwd postgres
Since you are using RedHat 9.0, the camac 'crate_24' command must be overwritten:
Not all of these commands are run as root, pay close attention to the examples! Not all of the chown and chmod commands may be necessary, but are included for completeness.
csadmin$
cp /AccelNET/necdrivers/rh9/crate_24 /AccelNET/sbin/crate_24
csadmin$
chown csadmin.cs_admin /AccelNET/sbin/crate_24
csadmin$
chmod 755 /AccelNET/sbin/crate_24
csadmin$
ln -s /AccelNET/sbin/crate_24 /AccelNET/sbin/crate
Next, the nec initialization script must be configured and installed.
root#
/AccelNET/necdrivers/build_nodes
root#
cp /AccelNET/necdrivers/nec /etc/init.d/nec
root#
chmod 755 /etc/init.d/nec
root#
cd /etc/init.d
root#
vi nec
Uncomment the lines to load and unload the device drivers needed for the specific machine.
For RedHat 9.0, you will need to insert the 'rh9' directory between the necdrivers and filename in the commands. (e.g. /sbin/insmod -f /AccelNET/necdrivers/rh9/f_ksc2915mod_24.o major=80) Make sure you use the _24.o files.
Insert the following line just after the 'chkconfig: 2345 92 92' line:
# description: NEC AccelNET device driver loading/unloading
Save the file and close vi.
Finally, add the init script to chkconfig:
root#
chkconfig --add nec
root#
chkconfig nec on
It is a good idea to reboot (type 'reboot' as root) at this point to make sure that the nec startup script is working and that postgres is starting properly. After rebooting, you can view the loaded modules by typing 'lsmod' and check for errors with 'dmesg'. To verify that postgres started properly, make sure that 'ps ax | grep postmaster' returns an entry with '/AccelNET/pgbin/bin/postmaster -S -D/AccelNET/postgres' or similar.