From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Container howto for X11? Date: Sun, 3 Jul 2016 18:12:07 -0400 Message-ID: References: <20160703184012.GA9057@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJpcZ-0006Yh-0Y for guix-devel@gnu.org; Sun, 03 Jul 2016 18:12:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJpcW-0002tW-VB for guix-devel@gnu.org; Sun, 03 Jul 2016 18:12:09 -0400 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:35780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJpcW-0002tJ-Qs for guix-devel@gnu.org; Sun, 03 Jul 2016 18:12:08 -0400 Received: by mail-vk0-x22f.google.com with SMTP id i63so42407935vkb.2 for ; Sun, 03 Jul 2016 15:12:08 -0700 (PDT) In-Reply-To: <20160703184012.GA9057@thebird.nl> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel On Sun, Jul 3, 2016 at 2:40 PM, Pjotr Prins 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