Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Do not underestimate the value of print statements for debugging.


computers / comp.os.linux.misc / Recovering an X session

SubjectAuthor
* Recovering an X sessionJames H. Markowitz
+* Re: Recovering an X sessionAragorn
|`* Re: Recovering an X sessionJames H. Markowitz
| `* Re: Recovering an X sessionJoe Beanfish
|  `- Re: Recovering an X sessionAndreas Kohlbach
`* Re: Recovering an X sessionAnssi Saari
 `* Re: Recovering an X sessionAndreas Kohlbach
  +- Re: Recovering an X sessionBobbie Sellers
  `- Re: Recovering an X sessionAnssi Saari

1
Recovering an X session

<s80cug$1c3h$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5067&group=comp.os.linux.misc#5067

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!BD+U8xDngs5TAdeis7Ezdg.user.gioia.aioe.org.POSTED!not-for-mail
From: noo...@nowhere.net (James H. Markowitz)
Newsgroups: comp.os.linux.misc
Subject: Recovering an X session
Date: Tue, 18 May 2021 12:46:08 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 18
Message-ID: <s80cug$1c3h$1@gioia.aioe.org>
NNTP-Posting-Host: BD+U8xDngs5TAdeis7Ezdg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
X-Notice: Filtered by postfilter v. 0.9.2
 by: James H. Markowitz - Tue, 18 May 2021 12:46 UTC

Imagine the following scenario:

I have an X session, under some desktop environment (KDE, Gnome,
XFCE, whatever) with lots of terminal emulators, and maybe applications,
open and running in different virtual desktops. Then the system is brough
down, maybe intentionally or just accidentally - e.g because of a power
blackout.

Are there any frameworks/desktop environments/mechanisms/whatever
to recover the desktop state as closely as possible to what it was? At
the very least, I would like to recover my terminal emulators in the
state that they were, as far as their history is concerned, the location
they were at, and the state they were at - e.g. if I happened to have an
editor session in one of them, that session should be recovered with all
of its internal buffers, files, history, etc.

Can this at all be done?

Re: Recovering an X session

<20210518152852.55c6f07f@nx-74205>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5068&group=comp.os.linux.misc#5068

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: thoron...@telenet.be (Aragorn)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 15:28:52 +0200
Organization: A noiseless patient Strider
Lines: 41
Message-ID: <20210518152852.55c6f07f@nx-74205>
References: <s80cug$1c3h$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: reader02.eternal-september.org; posting-host="e6c264116a687231877cb01c48b28b4e";
logging-data="17256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7lcSyJYw+NZ+3DIj63R6q"
Cancel-Lock: sha1:4s0/+V/RIGi+SBgszGfHC0tYV6k=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Aragorn - Tue, 18 May 2021 13:28 UTC

On 18.05.2021 at 12:46, James H. Markowitz scribbled:

> Imagine the following scenario:
>
> I have an X session, under some desktop environment (KDE,
> Gnome, XFCE, whatever) with lots of terminal emulators, and maybe
> applications, open and running in different virtual desktops. Then
> the system is brough down, maybe intentionally or just accidentally -
> e.g because of a power blackout.
>
> Are there any frameworks/desktop
> environments/mechanisms/whatever to recover the desktop state as
> closely as possible to what it was? At the very least, I would like
> to recover my terminal emulators in the state that they were, as far
> as their history is concerned, the location they were at, and the
> state they were at - e.g. if I happened to have an editor session in
> one of them, that session should be recovered with all of its
> internal buffers, files, history, etc.
>
> Can this at all be done?

Some of the desktop environments allow for sessions to be stored and
restored upon login, but when it comes to terminal applications, the
mechanism must be provided for by the individual applications.

Some editors for instance — e.g. nano, emacs, possibly vim — allow for
intermediate automatic storing, and while you would need to reopen the
editor after logging in again, you would at least get your work back in
its last state of editing before the crash.

The mechanism for this is of course the use of temporary files, but
then it remains to be seen whether those temporary files are stored on
a persistent storage medium, or under /tmp, which in many distributions
is a tmpfs.

--
With respect,
= Aragorn

Re: Recovering an X session

<s80fnr$1341$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5069&group=comp.os.linux.misc#5069

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!BD+U8xDngs5TAdeis7Ezdg.user.gioia.aioe.org.POSTED!not-for-mail
From: noo...@nowhere.net (James H. Markowitz)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 13:33:47 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 40
Message-ID: <s80fnr$1341$1@gioia.aioe.org>
References: <s80cug$1c3h$1@gioia.aioe.org>
<20210518152852.55c6f07f@nx-74205>
NNTP-Posting-Host: BD+U8xDngs5TAdeis7Ezdg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
X-Notice: Filtered by postfilter v. 0.9.2
 by: James H. Markowitz - Tue, 18 May 2021 13:33 UTC

On Tue, 18 May 2021 15:28:52 +0200, Aragorn wrote:

> On 18.05.2021 at 12:46, James H. Markowitz scribbled:
>
>> Imagine the following scenario:
>>
>> I have an X session, under some desktop environment (KDE,
>> Gnome, XFCE, whatever) with lots of terminal emulators, and maybe
>> applications, open and running in different virtual desktops. Then the
>> system is brough down, maybe intentionally or just accidentally -
>> e.g because of a power blackout.
>>
>> Are there any frameworks/desktop
>> environments/mechanisms/whatever to recover the desktop state as
>> closely as possible to what it was? At the very least, I would like to
>> recover my terminal emulators in the state that they were, as far as
>> their history is concerned, the location they were at, and the state
>> they were at - e.g. if I happened to have an editor session in one of
>> them, that session should be recovered with all of its internal
>> buffers, files, history, etc.
>>
>> Can this at all be done?
>
> Some of the desktop environments allow for sessions to be stored and
> restored upon login, but when it comes to terminal applications, the
> mechanism must be provided for by the individual applications.
>
> Some editors for instance — e.g. nano, emacs, possibly vim — allow for
> intermediate automatic storing, and while you would need to reopen the
> editor after logging in again, you would at least get your work back in
> its last state of editing before the crash.
>
> The mechanism for this is of course the use of temporary files, but then
> it remains to be seen whether those temporary files are stored on a
> persistent storage medium, or under /tmp, which in many distributions is
> a tmpfs.

Thanks. It sounds like this is one of those things that is
potentially doable, but nobody has really attempted to pull it off in a
user-transparent way.

Re: Recovering an X session

<s80fvm$8q0$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5070&group=comp.os.linux.misc#5070

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: joebeanf...@nospam.duh (Joe Beanfish)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 13:37:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <s80fvm$8q0$1@dont-email.me>
References: <s80cug$1c3h$1@gioia.aioe.org> <20210518152852.55c6f07f@nx-74205>
<s80fnr$1341$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 May 2021 13:37:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="de6cf3c8fc6348a090f6dfebfdd684f1";
logging-data="9024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kEudJ33J34eZKRz3gN1VQ+Z5J+2gjYlE="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:cHh1U7JW8dDBXjLXAYxOYLgg+Zo=
 by: Joe Beanfish - Tue, 18 May 2021 13:37 UTC

On Tue, 18 May 2021 13:33:47 +0000, James H. Markowitz wrote:

> On Tue, 18 May 2021 15:28:52 +0200, Aragorn wrote:
>
>> On 18.05.2021 at 12:46, James H. Markowitz scribbled:
>>
>>> Imagine the following scenario:
>>>
>>> I have an X session, under some desktop environment (KDE,
>>> Gnome, XFCE, whatever) with lots of terminal emulators, and maybe
>>> applications, open and running in different virtual desktops. Then the
>>> system is brough down, maybe intentionally or just accidentally -
>>> e.g because of a power blackout.
>>>
>>> Are there any frameworks/desktop
>>> environments/mechanisms/whatever to recover the desktop state as
>>> closely as possible to what it was? At the very least, I would like to
>>> recover my terminal emulators in the state that they were, as far as
>>> their history is concerned, the location they were at, and the state
>>> they were at - e.g. if I happened to have an editor session in one of
>>> them, that session should be recovered with all of its internal
>>> buffers, files, history, etc.
>>>
>>> Can this at all be done?
>>
>> Some of the desktop environments allow for sessions to be stored and
>> restored upon login, but when it comes to terminal applications, the
>> mechanism must be provided for by the individual applications.
>>
>> Some editors for instance — e.g. nano, emacs, possibly vim — allow for
>> intermediate automatic storing, and while you would need to reopen the
>> editor after logging in again, you would at least get your work back in
>> its last state of editing before the crash.
>>
>> The mechanism for this is of course the use of temporary files, but then
>> it remains to be seen whether those temporary files are stored on a
>> persistent storage medium, or under /tmp, which in many distributions is
>> a tmpfs.
>
> Thanks. It sounds like this is one of those things that is
> potentially doable, but nobody has really attempted to pull it off in a
> user-transparent way.

Use "screen" in your terminal sessions so you can resume those sessions
after reconnecting.

Re: Recovering an X session

<sm0tun0rtrb.fsf@lakka.kapsi.fi>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5071&group=comp.os.linux.misc#5071

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: as...@sci.fi (Anssi Saari)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 17:39:20 +0300
Organization: An impatient and LOUD arachnid
Lines: 8
Message-ID: <sm0tun0rtrb.fsf@lakka.kapsi.fi>
References: <s80cug$1c3h$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="51049fd84d3cdec25bf77cde2266a0ee";
logging-data="24239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QgP3aV5JkqfqTvOOi9IJc"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:uW9mXWPJAHyh4kQ8FfDwe1Nrw+I=
sha1:+x6Wsg/TMr+H3lmHZmRXgkp+OHA=
 by: Anssi Saari - Tue, 18 May 2021 14:39 UTC

"James H. Markowitz" <noone@nowhere.net> writes:

> Are there any frameworks/desktop environments/mechanisms/whatever
> to recover the desktop state as closely as possible to what it was?

For the power loss case you could get a UPS and hibernate the system
when the battery goes low. I'm not aware of what would work for the
accidents.

Re: Recovering an X session

<87fsykt77y.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5072&group=comp.os.linux.misc#5072

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 11:03:13 -0400
Organization: https://news-commentaries.blogspot.com/
Lines: 26
Message-ID: <87fsykt77y.fsf@usenet.ankman.de>
References: <s80cug$1c3h$1@gioia.aioe.org> <20210518152852.55c6f07f@nx-74205>
<s80fnr$1341$1@gioia.aioe.org> <s80fvm$8q0$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="786135baa80becf4f70f73cb05a32886";
logging-data="6394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oTTpueqzRrns4J5qUHGuh"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:87Ea7gEJqvCnK27MywMqTbrkyZU=
sha1:VO7eMfvq5MQkAq9hdQ92i5dJZ6w=
X-Face: '#R~-oJz-_!iXhczPJ;=w1(`5-uQ2$0qHB7KKDV,]VoAC!P?swaa#m|eB<DkOt*XH=~9C[g S^w)b,)1q,{P\7Z3H,N(^m.YKuYM//B{X:PvbDk.|:g:$wVr*3*)[K6F+k\z-s32+oB]YJPy11wuGGz'bQAk~1.b1[;M{^A2@bboIENBB:Wd:<Fm~r7OuiJA1g}7KC-T'>Du+
X-Face-What-Is-It: Capture Bee from Galaga
 by: Andreas Kohlbach - Tue, 18 May 2021 15:03 UTC

On Tue, 18 May 2021 13:37:58 -0000 (UTC), Joe Beanfish wrote:
>
> On Tue, 18 May 2021 13:33:47 +0000, James H. Markowitz wrote:
>
>> Thanks. It sounds like this is one of those things that is
>> potentially doable, but nobody has really attempted to pull it off in a
>> user-transparent way.

Not all with the same mechanism.

At least GNOME knows sessions. May be gnome-session-properties needs to
be installed, then run it and select that you want to restore a previous
session.

Most web browsers also allow a crash recovery and offer to remember
opened tabs on shutdown.

Editors might remember where they left oft, leaving a temp-file behind if
a document wasn't saved properly.

> Use "screen" in your terminal sessions so you can resume those sessions
> after reconnecting.

screen won't survive a reboot.
--
Andreas

Re: Recovering an X session

<87cztot6yv.fsf@usenet.ankman.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5074&group=comp.os.linux.misc#5074

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ank...@spamfence.net (Andreas Kohlbach)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 11:08:40 -0400
Organization: https://news-commentaries.blogspot.com/
Lines: 15
Message-ID: <87cztot6yv.fsf@usenet.ankman.de>
References: <s80cug$1c3h$1@gioia.aioe.org> <sm0tun0rtrb.fsf@lakka.kapsi.fi>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="786135baa80becf4f70f73cb05a32886";
logging-data="6394"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bpVBWYVDDKr7DEx8j4B43"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:e+Nv9c3eoatEms3szXyBG56NgyE=
sha1:uVemu80uAC/3jMZXRhrdUDE2LHM=
X-No-Archive: Yes
X-Face: '#R~-oJz-_!iXhczPJ;=w1(`5-uQ2$0qHB7KKDV,]VoAC!P?swaa#m|eB<DkOt*XH=~9C[g S^w)b,)1q,{P\7Z3H,N(^m.YKuYM//B{X:PvbDk.|:g:$wVr*3*)[K6F+k\z-s32+oB]YJPy11wuGGz'bQAk~1.b1[;M{^A2@bboIENBB:Wd:<Fm~r7OuiJA1g}7KC-T'>Du+
X-Face-What-Is-It: Capture Bee from Galaga
 by: Andreas Kohlbach - Tue, 18 May 2021 15:08 UTC

On Tue, 18 May 2021 17:39:20 +0300, Anssi Saari wrote:
>
> "James H. Markowitz" <noone@nowhere.net> writes:
>
>> Are there any frameworks/desktop environments/mechanisms/whatever
>> to recover the desktop state as closely as possible to what it was?
>
> For the power loss case you could get a UPS and hibernate the system
> when the battery goes low. I'm not aware of what would work for the
> accidents.

In case you run a notebook or laptop (on AC) and have a battery in it
"acts" like a UPS already - with no additional cost.
--
Andreas

Re: Recovering an X session

<s818jb$178$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5078&group=comp.os.linux.misc#5078

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bli...@mouse-potato.com (Bobbie Sellers)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Tue, 18 May 2021 13:38:02 -0700
Organization: dis-organization
Lines: 26
Message-ID: <s818jb$178$1@dont-email.me>
References: <s80cug$1c3h$1@gioia.aioe.org> <sm0tun0rtrb.fsf@lakka.kapsi.fi>
<87cztot6yv.fsf@usenet.ankman.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 May 2021 20:38:04 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="643482566488fa2fa73c00f332339b53";
logging-data="1256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192feUDJDtAuxKBZVqDCnQI"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
Cancel-Lock: sha1:hfW4gVaoqWXPYMzH51Pc4GlXu38=
In-Reply-To: <87cztot6yv.fsf@usenet.ankman.de>
Content-Language: en-US
 by: Bobbie Sellers - Tue, 18 May 2021 20:38 UTC

On 5/18/21 8:08 AM, Andreas Kohlbach wrote:
> On Tue, 18 May 2021 17:39:20 +0300, Anssi Saari wrote:
>>
>> "James H. Markowitz" <noone@nowhere.net> writes:
>>
>>> Are there any frameworks/desktop environments/mechanisms/whatever
>>> to recover the desktop state as closely as possible to what it was?
>>
>> For the power loss case you could get a UPS and hibernate the system
>> when the battery goes low. I'm not aware of what would work for the
>> accidents.
>
> In case you run a notebook or laptop (on AC) and have a battery in it
> "acts" like a UPS already - with no additional cost.
>

Which is exactly why I use laptops besides the space required
to accommodate and cool tower or desktop.

bliss -“Nearly any fool can use a GNU/Linux computer. Many do.” After
all here I am...

--
bliss dash SF 4 ever at dslextreme dot com

Re: Recovering an X session

<sm04kezrzkv.fsf@lakka.kapsi.fi>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5085&group=comp.os.linux.misc#5085

  copy link   Newsgroups: comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: as...@sci.fi (Anssi Saari)
Newsgroups: comp.os.linux.misc
Subject: Re: Recovering an X session
Date: Wed, 19 May 2021 09:45:52 +0300
Organization: An impatient and LOUD arachnid
Lines: 7
Message-ID: <sm04kezrzkv.fsf@lakka.kapsi.fi>
References: <s80cug$1c3h$1@gioia.aioe.org> <sm0tun0rtrb.fsf@lakka.kapsi.fi>
<87cztot6yv.fsf@usenet.ankman.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a7afa81dd68cc31b9e84dd917a042215";
logging-data="29037"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kBom9klTX5Ot6n0f305X7"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:QLkqeaXkM0rQoDlzaF8geVaOKo8=
sha1:F4LZw9S5BNDs+Adb78/kcpAX8bM=
 by: Anssi Saari - Wed, 19 May 2021 06:45 UTC

Andreas Kohlbach <ank@spamfence.net> writes:

> In case you run a notebook or laptop (on AC) and have a battery in it
> "acts" like a UPS already - with no additional cost.

Sure. I assumed this is not the case for the OP since he seemed worried
about accidental power loss.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor