vncserver works when started as user, but not as root.
James Weatherall
jnw "at" realvnc.com
Mon Nov 10 11:52:01 2008
Kenan,
Actually, looking at the netstat output you included, Robin isn't far off the
mark - your VNC server is actually working fine, but probably not in the way
you intend!
It's listening for VNC connections from localhost on port 5901 (because you
specified "-localhost" on the service command-line), and it's not listening
for X11 connections on port 6001 (because you specified "-nolisten tcp" on the
command-line". Robin's suggestion of simply removing "-localhost" is probably
what you want, assuming the aim is to make the box accessible via VNC within
your LAN.
Cheers,
--
Wez @ RealVNC Ltd
> The following output is for the first case ($ vncserver :1):
>
> [root "at" MythTV2 mythtv]# netstat -tulpan | grep vnc
> [root "at" MythTV2 mythtv]# netstat -tulpan | grep vnc
> tcp 0 0 0.0.0.0:5901 0.0.0.0:*
> LISTEN 3727/Xvnc
> tcp 0 0 0.0.0.0:6001 0.0.0.0:*
> LISTEN 3727/Xvnc
> tcp 0 0 :::6001 :::*
> LISTEN 3727/Xvnc
>
> The following output is for the second case (# /sbin/service vncserver
> start):
>
> [root "at" MythTV2 mythtv]# netstat -tulpan | grep vnc
> tcp 0 0 127.0.0.1:5901 0.0.0.0:*
> LISTEN 3653/Xvnc
>
> Can someone tell me what I'm doing wrong. Why does it work in one case,
> but not the other?
>
> My primary goal is to get the vncserver to start automatically at boot
> time.
>
> Thank you!
> _______________________________________________
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list