Discover the top-rated web hosting providers with trusted reviews, expert comparisons, and the latest deals.
Select Currency 7 Currencies
Select Region 9 Editions
VPS Hosting

VPS (Virtual Private Server) hosting is highly popular these days, and there are VPS plans available for small, medium, and even huge business websites!

In comparison to dedicated servers, VPS is pretty low-cost, and your enterprise remains independent if you buy a VPS plan!

Cheap Hosting

If you're starting your first website, you want to spend less on premium web hosting, worry about website performance, or know anything about CPU cores. You only need to consider usability, customer service, and long-term scalability.

Our experts have compiled a list of cheap hosting providers that combine affordability and reliability.

TheWebHostingDIR
DISCUSSION VPS Hosting

How to Install VNC on CentOS VPS?

Asked by Kunnu Singh
15 years ago
4,039 views
0 answers

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.. :)

0 Answers

No answers posted yet

Be the first person to share your experience and provide an answer to this discussion!

Write First Answer

Your Answer

Please share accurate, constructive advice to help other community members.

Posting as Guest / Community Member
Live Preview

Posts are reviewed by moderation to maintain community quality and eliminate spam.

Link copied to clipboard!

Hosting Companies insights