Easy guide to install VNC in your linux VPS

ganglion

Newbie
Joined
Jan 22, 2014
Messages
40
Reaction score
3
Many of you SEO may have heard of VPS, or even using them. Sometimes you may prefer cheaper Linux VPS than Window ones. However, Linux have the trouble that it does not have a graphic interface, unless you install VNC in it. This is a guide how to do it.

Step 1: Install Gnome

sudo apt-get install gnome-core

Step 2: Install VNC Server

sudo apt-get install vnc4server

Step 3: Activate VNC Server

vnc4server

Step 4: Kill the Server (to change some settings)

vncserver -kill :1

Step 5: Edit the VNC Settings:

vi ~/.vnc/xstartup

#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER #activate this line
# exec /etc/X11/xinit/xinitrc
gnome-session --session=gnome-classic &#add this line

[-x /etc/vnc/xstartup ]&&exec/etc/vnc/xstartup
[-r $HOME/.Xresources]&& xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #deactivate this line
#x-window-manager & #deactivate this line

Step 6: Adjust the Resolution

vncserver -geometry 1024x600

Step 7: Download VNC Client

Search "Real VNC" from the Internet.

Step 8: Enter the Server IP address

VNC Server: XXX.XXX.XXX.XX:1
Encryption: Let VNC Server Chooses

Then enter the password, and it's done!
 
Last edited:
bookmarked, might come in handy

thanks for the tut!
 
Back
Top