How-To install Ventrilo on SME 7.0 (and start it on boot up)
Author : william_syd
Tested on SME Version:
Updated :
License :
This bit is in testing (running as user ventrilo)
* db accounts set ventrilo user PasswordSet no ForwardAddress admin
* signal-event user-create ventrilo
* cd /home/e-smith/files/users/ventrilo/home
* mkdir ventrilo
* cd ventrilo
* wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/Ventrilo/ventrilo_srv-2.3.1-Linux-i386.tar.gz
* tar -xzf ventrilo_srv-2.3.1-Linux-i386.tar.gz
* wget http://magicwilly.webhostingpal.com/SME7%20How%20To%20Files/Ventrilo/ventrilo
* chmod 755 ventrilo
* cp ventrilo /etc/rc.d/init.d/ventrilo
* ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99ventrilo
* /sbin/e-smith/db configuration set ventrilo service status enabled
* chown -R ventrilo /home/e-smith/files/users/ventrilo/home/ventrilo
* db accounts setprop ventrilo Shell /bin/bash
* chsh -s /bin/bash ventrilo
* /sbin/e-smith/signal-event console-save
* /sbin/e-smith/signal-event post-upgrade
The following should now start the server...
* /etc/rc7.d/S99ventrilo start
- I'll do the install bit later.
- Assume Ventrilo is installed in /opt/ventrilo and will be run as root.
<?plugin RawHtml <font style='color: red'><h3> ** Warning ** Ventrilo will be running as user root </font></h3>?>
Starting Ventrilo at boot up
- Using pico create the start/stop script
pico /etc/rc.d/init.d/ventrilo
- Enter the following
#!/bin/sh # case $1 in *start) echo "Starting Ventrilo Server." cd /opt/ventrilo/ ./ventrilo_srv -d echo "Ventrilo Server Started" ;; *stop) echo "Shutting Down Ventrilo Server." cd /opt/ventrilo/ kill `cat ventrilo_srv.pid` echo "Ventrilo Server Is Now Down" ;; *restart) echo "Restarting Ventrilo Server..." cd /opt/ventrilo/ kill `cat ventrilo_srv.pid` ./ventrilo_srv -d echo "Ventrilo Server Restarted" ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit 0
- Save and exit pico
Control-x, yes, enter
- Now we set some permissions for the file we just created
chmod u+x /etc/rc.d/init.d/ventrilo
- Then we give SME control over it
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99ventrilo
- We then need a database entry to determine if it should start or not
/sbin/e-smith/db configuration set ventrilo service status enabled
- Then we let SME know about the changes we have made
/sbin/e-smith/signal-event console-save
/sbin/e-smith/signal-event post-upgrade
- Finally a reboot
/sbin/e-smith/signal-event reboot
- And if we want to see the log files via server-manager
mkdir /var/log/ventrilo
ln -s /opt/ventrilo/ventrilo_srv.log /var/log/ventrilo/ventrilo_srv.log
References:
Information gathered from this forum thread http://forums.contribs.org/viewtopic.php?t=30515
Script based on sample at this forum thread http://www.ventrilo.com/forums/archive/index.php/t-11438.html
Back AllPages SME7Howtos
Please Note: Comments should NOT contain request for help. Please ask for help in the forum/s listed in the references section.
One page links to How-To install Ventrilo on SME 7.0 (and start it on boot up):