Installing VNC Server on linux VPS ( CentOS 6 )

GraD0s

New member
Messages
4
Points
0
1. Login to to VPS via SSH and install gnome
sudo yum groupinstall Desktop
2. install Vnc Server,Nano Editor and Font.


sudo yum install nano
 
sudo yum install tigervnc-server
 
sudo yum install xorg-x11-fonts-Type1
 Confirm with ( Y )

3. To make VNC start automatic after reboot. Use this commands.

sudo chkconfig vncserver on


4. Make password for you VNC server. Enter password and Verify.

vncpasswd
5. Now set resolution and user on you VNC server. Edit using nano or another editor.

nano /etc/sysconfig/vncservers
 
Copy/Paste this code at last line.
 
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x600"
save and exit. Then restart VNC.

service vncserver restart
6. To enter GUI GNOME when startup. Kill VNC service first.

vncserver -kill :1
 
and edit this file.
 
nano .vnc/xstartup
 at the last line, put # on "twm &" and add this code "exec gnome-session &"

#twm &
exec gnome-session &
save and exit.

7. Lastly start and restart VNC with this command.

service vncserver start
service vncserver restart
Done 
default_cool.png
 
default_cool.png


To connect to your GUI GNOME please use VNC Viewer.

Download from Here : VNC Viewer

and insert YOUIPVPS:1 and vnc password you create early.

vnc-remote-desktop.jpg

 
Last edited by a moderator:
You should be specific of OS.

To those who are wondering, Above guide is for CentOS

 
did somebody told you how awsome you are? ive been using a different VPS hosting and i have no idea how to set this all up. 

because usually RO hostings are pre set up and all you need to do is edit some files.

now that ive already done this, all i need to do is upload my server to my VPS and im good to go!

thank you!

ive saved up to 4$ a month using a different VPS hosting sites 
default_wink.png


 
You should be specific of OS.

To those who are wondering, Above guide is for CentOS
Ohh yah i forgot bout that .

did somebody told you how awsome you are? ive been using a different VPS hosting and i have no idea how to set this all up. 

because usually RO hostings are pre set up and all you need to do is edit some files.

now that ive already done this, all i need to do is upload my server to my VPS and im good to go!

thank you!

ive saved up to 4$ a month using a different VPS hosting sites 
default_wink.png
You welcome dude 
default_rolleyes.gif
 
default_rolleyes.gif


 
can i know why it be black screen only?

28re9dz.png


 
Last edited by a moderator:
Back
Top