[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Graphically isolating Guix containers with Xpra.
From: |
Ludovic Courtès |
Subject: |
Re: Graphically isolating Guix containers with Xpra. |
Date: |
Fri, 16 Feb 2018 17:55:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello Rutger,
Rutger Helling <address@hidden> skribis:
> Here's a small tip for how you can create graphically isolated containers
> with Guix and Xpra.
>
> First we create a Xpra server, with no clipboard access.
> $ xpra start --clipboard=no :200
>
> Next we switch to an empty tmp directory, and start a Guix container that has
> access to the X200 socket only.
> $ cd tmp
> $ guix environment -C --ad-hoc coreutils gedit
> --expose=/home/$USER/.Xauthority --expose=/tmp/.X11-unix/X200 -- env
> DISPLAY=:200 XAUTHORITY=/home/$USER/.Xauthority gedit
>
> On a different terminal (or over SSH) you can now access the Xpra server.
> $ xpra attach :200
Nice trick!
Did you see the discussion at
<https://lists.gnu.org/archive/html/help-guix/2018-01/msg00056.html>?
This is something we could directly add to ‘guix run’ or similar.
Ludo’.