Koozali.org: home of the SME Server

Ventrilo server on 7pre1

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« on: February 02, 2006, 11:35:31 AM »
I have a vent server running on 6.0.01 fine. However, when I try the same on 7 I get an error.

I'm starting vent as root. The files are in /root/ventrilo . Starting with the command ventrilo_srv .

I get the error mesg "ERROR: Unable to bind to TCP socket."

What has changed from 6 to 7 to cause this. Both are installed in server-only mode and the port vent wants to use is 3784.


Regards,
William
Regards,
William

IF I give advise.. It's only if it was me....

Offline pickles

  • 10
  • +0/-0
Ventrilo server on 7pre1
« Reply #1 on: February 03, 2006, 07:23:17 AM »
William,

I have Ventrilo running on 7pre1 in Server/Gateway mode with the port opening contrib.  I didn't experience any problems starting Ventrilo, although I haven't tried it in Server Only mode.  I would asume that I wouldn't need the port-opening contrib in Server Only.

I have mine installed in /opt/ventrilo with a slightly modified version of their script starting Ventrilo.

Although the server is 7pre1 it's been installed since 7beta4 and upgraded via yum.

Justin

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #2 on: February 03, 2006, 08:55:06 AM »
Quote from: "pickles"


I have mine installed in /opt/ventrilo with a slightly modified version of their script starting Ventrilo.


Justin


Just tried it in /opt/ventrilo on a vmware machine and it worked.

Tried it on the real machine and still unable to bind tcp socket.


Regards,
William.
Regards,
William

IF I give advise.. It's only if it was me....

Offline pickles

  • 10
  • +0/-0
Ventrilo server on 7pre1
« Reply #3 on: February 06, 2006, 01:22:01 AM »
William,

Have you tried Team Speak 2?

I installed it yesterday to get around the 8 connection limitation of Ventrilo?  I have just installed and tested the connection, so I can't compare to to Ventrilo yet.  However, I did notice that Team Speak uses UDP not TCP.

Justin

Offline danlydon

  • 5
  • +0/-0
Ventrilo server on 7pre1
« Reply #4 on: March 02, 2006, 04:26:29 PM »
Quote from: "pickles"
William,

I have Ventrilo running on 7pre1 in Server/Gateway mode with the port opening contrib.  I didn't experience any problems starting Ventrilo, although I haven't tried it in Server Only mode.  I would asume that I wouldn't need the port-opening contrib in Server Only.

I have mine installed in /opt/ventrilo with a slightly modified version of their script starting Ventrilo.
Although the server is 7pre1 it's been installed since 7beta4 and upgraded via yum.

Justin


Would you mind sharing the changes you made to the script?

Thanks,

Dan

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #5 on: May 06, 2006, 08:03:43 AM »
Quote from: "pickles"
William,

Have you tried Team Speak 2?

I installed it yesterday to get around the 8 connection limitation of Ventrilo?  I have just installed and tested the connection, so I can't compare to to Ventrilo yet.  However, I did notice that Team Speak uses UDP not TCP.

Justin

Did a reinstall of SME7 and it's working fine now.

I like the way Ventrilo announces the name of the person joining the server/channel. When TS2 can do that I may switch. How has it's performance been for you ?

Do you care to share your modified startup script ?
Regards,
William

IF I give advise.. It's only if it was me....

kuyaz

Ventrilo server on 7pre1
« Reply #6 on: June 15, 2006, 05:42:34 AM »
Hey,

I just got Ventrilo installed on my server, but can't get it to run as a service. I was wondering if you guys were able to get it to run and if you could share your script?

Thanks in advance

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #7 on: June 15, 2006, 07:00:09 AM »
Quote from: "kuyaz"
Hey,

I just got Ventrilo installed on my server, but can't get it to run as a service. I was wondering if you guys were able to get it to run and if you could share your script?

Thanks in advance


I currently start mine from the shell. I don't have it set to auto start at boot.

I have it now installed in /opt/ventrilo and use the following to start it.

Code: [Select]
cd /opt/ventrilo/

/opt/ventrilo/ventrilo_srv -d


Make sure you don't have a ventrilo.pid file in the install directory or it wont start.

On the Ventrilo downlad page have a look at the linux ventriloscript under third party utilities. That may help with autostarting.
Regards,
William

IF I give advise.. It's only if it was me....

kuyaz

Ventrilo server on 7pre1
« Reply #8 on: June 15, 2006, 07:32:38 AM »
thats what I'm doing currently, running it mannually. But I don't want to have to restart it every time the server reboots.

I copied the script from ventrilo's website, but it doesn't seem to start it either. I tried to look in the server logs, but couldn't figure out which log file it would be under to see if it even ran and if there were any error messages.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #9 on: June 15, 2006, 07:58:07 AM »
Quote from: "kuyaz"
thats what I'm doing currently, running it mannually. But I don't want to have to restart it every time the server reboots.

I copied the script from ventrilo's website, but it doesn't seem to start it either. I tried to look in the server logs, but couldn't figure out which log file it would be under to see if it even ran and if there were any error messages.


What did you do with the script ?
Regards,
William

IF I give advise.. It's only if it was me....

kuyaz

Ventrilo server on 7pre1
« Reply #10 on: June 15, 2006, 08:30:02 AM »
I copied and pasted it into the /etc/rc.d/rc.local file and rebooted the server.

This is what is in the rc.local file:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

# Startup ventrilo servers.

VENPATH=/home/e-smith/files/ibays/kuyaz/files/ventrilo
VENBIN=$VENPATH/ventrilo_srv

su ppaez -c "$VENBIN -f$VENPATH/3784 -d"
su ppaez -c "$VENBIN -f$VENPATH/4000 -d"

