solved: gnome-terminal in disposable VMs closes prematurely

105 views
Skip to first unread message

Andrew Clausen

unread,
Jan 17, 2018, 7:47:47 PM1/17/18
to qubes-devel
Hi all,

In Qubes 3.2 the obvious way to start a gnome-terminal in its own disposable virtual machine is:

qvm-run '$dispvm' gnome-terminal

However, this doesn't work!  The gnome-terminal process exits immediately (it spawns gnome-terminal-server in the background to do the real work), and the VM shuts down prematurely.  Qubes 4.0 has the same problem, but with different notation above.  I suspect this is the reason that an xterm is on the DispVM menu instead of gnome-terminal.

Anyway, I think I have a solution, based on systemd:

qvm-run '$dispvm' "gnome-terminal; systemctl --user start gnome-terminal-server --wait"

I haven't yet tested the analogous command on Qubes 4.0, but I expect this approach should work there too.

Kind regards,
Andrew

Tom Zander

unread,
Jan 18, 2018, 8:58:21 AM1/18/18
to qubes...@googlegroups.com, Andrew Clausen
On Thursday, 18 January 2018 01:47:45 CET Andrew Clausen wrote:
> However, this doesn't work! The gnome-terminal process exits immediately
> (it spawns gnome-terminal-server in the background to do the real work),
> I suspect this is the reason that an xterm
> is on the DispVM menu instead of gnome-terminal.

Thats rather unfortunate, I would suggest trying Konsole as an alternative,
it certainly looks much better than xterm. It also doesn't have the
described problem.

--
Tom Zander
Blog: https://zander.github.io
Vlog: https://vimeo.com/channels/tomscryptochannel


Holger Levsen

unread,
Jan 18, 2018, 9:02:26 AM1/18/18
to qubes...@googlegroups.com
On Thu, Jan 18, 2018 at 02:58:14PM +0100, 'Tom Zander' via qubes-devel wrote:
> Thats rather unfortunate, I would suggest trying Konsole as an alternative,

I found "sakura" to be much more lightweight and still supporting
font-resizing with ctrl+(plus|minus) by default. It's also available on
Fedora, Debian & whonix.


--
cheers,
Holger
signature.asc

Marek Marczykowski-Górecki

unread,
Jan 18, 2018, 9:16:53 AM1/18/18
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Let me try (on f26):

$ sakura
Segmentation fault (core dumped)

:(

Looks like I'm not the only one:
https://pastebin.com/PMHDPkSb (looks like the same bug)
https://bugzilla.redhat.com/show_bug.cgi?id=1349250

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAlpgrDoACgkQ24/THMrX
1yyN0Af6AmbFMRBDUvnQmEtXJ5ULG7KPYIcvhYbDWRLr5wXxoO9A6zFJUsY8HibR
69qLQ3wuGmP7xvOgGqMlTtH3GuSoiA0Ivn/z2tLZHbry0DZFx3EhTlPj0MxJA+Bm
J5J+3ZxI9+ap0mUGpEahoq30gS/diJOsUPapfiChI5/51f1STaH0hG28l9nBFK6P
jpp3W19pxQ9oQVR7F1pL2PDoS0YSoxXgWfkdXWit/f4dm1q3hqL6Ji47jC2uXXwY
jDt3EOgzNYFtzcOcJJ0hLjgyaG/uawd7R+75yKfb05amRekytRGWPeVqq4BcBj2k
zPm8FfLKdomyWoMPF8D7lg0lI+UoIg==
=11cL
-----END PGP SIGNATURE-----

Holger Levsen

unread,
Jan 18, 2018, 9:26:41 AM1/18/18
to qubes...@googlegroups.com
On Thu, Jan 18, 2018 at 03:16:26PM +0100, Marek Marczykowski-Górecki wrote:
> Let me try (on f26):
> $ sakura

hmpf. I've only tried in on f25… (IOW: still using xterm in dom0 as less
is more there.)


--
cheers,
Holger
signature.asc

Andrew Clausen

unread,
Jan 18, 2018, 12:52:16 PM1/18/18
to qubes-devel
Hi again,

On 18 January 2018 at 00:47, Andrew Clausen <andrew.p...@gmail.com> wrote:
Anyway, I think I have a solution, based on systemd:

qvm-run '$dispvm' "gnome-terminal; systemctl --user start gnome-terminal-server --wait"

I haven't yet tested the analogous command on Qubes 4.0, but I expect this approach should work there too.

I have just tested it.  I can confirm that the corresponding work-around for Qubes 4.0 works properly:

qvm-run-vm --dispvm "gnome-terminal; systemctl start --wait gnome-terminal-server"

Kind regards,
Andrew

Reply all
Reply to author
Forward
0 new messages