LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to use 'screen' to restore a gnome-session. (https://www.linuxquestions.org/questions/linux-software-2/how-to-use-screen-to-restore-a-gnome-session-840232/)

Sreeram B S 10-24-2010 11:11 PM

How to use 'screen' to restore a gnome-session.
 
Hi,
This is regarding the 'screen' utility.
I use an utility called 'HummingBird Exceed' to get the XSession of a linux client on my windows desktop (basically it uses XDMCP). But the pain is that at the end of the day, when I close Exceed, the session gets destroyed. I did lot of searching on the web to know how the save and restore session in Exceed, but failed.
However, I found that 'screen' is the utility which keeps the session intact even when you logout. So, I did the following:
a. Logged into the machine using Putty (terminal emulator).
b. Started 'screen'.
c. Issued the command: /usr/bin/gnome-session
I got the XSession on the Exceed and started working. I opened three or four gnome-terminals.
But when I logout of exceed(and detach from the screen), the screen displayed a message saying that 'Connection to XServer was lost". Hence I could not restore to this session when I reattached to the screen.
Could you please guide me as to how do I use 'screen' so that when I attach to the screen on which I had started gnome-session, it attempts to connect to the Xserver and open the session as it was before detaching?

Kindly help.

Regards,
Sreeram

TB0ne 10-25-2010 07:43 AM

Quote:

Originally Posted by Sreeram B S (Post 4138162)
Hi,
This is regarding the 'screen' utility.
I use an utility called 'HummingBird Exceed' to get the XSession of a linux client on my windows desktop (basically it uses XDMCP). But the pain is that at the end of the day, when I close Exceed, the session gets destroyed. I did lot of searching on the web to know how the save and restore session in Exceed, but failed.

However, I found that 'screen' is the utility which keeps the session intact even when you logout. So, I did the following:
a. Logged into the machine using Putty (terminal emulator).
b. Started 'screen'.
c. Issued the command: /usr/bin/gnome-session
I got the XSession on the Exceed and started working. I opened three or four gnome-terminals.
But when I logout of exceed(and detach from the screen), the screen displayed a message saying that 'Connection to XServer was lost". Hence I could not restore to this session when I reattached to the screen.

Could you please guide me as to how do I use 'screen' so that when I attach to the screen on which I had started gnome-session, it attempts to connect to the Xserver and open the session as it was before detaching?

Sorry, this isn't anything we can help with. Your problem isn't with Linux or screen, but with Hummingbird Exceed. When you logout of Exceed, it's stopping the X service and session that goes along with it. If you're having problems with it, you can try to contact Hummingbird tech support.


All times are GMT -5. The time now is 02:19 PM.