Link to home
Start Free TrialLog in
Avatar of Member_2_2394978
Member_2_2394978Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Ubuntu remote desktop sharing, tight VNC

Hi,

I have a small problem:
I use tight VNC on a Windows box to access a Kubuntu box at work through a VPN. The Linux box is sharing remote desktop sharing so tight VNC connects to ip:0. If I do the following it works:
1. Connect VPN
2. Connect through tight VNC.
3. Disconnect/close tight VNC.
4. Disconnect from VPN
However, if I do the following I have problems.
1. Connect VPN
2. Connect through tight VNC.
3. Disconnect from VPN
Then when I try to reconnect again I get 'connection closed' from tight VNC. I'm guessing this is because by just disconnecting the VPN tight VNC doesn't close the VNC session.

I can get around this problem by going into work and logging off and back on again; I think this must reset the remote desktop sharing sessions. I also get half the way there from home. I can SSH in and restart the X session (can't remember how I did that now). Although the Linux box stays logged off and I can't VNC in until I have gone into work and physically logged back on again.

Any suggestions on how I can get around this problem (I am frequently forgetting to close tight VNC before disconnecting from the VPN) through SSH only?

Cheers,
James
ASKER CERTIFIED SOLUTION
Avatar of skymo
skymo
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of techhealth
I use NX to do graphic remote access.  I found it to be fast and easy to set up.
Avatar of alexmay77
alexmay77

you can just restart VNC server on Linux host using ssh
It is possible to create an icon or windows menu item to restart VNC -server.
use putty on windows to get ssh connection to linux
Avatar of Member_2_2394978

ASKER

Thanks for your replies.

alaexmay77: The VNS server is running as host:0 is it possible to restart this as well? I'm guessing yes then.
What are the commands to do this?
Yes, it is possible to restart it:

# vncserver -kill <X-display>
And when restarted on 0, it won't have changed anything to the current X session?
dont understand you :(
Not to worry, i'll give it a go this evening and get back to you ... thanks.