From: "Thompson, David" <dthompson2@worcester.edu>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Container howto for X11?
Date: Sun, 3 Jul 2016 18:12:07 -0400 [thread overview]
Message-ID: <CAJ=RwfZ09h49tkcxLRwrq59+wKdCcXt1xE2vjKH-4cb-WPDxCw@mail.gmail.com> (raw)
In-Reply-To: <20160703184012.GA9057@thebird.nl>
On Sun, Jul 3, 2016 at 2:40 PM, Pjotr Prins <pjotr.public12@thebird.nl> wrote:
> Is there a container howto for X11 applications? I would like to run
> the browser in a Guix container. Fun with a serious note.
If you share the X11 socket file and set $DISPLAY to the right value,
then you should be able to make that happen:
guix environment --container --network --share=/tmp/.X11-unix
--ad-hoc icecat
export DISPLAY=":0.0"
icecat
Do note that the above code gives icecat full access to the X11 server
and the host's network interfaces, so it's not exactly a locked down
environment.
Perhaps we could use a command line switch to automatically do this
sort of thing.
- Dave
next prev parent reply other threads:[~2016-07-03 22:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 18:40 Container howto for X11? Pjotr Prins
2016-07-03 22:12 ` Thompson, David [this message]
2016-07-04 6:29 ` Pjotr Prins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ=RwfZ09h49tkcxLRwrq59+wKdCcXt1xE2vjKH-4cb-WPDxCw@mail.gmail.com' \
--to=dthompson2@worcester.edu \
--cc=guix-devel@gnu.org \
--cc=pjotr.public12@thebird.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.