Server management - Vps and dedicated
Sunday, 01 March 2009 17:57 Last Updated on Sunday, 01 March 2009 18:24
I`m going to show you step by step installation of vnc-server on a vps or dedicated server.
Go to ssh
yum -y groupinstall "X Window System"
and then
yum -y groupinstall "KDE (K Desktop Environment)"
and finally
yum -y install vnc vnc-server firefox x11-xorg
I used to work on kde but you can also install gnome.
Now you need to edit one file, open it with a text editor, i used "vi" in this example
vi /root/.vnc/xstartup
and put the following code in it
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startkde &
Now you can start vnc by this command at ssh
vncserver
To connect your server via gui, use realvnc from http://www.realvnc.com/products/free/4.1/download.html
You can kill vncserver by "killall -9 Xvnc" command at ssh.
Enjoy your gui.
| < Prev | Next > |
|---|


