LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2009, 10:49 AM   #1
dmnte
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
not able to connect to autostart vnc server


Hi ive have installed the latest version of vncserver on my linuxbox(centos 5.4) and am trying to connect to the server through realvnc. Ive made 2 servers and they both start fine when i run them, ive also opened the ports in the firewall(5091-5093. When i try to connect with realvnc im unable to connect, ive done a port scan on the server and it shows the ports(50xx) as closed, which i am assuming is why i cant connect but i dont know why, can i get some help plz?

my vncservers file look like this:

VNCSERVERS="1:dave 2:root"
VNCSERVERARGS[1]="-geometry 640x480 -localhost"
VNCSERVERARGS[2]="-geometry 640x480 -localhost"

and my xstartup file like this:

#!/bin/sh (-)
# Add the following line to ensure you always have an xterm available.
( while true ; do xterm ; done ) &
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec gnome-session &

once again any help would be much appreciated =)
 
Old 11-24-2009, 11:19 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
When you say you
Quote:
...ive also opened the ports in the firewall(5091-5093. When i try to connect with realvnc im unable to connect, ive done a port scan on the server and it shows the ports(50xx) as closed...
do you mean the firewall on the server?

Also, would you try this with one ordinary(non-root) user/server first and build from there?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can no longer connect to tunnelled VNC server. Zombie13 Fedora 6 10-16-2007 10:33 PM
VNC Failed to connect to server cthomas Suse/Novell 9 10-14-2006 07:59 AM
How to Autostart a VNC Server with the System ? Tian Linux - Newbie 8 11-01-2003 08:57 PM
unable to connect to server thru vnc... marvc Linux - Software 0 05-25-2003 07:24 PM
VNC Autostart sholle Linux - Newbie 1 02-03-2003 02:15 PM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration