Now we will create the UNIX user skype running Sevabot and Skype the client application.

Note

In this phase of installation you will need a VNC remote desktop viewer software
on your local computer. On Linux you have XVNCViewer, on OSX you have Chicken of VNC
and on Windows you have TinyVNC.

Under sudo-i:

# Create a random password
openssl rand -base64 32 # Copy this output, write down and use in the input of the following command
adduser skype # We must run Skype under non-root user

Exit from the current (root) terminal session.

Login to your server:

ssh skype@yourserver.example.com

Get Sevabot:

git clone git://github.com/opensourcehacker/sevabot.git

Note

If you want to live dangerously you can use git dev branch where
all the development happen. You can switch to this branch with “git checkout dev”
command in the sevabot folder.

Start xvfb, fluxbox and Skype:

# This will output some Xvfb warnings to the terminal for a while
SERVICES="xvfb fluxbox skype" ~/sevabot/scripts/start-server.sh start

Start VNC server:

# This will ask you for the password of VNC remote desktop session.
# Give a password and let it write the password file.
# Delete file ~/.x11vnc/password to reset the password
~/sevabot/scripts/start-vnc.sh start

On your local computer start the VNC viewing software and connect the server:

vncviewer yourserver.example.com # Password as you give it above

You see the remote desktop. Login to Skype for the first time.
Make Skype to save your username and password. Create Skype
account in this point if you don’t have one for sevabot.

Now, in your local Skype, invite the bot as your friend. Then accept the friend request.

Note

It is important to add one Skype buddy for your Sevabot instance in this point,
so don’t forget to do this step.

To run sevabot from the server from reboot or do a full bot
restart there is an example script reboot-seva.sh provided.
It also does optionally manual SSH key authorization so that
the bot can execute remote commands over SSH.

To make your Sevabot bullet-proof add a cron job to check
that Sevabot is running correctly and reboot if necessary.

You don’t need Xvfb, VNC or fluxbox.
These instructions were written for Ubuntu 12.04 64-bit.

Note

These instructions were written for running 32-bit Skype client application in 64-bit Ubuntu.
Since writing the instructions the situation have changed and Skype has 64-bit application too.
If you have insight of how to install these packages correctly please open an issue on Github
and submit an updated recipe.