0843 330 6512 Call Sales 09:00 - 19:00


How to run KDE on your Centos VPS

We have been asked a few times if it is possible to connect to a Linux VPS via a GUI.

The answer is of course Yes! But some configuration is required.

Below is a list of instructions that have been tried and tested on all SwitchLink VPS packages running Centos 5 x86 from an SSH Prompt.

Firstly, we need to install our required packages.
[text]yum groupinstall “X Window System” “KDE (K Desktop Environment)”
yum install vnc vnc-server firefox x11-xorg nano[/text]

There is approx 350 packages in the above combination, so depending upon your VPS Package, you may need to go get a coffee!

Next, we disable the IPTABLES Firewall and Disable SELINUX to ensure we can connect remotely to the server.
[text]chkconfig –level 12345 iptables off
service iptables stop
setenforce 0[/text]

By Default, VNC will start twm as a GUI, where we want KDE, so we are going to change the vnc config file to use KDE instead.
[text]nano ~/.vnc/xstartup[/text]

Replace the “twm &” line with “startkde &”

Now, we simply set vnc to start on startup.
[text]chkconfig –level 3 vncserver on

Ensure your VPS has all the required devices for connectivity.
[text]MAKEDEV tty pty
mknod -m 666 /dev/tty0 c 5 1[/text]

And ask SwitchLink support to configure the following on your VPS.
[text]host# vzctl set VEID –devnodes /tty:rw –save
host# vzctl set VEID –devnodes /tty0:rw –save[/text]

Now to start VNC for the first time and set a password.
[text]vncserver[/text]

You will now be prompted to enter your VNC password twice, and you wont be asked again. Please ensure you use secure passwords!

Your VPS should repond as follows;
[text]“New ‘hostname:1 (root)’ desktop is hostname:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hostname:1.log”[/text]

You will now be able to use your VNC Viewer to connect to a KDE Environment on your Centos Linux VPS. In the response above of hostname:1, you can connect on the port 5901 to your VPS Server.

This article has been written to work with SwitchLink, but it should be easily adaptable to work on ANY Virtual Server, especially on Virtuozzo and Open-VZ.

Hope this helps many people!

2 Comments

  1. Yohan Fernando
    Posted January 2, 2011 at 9:40 am | Permalink

    Wow this is 100& Work for me Thank you very much .!!! im use remote desktop on my Dedicate server. i have some problem with installing download manager & some software.

    01. How i install IDM or download manager program on linux ?
    02.how i install Filezilla ?
    03.how i install Flash player
    04.how i install firefox
    05.when i connect my server . i was having delay time between server and my PC, How i reduce it ?

    Thanks.!!

  2. WillT
    Posted January 6, 2011 at 5:32 pm | Permalink

    1 – Download managers can be downloaded and installed via the browser
    2 – http://forum.filezilla-project.org has many threads about this
    3 – http://www.adobe.com via your browser
    4 – Firefox is the default browser on KDE
    5 – Depends on your location/country/ISP – Send a traceroute to support and we will investigate.

Post a Comment

Your email is never shared. Required fields are marked *

*
*