Jump to content

  •  

GraD0s

Member Since 02 Mar 2016
Offline Last Active May 03 2017 10:52 AM
-----

Topics I've Started

Installing VNC Server on linux VPS ( CentOS 6 )

11 May 2016 - 08:40 PM

 

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  B)  B)

 

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.