renice -5 cat $VENPATH/3784.pid
renice -5 cat $VENPATH/4000.pid

#End Ventrilo

I replaced the ventrilo user with my own username which as sudo access. I've also tried it with the ventrilo username and that didn't seem to work either.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #11 on: June 15, 2006, 09:43:02 AM »
Quote from: "kuyaz"
I copied and pasted it into the /etc/rc.d/rc.local file and rebooted the server.

This is what is in the rc.local file:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

# Startup ventrilo servers.

VENPATH=/home/e-smith/files/ibays/kuyaz/files/ventrilo
VENBIN=$VENPATH/ventrilo_srv

su ppaez -c "$VENBIN -f$VENPATH/3784 -d"
su ppaez -c "$VENBIN -f$VENPATH/4000 -d"

renice -5 cat $VENPATH/3784.pid
renice -5 cat $VENPATH/4000.pid

#End Ventrilo

I replaced the ventrilo user with my own username which as sudo access. I've also tried it with the ventrilo username and that didn't seem to work either.


I've just had a play with the other scripts at Ventrilo.

I placed this one in /bin so that it is in my path.

Code: [Select]
#!/bin/sh
#Ventrilo Script v2.1.0_02 written by Crypt Keeper
#For ventrilo server v2.x

#Replace the values of VENPATH and VENSRV with your ventrilo path and server name.
#Replace the value of VENUSER with the account name that ventrilo runs under.
VENPATH=/opt/ventrilo
VENSRV=$VENPATH/ventrilo_srv
VENUSER=root

if [ "$UID" -ne 0 ]
then
        echo "You must be root to run this script"
        exit 64
fi

check_pid ()
{
if [ -e $VENPATH/$1.pid ]
then
PID=cat $VENPATH/$1.pid
else
PID=0
fi
}

start ()
{
echo ""
su $VENUSER -c "$VENSRV -f$VENPATH/$1 -d"
check_pid $1
if [ $PID -ne 0 ]
then
renice -20 $PID
        echo ""
        echo "Ventrilo server on Port:"$1" Started."
        echo ""
else
        echo ""
        echo "ERROR Ventrilo server on Port:"$1" Failed to Start"
        echo ""
        exit 66
fi
}

stop ()
{
check_pid $1
if [ $PID -ne 0 ]
then
        kill $PID
        echo ""
        echo "Ventrilo server on Port:"$1" with PID:"$PID" Stopped."
        echo ""
else
        echo ""
        echo "ERROR Ventrilo server on Port:"$1" Not Running."
        echo ""
        exit 67
fi
}

noport ()
{
echo ""
echo "Invalid argument string"
echo "Please specify a port number"
echo "-h|--help for usage"
echo ""
exit 68
}

case $1 in
-h|--help)
        echo ""
        echo "Ventrilo Script by Crypt Keeper"
        echo "       start port#"
        echo "       stop port#"
        echo "       restart port#"
echo "       status port#"
echo ""
        ;;
start)
        if [ $# -eq 2 ]
        then
start $2
else
        noport
        fi
        ;;
stop)
        if [ $# -eq 2 ]
        then
stop $2
else
        noport
        fi
        ;;
restart)
        if [ $# -eq 2 ]
        then
stop $2
start $2
else
noport
        fi
;;
status)
        if [ $# -eq 2 ]
        then
check_pid $2
if [ $PID -ne 0 ]
then
echo ""
echo "Ventrilo server on Port:"$2" -Running- with PID:"$PID
echo ""
else
echo ""
echo "Ventrilo server on Port:"$2" -Not Running-"
echo ""
fi
        else
                noport
        fi
        ;;

* )
        echo ""
        echo "Invalid Argument $1"
        echo "-h|--help for usage"
        echo ""
        exit 69
        ;;
esac
exit 0



Make changes to it at 3 locations as stated at the top.

This script will use the following commands to start ventrilio

Code: [Select]
ventrilo start 3784

In your ventrilo directory you will have a ventrilo_srv.ini Duplicate this and call it 3784.ini

Next I'll try to get it autostarting.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
How-To install Ventrilo on SME 7.0 (and start it on boot up)
« Reply #12 on: July 14, 2006, 04:49:43 PM »
Just a quick and nasty how to.

Let me know how it goes.

How-To install Ventrilo on SME 7.0 (and start it on boot up)
Regards,
William

IF I give advise.. It's only if it was me....

Offline dadoudidon

  • *
  • 84
  • +0/-0
Ventrilo server on 7pre1
« Reply #13 on: October 05, 2006, 10:56:26 AM »
Thnks for the howto but:

1/ is running ventrilo as user ventrilo is tested and appoved?
2/ can you also explain the way to use ventrilo service accepting internal and external connection cause it is very confuse?

thks
Dave

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Ventrilo server on 7pre1
« Reply #14 on: October 05, 2006, 11:23:43 AM »
1/ Not tested. You may get admin emails about user 'ventrilo' because no password is set.

2/ This line
Code: [Select]
/sbin/e-smith/db configuration set ventrilo service status enabled
should be
Code: [Select]
/sbin/e-smith/db configuration set ventrilo service status enabled access public TCPPort 3784 UDPPort 3784

If you are server gateway mode you may have to forward the UDP and TCP port to localhost using servermanager.

You should also see something similar to below and maybe more in server gateway mode...
Code: [Select]
[root@tiger LogBot]# iptables -L |grep 3784
ACCEPT     tcp  --  anywhere             tiger.magicwilly.info tcp dpt:3784
ACCEPT     udp  --  anywhere             tiger.magicwilly.info udp dpt:3784
[root@tiger LogBot]#
Regards,
William

IF I give advise.. It's only if it was me....