Thanks, and yes, I usually pass it a display number. For example: jethro:/tmp/.X11-unix # vncserver :0 VNC server is already running as :0 jethro:/tmp/.X11-unix # vncserver :1 New 'X' desktop is jethro:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/jethro:1.log I still can't connect to display :0. I can connect to display :1, but because of what's in xstartup, I get a twm screen w/ one xterm open in it. That's not what I want. The way it used to work was once I connected (from home) I would see my screen just like it is on my desktop at work. I was passing vncviewer just the IP address, so it defaulted to display :0. I really don't have a clue as to why it suddenly stopped working. I guess I must have screwed something up, but I have know idea what, when or how...:) Thanks again, Mike ----------------------------------------------------- Cleary_Mike@emc.com ----------------------------------------------------- Yesterday it worked. Today it is not working. Windows is like that. -----Original Message----- From: Greg Engel [mailto:genge1@tampabay.rr.com] Sent: Wednesday, September 10, 2003 1:38 PM To: Cleary_Mike@emc.com; suse-linux-e@suse.com Subject: Re: [SLE] vnc On Wednesday 10 September 2003 8:57 am, Cleary_Mike@emc.com wrote:
I used to be able to connect to my linux desktop via vnc (from home via VPN). But all of a sudden it just stopped working. All I get is "Failed to connect to server". I can't even connect from my other PC in my office. The only thing I can seem to get working is Xvnc, which is not what I want. Every time I try to start "vncserver", it starts up Xvnc....
It is supposed to. vncserver is a shell script that starts up Xvnc. When you type in vncserver and press ENTER what does it say? Do you pass any options to it on the command line? Without doing something like vncserver :2, vnc will start up the next available session. If your vncserver crashed it may have left the /tmp/.X11-unix/Xwhatever lock there. Greg Engel
-----Original Message----- From: Cleary_Mike@emc.com To: suse-linux-e@suse.com Date: Wed, 10 Sep 2003 15:17:22 -0400 Subject: RE: [SLE] vnc
Thanks, and yes, I usually pass it a display number. For example:
jethro:/tmp/.X11-unix # vncserver :0 VNC server is already running as :0
jethro:/tmp/.X11-unix # vncserver :1 New 'X' desktop is jethro:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/jethro:1.log
I still can't connect to display :0. I can connect to display :1, but because of what's in xstartup, I get a twm screen w/ one xterm open in it. That's not what I want. The way it used to work was once I connected (from home) I would see my screen just like it is on my desktop at work. I was passing vncviewer just the IP address, so it defaulted to display :0. I really don't have a clue as to why it suddenly stopped working. I guess I must have screwed something up, but I have know idea what, when or how...:)
Thanks again,
Mike If you are using SuSE8.2 pro you can use the Desktop Sharing that is under Internet-->Tools-->Destop Sharing. This will provide what you are after.
Ken
On Wednesday 10 September 2003 3:17 pm, Cleary_Mike@emc.com wrote:
Thanks, and yes, I usually pass it a display number. For example:
jethro:/tmp/.X11-unix # vncserver :0 VNC server is already running as :0
Do a ps -edf and see if Xvnc is indeed running for :0. If not you need to rm -fr /tmp/.X11-unix/X0 to unlock so you can start it again.
jethro:/tmp/.X11-unix # vncserver :1 New 'X' desktop is jethro:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/jethro:1.log
I still can't connect to display :0. I can connect to display :1, but because of what's in xstartup, I get a twm screen w/ one xterm open in it.
Keep in mind, if your firewall is configured to only pass the port for session 0, you may not be able to connect from home to :1.
That's not what I want. The way it used to work was once I connected (from home) I would see my screen just like it is on my desktop at work. I was passing vncviewer just the IP address, so it defaulted to display :0.
Lastly, remember when you launch vncviewer it goes as the user you are at the time. If you are logged in as root the seesion will be roots session, not yours. If you are logged in as you when you start vncserver :0, then look at $HOME/.vnc/xstartup I think it is. That is where you set the windows manager. Also note that kde has a nice GUI interface to setup desktop sharing and there is also x0rfbserver if you specifically want to share the desktop as it is at work instead of making a seperate x session. Greg Engel
participants (3)
-
Cleary_Mike@emc.com
-
Greg Engel
-
Ken Schneider