This Tutorial will tell you how to install Camfrog Server Advanced 5.0 Linux on Ubuntu 10.10 (Maverick Meerkat)
When I first saw that camfrogserver 5.0 was release I was excited until I realized it was only for RedHat AS/ES 4.x 5.x, CentOS 4.x 5.x, Fedora 6.x 7.x 8.x. operating systems.
Then I realized you can convert rpm packages to deb packages using alien you can even have alien install the rpm automatically after converting it.
First off make sure you download the latest camfrogserver 5.0 software...
You can simply wget it from my server:
Code:
cd /tmp
wget http://98.108.149.245/files/camfrogserver-5.0-4.noarch.rpm
Secondly, make sure you have alien:
Code:
sudo apt-get install alien
It will install the following packages/dependencies:
alien libnspr4-0d{a} libnss3-1d{a} librpm1{a} librpmbuild1{a}
librpmio1{a} rpm{a} rpm-common{a} rpm2cpio{a}
To convert the file from .rpm to .deb do:
Code:
sudo alien -vck camfrogserver-5.0-4.noarch.rpm
Install it manually:
Code:
sudo dpkg -i camfrogserver_5.0-4_all.deb
Next is the tricky thing, I have created the init.d script for camfrogserver that works with Ubuntu to get the service to start/stop/restart properly. I will work on the start "roomname" function later on.
create a "new" script in your /etc/init.d/ called "camfrogserver" and put this in the file:
Code:
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: camfrogserver
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Camfrog Server 5.0 Linux Debian init.d script by James Youngstrom.
### END INIT INFO
NAME=camfrogserver
DESC="Camfrog Server 5.0"
DAEMON=/usr/bin/camfrogserver
PIDFILE=/var/run/camfrogserver/$NAME.pid
CONFDIR=/etc/camfrogserver.d
CMDFILE=/var/run/camfrogserver/commands.ctl
DAEMON_ARGS="-f -p${PIDFILE} -c${CMDFILE} ${CONFDIR}/cf_server.conf -d"
CF_USER=camfrogserver
do_start() {
start-stop-daemon --start \
--user $CF_USER \
--chuid $CF_USER \
--pidfile $PIDFILE \
--exec $DAEMON -- $DAEMON_ARGS < /dev/null
return $?
}
do_stop() {
start-stop-daemon --stop \
--retry=TERM/30/KILL/5 \
--pidfile $PIDFILE \
--name $NAME
pkill $NAME
rm -f $PIDFILE
return "$?"
}
case "$1" in
start)
echo "Starting Camfrog Server"
do_start
echo "Camfrog Server Started Successfully"
;;
stop)
echo "Shutting Down Camfrog Server."
do_stop
echo "Camfrog Server Is Now Down"
;;
restart)
echo "Restarting Camfrog Server..."
do_stop
sleep 10
do_start
echo "Camfrog Server Restarted"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
esac
exit 0
;;
Next you want to make it executable:
Code:
sudo chmod +x /etc/init.d/camfrogserver
then make sure it boots on system startup:
Code:
sudo update-rc.d camfrogserver defaults
Ports to forward:
6000:6010 tcp
5000:15000 udp
6005 udp
5999 tcp (for web panel access pro feature)
UFW commands to open ports for camfrogserver 5.0:
Code:
sudo ufw allow proto tcp from any to any port 6000:6010
sudo ufw allow proto udp from any to any port 5000:15000
sudo ufw allow 6005/udp
sudo ufw allow 5999/tcp
next you will want to edit the cf_server.conf
I will show you how to create one based off the sample.
First:
Edit the configuration file to fit your needs,
Code:
sudo nano -x /etc/camfrogserver.d/cf_server.conf.sample
Edit the following parameters in cf_server.conf.example and save it as cf_server.conf:
Code:
remote_control_enabled=yes
remote_control_login=yourname
remote_control_password=yourpass
This is required to be able to remotely login using the Camfrog Server Advanced 5.0 for Windows from your Windows Machine.
That's all I edit at the start then I add my rooms using the Camfrog Server Advanced 5.0 for Windows by connecting remotely "Server Options-> Change Server"
So start up your server:
Code:
sudo service camfrogserver start
connect with Camfrog Server Advanced for Windows:
yourserverip:6005
yourname
yourpass
All the configuration files for each room will be created by the server in /etc/camfrogserver.d/ROOM_NAME
Main Server Config File: /etc/camfrogserver.d/cf_server.conf
With that you will have a fully functional camfrogserver in ubuntu.
Recent comments
6 hours 8 min ago
15 hours 36 min ago
16 hours 25 min ago
19 hours 59 min ago
1 day 23 min ago
1 day 44 min ago
1 day 2 hours ago
1 day 12 hours ago
1 day 17 hours ago
1 day 19 hours ago