* Container howto for X11?
@ 2016-07-03 18:40 Pjotr Prins
2016-07-03 22:12 ` Thompson, David
0 siblings, 1 reply; 3+ messages in thread
From: Pjotr Prins @ 2016-07-03 18:40 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
Is there a container howto for X11 applications? I would like to run
the browser in a Guix container. Fun with a serious note.
Pj.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Container howto for X11?
2016-07-03 18:40 Container howto for X11? Pjotr Prins
@ 2016-07-03 22:12 ` Thompson, David
2016-07-04 6:29 ` Pjotr Prins
0 siblings, 1 reply; 3+ messages in thread
From: Thompson, David @ 2016-07-03 22:12 UTC (permalink / raw)
To: Pjotr Prins; +Cc: guix-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Container howto for X11?
2016-07-03 22:12 ` Thompson, David
@ 2016-07-04 6:29 ` Pjotr Prins
0 siblings, 0 replies; 3+ messages in thread
From: Pjotr Prins @ 2016-07-04 6:29 UTC (permalink / raw)
To: Thompson, David; +Cc: guix-devel
Awesome, it works a charm :)
On Sun, Jul 03, 2016 at 06:12:07PM -0400, Thompson, David wrote:
> 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
>
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-04 6:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-03 18:40 Container howto for X11? Pjotr Prins
2016-07-03 22:12 ` Thompson, David
2016-07-04 6:29 ` Pjotr Prins
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).