Unable to VNC onto Centos server remotely
Posted: 2013/04/12 13:46:23
Hello, let me start by saying I am a complete newbie to the Linux/Centos world so apologies in advance for the elementary questions/responses. My problem is the following; having built a Centos 5.9 server I am trying to configure remote access using VNCServer/VNCViewer. Having followed all the steps outlined here: http://wiki.centos.org/HowTos/VNC-Server , I am still having issues when i try to connect . The fact that Im not prompted for a password whatsoever leads me to believe that there is something not running on the server side to begin with e.g. a service under a particular user. So far I have done the following:
1. Created the accounts for example:
VNCSERVERS="1:larry 2:moe 3:curly"
VNCSERVERARGS[1]="-geometry 640x480"
VNCSERVERARGS[2]="-geometry 640x480"
2. Created the ~/.vnc directory for that users
3. Attempted to restart the service under the root account. When doing so, it displays the following line which might suggest that the service is running under one of the accounts, 'test', that ive created also:
[root@IMGCentos ~]# /sbin/service vncserver start
Starting VNC server: 3:test A VNC server is already running as :3
[FAILED]
[root@IMGCentos ~]# /sbin/service vncserver stop
Shutting down VNC server: 3:test [ OK ]
[root@IMGCentos ~]# /sbin/chkconfig vncserver on
[root@IMGCentos ~]#
4. Disabled the firewall
At this stage, having followed all of the steps outlined on the HowTos/VNC server page I am still unable to connect and still not getting prompted for a password. Can anyone point me in the right direction with this. Im sure there are logs that can tell me where things are falling over. Hopefully someone can provide some steps on the best way to troubleshoot. Any feedback is much appreciated.
Cheers
1. Created the accounts for example:
VNCSERVERS="1:larry 2:moe 3:curly"
VNCSERVERARGS[1]="-geometry 640x480"
VNCSERVERARGS[2]="-geometry 640x480"
2. Created the ~/.vnc directory for that users
3. Attempted to restart the service under the root account. When doing so, it displays the following line which might suggest that the service is running under one of the accounts, 'test', that ive created also:
[root@IMGCentos ~]# /sbin/service vncserver start
Starting VNC server: 3:test A VNC server is already running as :3
[FAILED]
[root@IMGCentos ~]# /sbin/service vncserver stop
Shutting down VNC server: 3:test [ OK ]
[root@IMGCentos ~]# /sbin/chkconfig vncserver on
[root@IMGCentos ~]#
4. Disabled the firewall
At this stage, having followed all of the steps outlined on the HowTos/VNC server page I am still unable to connect and still not getting prompted for a password. Can anyone point me in the right direction with this. Im sure there are logs that can tell me where things are falling over. Hopefully someone can provide some steps on the best way to troubleshoot. Any feedback is much appreciated.
Cheers