[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Docker amb X



Bones,

vaig top posting perquè li faig un git. El que crec que està passant és que no em funciona el Indirect rendering (IGLX).

No em funciona un ssh -X quan hi ha OpenGL, i és una cosa similar. Ara havia superat (paràmetre incorrecte del docker) però li fallava el rendering. Diguéssim que considera que l'aplicació que s'executa al docker com remota.

Navegant pel web he trobat que s'ha d'afegir l'opció de +iglx al costat del X -core, però no trobo com es crida a Debian amb un sddm.

Alguna idea?


Leo


El 17/9/20 a les 11:53, Alex Muntada ha escrit:
Hola Leo,

Per exemple, si executo:

$ docker run --net=host --user $(id -u) --env DISPLAY=$DISPLAY \
  -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \
  --name graspit_f graspit graspit_simulator

Sempre acabo amb:

X11 connection rejected because of wrong authentication.
cannot connect to X server localhost:10.0

Malgrat que he fet un xhost +.

No sé què faig malament.

A mi em diu que no troba graspit o que no tinc permís:

     docker: Error response from daemon: pull access denied for
     graspit, repository does not exist or may require 'docker
     login': denied: requested access to the resource is denied.

Algun cop he provat d'executar un contenidor de chromium i em
donva algun error similar. Ara he provat una cosa més senzilla
que m'ha funcionat:

1.  En un terminal executo:

     docker run --net=host --user $(id -u) --env DISPLAY=$DISPLAY
                -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" -it
                --name xclock debian:buster-slim

2.  En un altre terminal entro com a root i instal·lo xclock:

     docker exec -u 0 -it xclock /bin/bash
     apt update
     apt install x11-apps

3.  Me'n torno al primer terminal i executo xclock amb èxit,
     sense que em calgui fer xhost.

Salut,
Alex

--
   ⢀⣴⠾⠻⢶⣦⠀
   ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada <alexm@debian.org>
   ⢿⡄⠘⠷⠚⠋   Debian Developer 🍥 log.alexm.org
   ⠈⠳⣄⠀⠀⠀⠀



--
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: