all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix shell documentation, container example
@ 2023-11-18 14:05 Nicolas Débonnaire
  2023-11-19  8:56 ` Giacomo
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Débonnaire @ 2023-11-18 14:05 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Hi,
When running the example herebelow, from the guix shell documentation, an
error is returned:

guix shell --container --network --no-cwd ungoogled-chromium \
  --preserve='^DISPLAY$' -- chromium

[1:14:1118/140039.476338:ERROR:bus.cc(399)] Failed to connect to the
bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No
such file or directory
Authorization required, but no authorization protocol specified

[1:1:1118/140039.498151:ERROR:ozone_platform_x11.cc(239)] Missing X
server or $DISPLAY
[1:1:1118/140039.498166:ERROR:env.cc(255)] The platform failed to
initialize.  Exiting.

[-- Attachment #2: Type: text/html, Size: 769 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix shell documentation, container example
  2023-11-18 14:05 guix shell documentation, container example Nicolas Débonnaire
@ 2023-11-19  8:56 ` Giacomo
  2023-11-19 13:07   ` Luis Felipe
  0 siblings, 1 reply; 3+ messages in thread
From: Giacomo @ 2023-11-19  8:56 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

Hi Nicolas,

It seems you are running this command under Wayland and the person who wrote it did under X11.

Maybe try the same command under X11?

Il 18 novembre 2023 15:05:28 CET, "Nicolas Débonnaire" <n.debonnaire@gmail.com> ha scritto:
>Hi,
>When running the example herebelow, from the guix shell documentation, an
>error is returned:
>
>guix shell --container --network --no-cwd ungoogled-chromium \
>  --preserve='^DISPLAY$' -- chromium
>
>[1:14:1118/140039.476338:ERROR:bus.cc(399)] Failed to connect to the
>bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No
>such file or directory
>Authorization required, but no authorization protocol specified
>
>[1:1:1118/140039.498151:ERROR:ozone_platform_x11.cc(239)] Missing X
>server or $DISPLAY
>[1:1:1118/140039.498166:ERROR:env.cc(255)] The platform failed to
>initialize.  Exiting.

[-- Attachment #2: Type: text/html, Size: 1287 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix shell documentation, container example
  2023-11-19  8:56 ` Giacomo
@ 2023-11-19 13:07   ` Luis Felipe
  0 siblings, 0 replies; 3+ messages in thread
From: Luis Felipe @ 2023-11-19 13:07 UTC (permalink / raw)
  To: Giacomo, guix-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 1717 bytes --]

Hi,

El 19/11/23 a las 8:56, Giacomo escribió:
> Hi Nicolas,
>
> It seems you are running this command under Wayland and the person who 
> wrote it did under X11.
>
> Maybe try the same command under X11?

I'm using X11 and get the same error.

I don't know what's the appropriate way of running a contained browser, 
but the following command from my notes works to some extent:

guix shell -CN --no-cwd ungoogled-chromium fontconfig \
       -E "^DISPLAY$" -E "^XAUTHORITY$" --expose="$XAUTHORITY" \
       --expose=/tmp/.X11-unix/ --expose=$HOME/.Xauthority \
       --expose=/etc/machine-id --expose=/dev/dri \
       --expose=/var/run/dbus/system_bus_socket \
       -- chromium --incognito

The browser starts, and I can browse the web, but there are lots of 
other error messages.

Also, I didn't take note on why I need to expose  all these resources, 
so be careful :)

>
>
> Il 18 novembre 2023 15:05:28 CET, "Nicolas Débonnaire" 
> <n.debonnaire@gmail.com> ha scritto:
>
>     Hi,
>     When running the example herebelow, from the guix shell
>     documentation, an error is returned:
>
>     guix shell --container --network --no-cwd ungoogled-chromium \
>        --preserve='^DISPLAY$' -- chromium
>
>     [1:14:1118/140039.476338:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
>     Authorization required, but no authorization protocol specified
>
>     [1:1:1118/140039.498151:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY
>     [1:1:1118/140039.498166:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
>

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-19 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-18 14:05 guix shell documentation, container example Nicolas Débonnaire
2023-11-19  8:56 ` Giacomo
2023-11-19 13:07   ` Luis Felipe

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.