Re: Docker amb X

2020-09-26 Conversa Alex Muntada
Hola Leo,

> vaig top posting perquè li faig un git.

No entenc quina relació té el git amb el top-posting.

> El que crec que està passant és que no em funciona el Indirect
> rendering (IGLX).

És el mateix que això?

$ grep -i iglx /var/log/Xorg.0.log
[10.399] (==) AIGLX enabled
[10.617] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[10.617] (II) AIGLX: enabled GLX_ARB_create_context
[10.617] (II) AIGLX: enabled GLX_ARB_create_context_profile
[10.617] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[10.617] (II) AIGLX: enabled GLX_INTEL_swap_event
[10.617] (II) AIGLX: enabled GLX_SGI_swap_control and 
GLX_MESA_swap_control
[10.617] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[10.617] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[10.617] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer 
objects
[10.617] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[10.617] (II) AIGLX: Loaded and initialized i965

> 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.

Vaig força perdut amb el tema d'OpenGL.

> 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.

L'apt-file del sddm diu que té aquests fitxers que semblen bons
candidats:

$ apt-file list sddm
sddm: /etc/dbus-1/system.d/sddm_org.freedesktop.DisplayManager.conf
sddm: /etc/init.d/sddm
sddm: /etc/init/sddm.conf
sddm: /etc/pam.d/sddm
sddm: /etc/pam.d/sddm-autologin
sddm: /etc/pam.d/sddm-greeter
sddm: /etc/sddm/Xsession
sddm: /lib/systemd/system/sddm.service
...

Salut i sort,
Alex

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



signature.asc
Description: PGP signature


Re: Docker amb X

2020-09-17 Conversa Leopold Palomo-Avellaneda

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 
   ⢿⡄⠘⠷⠚⠋   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?



signature.asc
Description: OpenPGP digital signature


Re: Docker amb X

2020-09-17 Conversa Alex Muntada
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 
  ⢿⡄⠘⠷⠚⠋   Debian Developer 🍥 log.alexm.org
  ⠈⠳⣄



signature.asc
Description: PGP signature


Docker amb X

2020-09-16 Conversa Leopold Palomo-Avellaneda
Bones,

tinc uns mínims coneixements de docker per fer un cert funcionament. El
que em passa és que voldria poder executar una aplicació gràfica en un
docker i malgrat he mirat diversos tutorials no me'n surto.

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.

Alguna idea?

Leopold

-- 
--
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?