How to Install Camfrogserver Advanced 6.0 on Ubuntu Linux

This step by step guide helps you to install Camfrog Server on Ubuntu 10.10 (Maverick Meerkat). In the beginning, when Camfrog Server was launched, some people thought that 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. After sometime it was found that you can also convert rpm packages to deb packages with the help of alien. Once you convert it, rpm will be automatically installed. In addition, 32bit library files are required:

sudo apt-get -f install ia32-libs

Instructions

  • 1

    For your convenience, RPM Package is already converted and you don’t need to use alien.

    You can download it from this server: //www.jmes.me/camfrogserver_6.1-17_all.deb

    cd /tmp

    wget http://www.jmes.me/camfrogserver_6.1-17_all.deb

    Now install it:

    sudo dpkg -i camfrogserver_6.1-17_all.deb

  • 2

    Now create a “new” script in the /etc/init.d/directory known to be camfrogserver and put this in the file:

    nano -x /etc/init.d/camfrogserver

    #!/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 Linux Debian init.d script by James Youngstrom.

    ### END INIT INFO

    NAME=camfrogserver

    DESC="Camfrog Server"

    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

    ;;

  • 3

    Afterwards, make it executable:

    sudo chmod +x /etc/init.d/camfrogserver

    Then, you have to boot on system startup:

    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:

    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

  • 4

    Then, in order to edit the cf_server.conf, we have created one based off the sample.

    First of all, you have to edit the configuration file according to your requirement:

    sudo nano -x /etc/camfrogserver.d/cf_server.conf.sample

    Edit the following parameters in cf_server.conf.sample and save it as cf_server.conf:

    rooms_active=Ubuntu_Linux

    web_interface_enabled=on

    web_server_port=5999

    web_server_interface=

    Ctrl+X saves the file. Make sure to rename it to cf_server.conf.

  • 5

    Then:

    sudo mkdir /etc/camfrogserver.d/room_name

    After that:

    sudo nano -x /etc/camfrogserver.d/cf_room.conf.sample

    Editing the following parameters to suit your needs:

    logon_name=Ubuntu_Linux

    logon_password=password

    serial=00000000000-0000000000000000-0000000

    remote_access_login=James

    remote_access_password=password

    Ctrl + X to save the file. Save as:

    room_name/cf_room.conf

  • 6

    You can save it to:

    /etc/camfrogserver.d/Ubuntu_Linux/cf_room.conf



    Then, start the camfrogserver and type:

    service camfrogserver start

    After that, write:

    /usr/bin/camfrogserver -g

    This will update the SSL_certificate_param in your cf_server.confautomatically.

    You will see the following:

    Certificate generated successfully, cert file name: /etc/camfrogserver.d/cert.pem, configuration file /etc/camfrogserver.d/cf_server.conf updated

  • 7

    You are now allowed to login to your web interface with the help of your Remote Access Login and Password. But, you need to restart your system before doing this.

    service camfrogserver restart

Leave a Reply

Your email address will not be published. Required fields are marked *


9 − five =