Trixbox, VNCServer Skype, and SipToSis

Today I was on a mission to get Skype and SipToSis to automatically start on boot. Since Trixbox only loads a web based GUI and everything else is command line, you have to include other packages to get Skype working. Another helpful fact is that Trixbox uses CentOS and the yum package manager. Yum has a nice feature of the group install which will include all required packages and dependencies to get a group running. Here is the command to get Gnome installed:

  • yum groupinstall “GNOME Desktop Environment” –exclude=gimp-print –exclude=gimp-print-utils

Once you get Gnome installed (you can choose KDE or another DM if you would like) you need to set the run level of your system so that it boots to the GUI, unless you don’t want that.  Crack open your favorite text editor (VIM for me) and edit your inittab:

  • vi /etc/inittab

You are looking for a line that says id:3:initdefault:, if you find it, make sure you change the 3 to a 5.  This could break your machine, so make sure you know what you are doing, or are at the machine when you make the change.   The init level is the run level for the machine.  Run level 5 is typically the GUI level.  This command just makes it so that items set to run on level 5 start on boot.

Next we have to start VNC on boot.  To do that use chkconfig.

  • /sbin/chkconfig vncserver on

To finish up vncserver, you have to edit the startup config in sysconfig.

  • vi /etc/sysconfig/vncserver

Make sure you uncomment

  • VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”

and add:

  • VNCSERVERS=”2:root”

This will make the port 5902 since it will start vncserver on display 2.

To get Skype to startup on boot I just added skype to the path and then added skype to the session for Gnome.  Then to get SipToSis to startup on boot, I wrote the following bash script:

#!/bin/sh
cd /root/siptosis/
./SipToSis_linux >> /var/log/siptosis

This will give us the output in a log so that we can review it in case there are errors.

Alright, time to head to bed… Made some good progress with this.

Mike

    • Brian
    • March 7th, 2010

    Firstly, thanks for the article. I haven’t been through it all yet and then there’s the mountain to climb to get siptosys working. An article re the settings for that would be much appreciated!! :-)

    The command for installing Gnome via yum is incorrect.

    It should be:-
    yum –exclude=gimp-print –exclude=gimp-print-utils groupinstall “GNOME Desktop Environment”

    The options come before the package. I’m not an expert on Redhat (I normally use Ubuntu) but I found this out via the command:-
    man yum

    Note, to anyone using this, it may not be obvious but there are two ‘-’ before exclude.

  1. Good catch, I’ll update it!

  1. No trackbacks yet.