How to Install, Configure and Run a Slax Terminal Server - tightvncserver and x11vnc

How to Install, Configure and Run a Slax Terminal Server - tightvncserver and x11vnc
Page content

The obvious reason why you need a Slax terminal server would be because you need to make your system available to trusted parties. There are many ways to achieve this but probably the easiest is to use the krfb desktop sharing application. This comes by default with Slax so before I tell you how to set and run a Slax terminal server, let’s explore the krfb option.

A Terminal Server or Desktop Sharing with krfb

Desktop sharing isn’t exactly the same as setting and running a terminal server but in many cases this is all you need. In order to enable desktop sharing with krfb, go the KDE menu, select Internet, and then open Desktop Sharing – VNC (krfb). This will open the Access tab of krfb:

Make sure to check the Allow uninvited connections option and set a password. If you want to give the remote user full control, check the Allow uninvited connections to control the desktop option. If you want the remote user to be able to connect at all times (i.e. without you having to confirm each connection attempt), remove the check from the Confirm uninvited connections before accepting option. There are more options in krfb but for Slax desktop sharing functionality, this will do.

Right, You Really Need a Slax Terminal Server

If you decide that the easy way to give remote access – i.e. via krfb – isn’t an option for you, then the choice you have is to set a Slax terminal server. This might sound terribly difficult but in fact it is very easy to do. Here are two options for setting up and running a Slax terminal server:

Tightvncserver module

The first option is to use the tightvncserver module. You can get this module from the Modules section of the Slax site. When you open the page for the tightvncserver module, there are two ways to proceed. If you are running Slax and you are connected to the Internet, select Activate; otherwise you need to download the module and install it manually – you can do this from KDE menu → System → SLAX Module Manager.

In either case, after you have tightvncserver installed, you need to configure it. Open a shell and at the prompt type:


You will be asked for a password. Enter the password and answer any other questions you might be asked and you are done. Now, to test the connection use a VNC viewer and enter the IP (and the port on which the terminal server is running) of your computer. If you can connect, then the Slax terminal server has been successfully installed.

x11vnc module

The second option to setup and run a Slax terminal server is to use the x11vnc module. Go to the Modules section of the Slax site and activate/download the module. Then open a console and type:


This is enough to run the terminal server but since you will be running it without a password, you’d better run:

x11vnc -storepasswd

This will prompt you for a password and it will be stored in a default location. If you want to specify an alternative location, you need to specify the path. Later, when you want to run x11vnc and make it require the password, type:

x11vnc -usepw

If you are not happy with the unencrypted traffic you will get by default with x11vnc, consider tunneling or use the -ssl or -stunnel options.

When done, open a terminal client, enter your IP and port and see if you can connect. If you can, congratulations! You have successfully installed the x11vnc terminal server for Slax.

Image Credits and References