# cp -p /mnt/usr/local/clx/config/clx_par /usr/local/clx/config # cp -p /mnt/usr/local/clx/config/cluster /usr/local/clx/config
clx_us::101:100:clx_us:/usr/local/clx:/bin/bash postgres::102:100:postgres:/usr/local/clx/postgres:/bin/bash
# chmod 666 /dev/tty7
/dev/scd0 /cdrom iso9660 ro 0 1
# If you comment out the CONSOLE line completely, root login is possible #CONSOLE /etc/securetty #CONSOLE tty1:tty2:tty3:tty4:tty5:tty6:tty7:tty8
# /etc/ax25/ax25d.conf # # ax25d Configuration File. # # AX.25 Ports begin with a '['. # [PV] NOCALL * * * * * * L default * * * * 3210 * - clx_us /usr/local/clx/bin/net_usr net_usr -x %s [ether] NOCALL * * * * * * L dl8mdw-10 * * * * * * - root /usr/sbin/axspawn axspawn %u dc0ji-10 * * * * 3210 * - root /usr/sbin/axspawn %u dc0ji-11 * * * * 0 * - root /usr/sbin/axspawn %u dc0ji-12 * * * * 40 * - root /usr/sbin/axspawn %u default * * * * 3210 * - clx_us /usr/local/clx/bin/net_usr net_usr -x %sund /etc/ax25/axports:
# /etc/ax25/axports # name callsign speed paclen window description PV DB0CLX-1 9600 255 2 KISS-Port zu DB0PV ether DB0CLX 19200 255 4 ethernet
#!/bin/sh # # /sbin/init.d/clx # # set -x case $1 in start) # Alte Lock-Files und Temp-Files loeschen und Postmaster starten find ~postgres/data/base/clx_db/ -name '*lock*' -exec rm {} \; find ~postgres/data/base/clx_db/ -name '*temp*' -exec rm {} \; su - postgres -c "~postgres/bin/postmaster &" # CLX starten su - clx_us -c "~clx_us/bin/clx -u > /dev/tty7 2>&1 &" ;; stop) su - clx_us -c "~clx_us/bin/clx -s" kill `/bin/ps -aux | awk '/n\/postmaster/ {print $2}'` ;; *) echo "usage: clx {start|stop}" ;; esac exit 0Dieses wird dann nach /sbin/init.d/rc2.d/S89clx und /sbin/init.d/rc2.d/K05clx verlinkt.
# ln -s /sbin/init.d/clx /sbin/init.d/rc2.d/S89clx # ln -s /sbin/init.d/clx /sbin/init.d/rc2.d/K05clx
#!/bin/sh # # /sbin/init.d/ax25 # # set -x case $1 in start) echo -e "\015\015\033@K" > /dev/tnc /usr/sbin/axattach /dev/tnc PV /usr/sbin/axparms -dev eth0 ether /usr/sbin/ax25d -l ;; stop) kill `/bin/ps -aux | awk '/n\/ax25d/ {print $2}'` kill `/bin/ps -aux | awk '/n\/axattach/ {print $2}'` echo -e "\300\377\377\377\300" > /dev/tnc ;; *) echo "usage: ax25 {start|stop}" ;; esac exit 0Dieses wird dann nach /sbin/init.d/rc2.d/S88ax25 verlinkt.
# ln -s /sbin/init.d/ax25 /sbin/init.d/rc2.d/S88ax25
# cp -p /mnt/etc/syslog.conf /etc # cp -p /mnt/etc/hosts /etc # cat /etc/syslog.conf *.warn /usr/local/clx/log/err.log *.err /usr/local/clx/log/err.log *.crit /usr/local/clx/log/err.log *.info /usr/local/clx/log/io.log *.debug /dev/tty8 *.info /dev/tty8 # *.debug /usr/local/clx/log/debug.log # *.info /usr/local/clx/log/debug.log *.crit /dev/tty8 *.err /dev/tty8 # cat /etc/hosts 44.128.25.7 db0pv-7.db0pv.ampr.org db0pv-7 44.128.25.8 db0pv-8.db0pv.ampr.org db0pv-8 44.128.25.9 db0pv-9.db0pv.ampr.org db0pv-9 44.128.25.128 db0clx.ampr.org db0clx
# cat /mnt/var/cron/tabs/root # # CLX-Jobs # 0 2 * * * /usr/local/clx/tools/clean_log 0,10,20,30,40,50 * * * * /usr/local/clx/tools/clx_watchdog #
$ cd ~/tools $ ./us_adm -p 4 db0pv $ ./us_adm -d 26 -n Franta dj0zy $ ./us_adm -d 26 -n Ben dl6rai