LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-26-2020, 08:42 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
x2go - how to disconnect and reconnect client?


I have x2gserver installed from the Ubuntu repos on an Ubuntu Mate 20.04 machine. Very simple, it is up and running.

I installed the x2goclient on my CentOS 7 with Mate workstation. Again, very simple. I created a session to the server - very simple, using my username on the server and [X] Try auto login (via SSH Agent or default SSHkey) as I have installed my key on the server and can open an ssh session without entering a password. And it works!

I have started some work on the server machine (just running Firefox as a test) and I would like to disconnect and leave Firefox running so I might return to it later. I have done this for years with various flavors of vnc. The tutorial at https://bytexd.com/x2go-ubuntu/tells me
Quote:
How to End the Remote Session?
There are two ways you can end a remote session:

Log off
Click the button marked with a circle and a small line (similar to the standby/power button) at the bottom-right corner of the main X2Go screen.
The first method is quick and clean but there’s a catch! It leaves applications like the session management software running. The second method closes everything (even forcefully) if it doesn’t close directly. In either case, I recommend saving everything before exiting.
My question boils down to How do I Log off??? If I "Log Out" from the Mate panel icon (Log Out..., Suspend, Hibernate, Shut Down...) it will of course close any programs I have running.

If I click the X and close the window with my remote session as launched by the x2goclient that will leave Firefox running and take me back to the x2goclient window. SOMETIMES I can reconnect and sometimes not. I got to a point where I had to delete my session configuration and recreate it before I could connect again. It has of course let me disconnect and reconnect several times as I am writing this post

I have a session configured to the production machine to which I wish to connect. I had it running overnight and this morning... I got back in once and never again. I finally went back to x11vnc until I got x2go sorted out. x11vnc will do the job but it is very high in CPU usage.

I must be missing something or did something out of order. And to make things more confusing... I disabled the x2goserver on the production box when I went back to x11vnc. However, I can still connect with x2go(?) I can disconnect and reconnect - until I selected Display 1 as the screen resolution. This brings me to a full screen of the remote machine - which is nice - but absolutely no way to disconnect gracefully that I can find.

Any advice would be appreciated. If someone can show me how to configure TigerVNC on Ubuntu Mate 20.04 that would be appreciated even more. I use it on several other distros but have yet to get it to work on Ubuntu Mate 20.04.

TIA,

Ken

p.s. As I was reviewing my post I decided to simply [X] close the x2goclient window. This in fact disconnected me from the production machine and I can reconnect. However, I have done this before with bad results - cannot ever reconnect.
 
Old 10-28-2020, 08:20 AM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Again it seems that I have to answer my own question But that is OK. By taking the time to define and post my question I have to some degree clarified the issue. Here are my lessons learned:

1 - If I launch the x2go client on my local machine and invoke a pre-configured remote session it seems to work fine. If I close the X2CO CLIENT application the window containing the "view" of the remote session will close and the remote session will continue running. If I again launch the x2go client and invoke the remote session I am reconnected to the session which is running as I left it. I do not know if this is the correct way; it does not seem very intuitive to have to close the parent x2go client to disconnect from a single remote session. But it seems to work reasonably well.

2 - If I have a connection to a remote session running and I [X] close the window containing the view of the remote session, the remote session continues to run. A logon dialog to that session appears in the blue "work area" if you will on the x2go client. If I attempt to logon generally it works the FIRST time. If I repeat the process it stalls with the connecting window showing. I see in the details "Session: Session terminated" although I can see over an ssh terminal that the programs which I had running in the remote session are still running. At this point I am stuck.

If I then CLOSE AND RELAUNCH THE CLIENT I can again connect to my remote session. I do not know if this is a bug or if I am using the program incorrectly.

3 - If I modify scenario 2 by canceling the logon dialog - which causes it to go back to the list of configured sessions on the right side of the x2go client - I can reconnect ONCE. After that I am again stuck. Closing and relaunching the x2go client allows me to connect again to my running remote session.

4 - DO NOT invoke the Session preferences... for a running but disconnected remote session. Even if the dialog is closed by Cancel. This seems to prevent reconnection to the remote session.

5 - If things get into such a state that it is impossible to recover and reconnect and it is necessary to reboot the remote machine... x2go will not create a new remote session. This can be resolved by opening the Session preferences... dialog and exiting with Save. It is not necessary to make any changes. However, this seems to clear some sort of stale data and will allow a remote session to be started.

6 - Be afraid, very afraid of selecting Full Screen on a remote session configuration if the local machine has multiple monitors. I have two monitors, one landscape and one portrait. When I invoked such a remote session it filled both monitors but I was unable access anything on the remote machine. I could not even get a terminal launched in order to reboot the remote machine. I physically did a hard shutdown on the remote machine but my local machine was filled with the dead remote session and unresponsive. Fortunately after a few minutes the x2go client shut down and I regained control of the local machine.

In conclusion... x2go is much more resource efficient that x11vnc. I cannot compare it to vnc4 or Tight/Tiger vnc as I have yet to get them to run on Ubuntu 20.04. The somewhat bizarre client operation makes accessing multiple remote machines problematic. The need to close and restart the x2go client to re-establish connections is especially limiting. N.B. It is possible to launch a second instance of the x2go client - on a different workspace for example - and then connect to another remote machine. This will allow independent connect, disconnect, restart client and reconnect.

That is what I have to offer. Perhaps it will help someone else.

Ken
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
disconnect and reconnect wireless after ubuntu 11 update. taste Linux - Newbie 2 08-29-2011 07:22 AM
No network packets sent immediately after quick physical disconnect and reconnect miracles Linux - Newbie 10 03-09-2011 11:48 PM
How do I manually disconnect/reconnect DHCP DSL internet connection? chaz_bro1972 Linux - Networking 34 06-06-2008 01:17 AM
USB Keybooard/Mouse disconnect/reconnect issue (Genius TwinTouch Optical Office) 2Pacalypse Linux - Hardware 0 09-22-2007 05:06 AM
Mount / unmount / ejecting CD/DVD makes LAN disconnect & reconnect...! GrapefruiTgirl Slackware 9 03-06-2007 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration