Thanks for the info and tips Andy!
And by the laws of Sod and Murphy, now when I logged in again to try
the double escape sequence and/or the CTRL-], I got to the xen shell
instead of my vps shell. As it should be. Probably because I finished
my last session with C^ a \ to quit screen instead of just detaching it.
The confusing bit was that the screen process belonging to my vps
shell started immediately when I logged in to the xen shell. With your
explanation about the xen shell being run in screen it kind of makes
sense of what happened, but the other way around. I guess the CTRL-a d
sequence detached the xen screen process and not the screen process
running inside it. Which then logged me out. When I then logged in
again, the screen process inside xen screen was still active.
No, I change my statement above about what was the confusing bit to
say the confusing bit is my explanation above. :-) But I understand
what happened now. I use the xen shell so rarely I forget all about
it. The wiki page is a good source of information. I just couldn't get
my head around what was happening.
Cheers,
__
/ony
-------
Sunday, September 27, 2015, 11:34:05 AM, Andy wrote:
Hi Tony,
On Sun, Sep 27, 2015 at 11:13:17AM +0100, Tony
Andersson wrote:
> Maybe it is me that have missed something (as usual), but it seems
> that I have a strange behaviour at (in? on? with?) the vps console. I
> can login as usual, and screen is starting up a shell on my vps. But
> if I detach the screen process from the console (with C^-a d for
> example), I am immediately logged out.
Xen Shell is itself GNU Screen. It sounds like you
have started a
screen within Screen. You would, I think, need to double up the
ctrl-a there to send the command to your own Screen, and this
becomes immensely confusing.
If it is any consolation I also find use of GNU Screen
on real
serial consoles and IPMI serial-over-lan to be "a bit much" for the
environment and so try to avoid doing it wherever possible, spending
as little time as I can in the console.
> At that stage I expected to get to the xen shell
so I could
> control the state of my vps. But that does not happen.
Since the Xen Shell is GNU Screen, using ctrl-a c to
create a new
window would result in a new window at the Xen Shell menu and leave
your existing window at your console, with ctrl-a a toggling between
them.
If you really wanted to kill your console session and
return to the
Xen Shell menu then it is ctrl-]. I am not sure how or if that would
work if you had made a screen within Screen.
In any case once you have gone into the console it is
usually
simpler to create a new window for the menu and toggle between.
If that helped, perhaps
https://tools.bitfolk.com/wiki/Xen_Shell
could do with some love to make it more obvious?
Cheers,
Andy