Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd March 2011, 16:27
JamesY JamesY is offline
Junior Member
 
Join Date: Mar 2011
Location: Oregon USA
Posts: 3
Thanks: 1
Thanked 3 Times in 3 Posts
Arrow Install Camfrog Server Advanced 5.0 Linux on Ubuntu 10.10 (Maverick Meerkat)

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.

Last edited by JamesY; 2nd March 2011 at 19:20. Reason: Added a bit more detail on configuring the server for the first time.
Reply With Quote
The Following User Says Thank You to JamesY For This Useful Post:
falko (3rd March 2011)
Sponsored Links
  #2  
Old 13th August 2012, 03:51
JamesY JamesY is offline
Junior Member
 
Join Date: Mar 2011
Location: Oregon USA
Posts: 3
Thanks: 1
Thanked 3 Times in 3 Posts
 
Default

new camfrogserver link http://jmes.me/camfrogserver_6.1-17_all.deb
__________________
Get the new ISPConfig 3 manual.
Reply With Quote
The Following User Says Thank You to JamesY For This Useful Post:
falko (13th August 2012)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.10 SpamSnake .. 502 Bad Gateway RoboBunny HOWTO-Related Questions 7 25th February 2011 13:13
The Perfect SpamSnake - Ubuntu Jeos 10.10 Maverick Meerkat - transportmaps tahussle HOWTO-Related Questions 21 5th December 2010 04:17
The Perfect SpamSnake - Ubuntu Jeos 10.10 Maverick Meerkat tahussle HOWTO-Related Questions 4 3rd December 2010 12:06
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49


All times are GMT +2. The time now is 07:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.