How to Install VNC on CentOS VPS?

Hello,

If you try to find a tutorial on "How to Install a VNC on CentOS" then you will get a half tutorials and some of tutorials are false.

I have a huge experience in install a VNC because 20+ time I Install a VNC for my clients :(

How to Install VNC on CentOS 5.x?
On SSH enter this command:

1.

Code:```
yum install vnc-server
```
If Asking for a Permission to Install a VNC Server then Press "y" (without quotas)
  1. Code:```
yum install vnc
```

If Asking for a Permission to Install a VNC Server then Press "y" (without quotas) 3.
Code:```
yum groupinstall "GNOME Desktop Environment"
```

This will take long time(upto 20 - 30 minute - depend on your Server Internet speed) 4.
Code:```
nano /etc/sysconfig/vncservers
```

Replace this file /etc/sysconfig/vncservers with
Code:```
VNCSERVERS="2:root"

VNCSERVERARGS[1]="-geometry 640x480" ```
Next Command: 5.
Code:```
vncserver
```

If this will asking for a enter your VNC Password then enter your root password(do not enter any other password otherwise your VNC not work or show a blank screen) You will get a result like a **New 'hostname.yourdomain.com:1 (root)' desktop is hostname.yourdomain.com:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/hostname.yourdomain.com:1.log** Final Step:
Code:```
nano /root/.vnc/xstartup
```

Uncommant this two lines \#unset SESSION\_MANAGER \#exec /etc/X11/xinit/xinitrc and change last line with this line
Code:```
exec gnome-session &
```

Enter this command
Code:```
vncserver -kill :1
```

now again enter this command
Code:```
vncserver
```

This will show a: **New 'hostname.yourdomain.com:1 (root)' desktop is hostname.yourdomain.com:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/hostname.yourdomain.com:1.log** Done.... now you can access your VNC using your VPS Main IP Address: example: **x.x.xx.x:1** Sorry for my bad English but If you face any problem then I can help you.. :) CentOS VPSVNC Installation
Answer Share
Your Answer
Anonymous

Hosting Companies insights

3016 Web Hosting Reviews A trusted source of genuine reviews. Learn Reviews
2491 Web Hosting Companies Ever-growing pool of web hosting providers. Browse Providers
2898 Web Hosting Coupons Exciting web hosting deals available here Browse Coupons
Share
Tweet
Share
Share
Share
Email