Comments on VNC Server Installation on CentOS 6.5

VNC Server Installation on CentOS 6.5 This guide explains how to configure VNC-server in CentOS 6.5 server. It is a very convinient way of administrating the CentOS 6.5 with the help of GUI(Graphics User Interface). The GUI can be access any where with the help of the VNC-client on any OS. The basic condition is that the connecting OS must have VNC-clients installed in it.

17 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

It works, thanks. However, I faced 2 small issues on centOS6.5. Firstly, had to add iptables rule to allow vnc port. Secondly, had to set the password for the vnc user. The password is needed because, the screen gets locked after a while and if no password is set then all unlock attempts fails

By: bondo

Had to do this and restart the vncservice

sudo iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT
sudo service iptables save
sudo service iptables restart
 
 

 

By: prakash

It's great tool and easy to manage all things of linux GUI.

Thanks,

Prakash

By: Mario

Something changed for CentOS 6.6 because I can't get this work. I tried bondo's iptables command and that returned an "unknown protocol '-m' specified."

Anyone have suggestions?

By: hank

On Remmina client for ubuntu the VNC configuration requires the user ID not the port.

server: [ip]:1    or      server: [server1.example.com]:1

 

By: Yigit

Hi. Can you help?CentOS 6.7 / firewall disabled

/etc/sysconfig/vncservers# VNCSERVERS="5901:admin"# VNCSERVERARGS[5091]="-geometry 1024x768"

[root@server10 ~]# service vncserver restartShutting down VNC server:                                  [  OK  ]Starting VNC server: no displays configured                [FAILED]

Where I could have done wrong?

By: bob

You don't need to specify the complete port string. The number you assign to each user will be concatenated to the first three digits of the vnc default ports (i.e. 590 + the_number_you_specify). In your code, the actual port for connection ends up being 5905901, which is, of course, nonsensical. Just remove the 590 and leave the 1 like so: "1:admin"  and VNCSERVERARGS[1] and you should be good to go. 

By: Poonchezhian

Srijan,

I want to make the vncserver as service, so it's always running and i can connect to the client even after the reboot. what has to be enabled?

By: till

The command:

 

chkconfig vncserver on

 

should enable the service to start at boot. If this won't help, then add the command:

 

service vncserver start

 

in the file /etc/rc.local

By: GE

Why do you say, "Please don't install the Development Tools." Is there a conflict? I need the development tools.

By: Hai

Hi,

I have a VPS with CentOS 6 and I installed VNc server to connect to it. Everything works fine, network and internet are ok. But after I reboot the VPS, I can connect the VPS through VNC again but the VPS does not have internet, the network icon showing "red X" with the message "device not managed".I have tried to rebuild the VPS, install VNC and the internet problem comes again after reboot.

By: root

This worked for me on CentOS 6.8 nicely. Thanks for the good tutorial.

By: V

In my case "yum groupinstall Desktop" failed because such groupinstall was not found at centos 5 with epel and remi repo.

By: Amish

Hello,

It's working fine, but firefox is displaying blank screen after loading of webpage, how do i solve this issue ?

-Amish 

By: Emrul Hasan

How way I can enable internet access throw VNC. I am tried to finding this soluation. Please help me to fixing this problem I need to brow webbrowser at VNC on Centors OpenVZ.

By: mariomp24

I did everything as described.

The VNC server is running, and I am also on the desktop.

But I get the internet connection to run

By: Michael

100% did not work for me.

I keep gettin xauth:  file /root/.Xauthority does not exist

xauth: (stdin):1:  bad display name "s14###.wholesaleinternet.net:4" in "add" command

over and over and over