Make the lgp login setup correct environment variables so one can run X11 applications from within the chroot. | |
| priority | normal |
|---|---|
| type | enhancement |
| appeared in | <not specified> |
| done in | 0.21.0 |
| load | 0.100 |
| load left | 0.100 |
| closed by | <not specified> |
] >
Logilab.org | anonymous [register] [login]
|
logilab-devtools #18194 [lgp login] make it possible to run X11 apps [open]
|
|||||||||||||||||||
Comments
-
2009/09/24 16:21, written by ddouard
| reply to this comment
- get the .Xauthority entry line for the terminal from which you are running the lgp login command by issuing: xauth list $DISPLAY
- start the chroot lgp login
- run apt-get install xauth
- run xauth add <.Xauthority entry line>
- type export DISPLAY=<you DISPLAY env variable outside the chroot>
-
2009/10/08 17:37, written by eanclin
| reply to this comment
- some images might not be displayed (libgtk bug?)
-
2009/10/09 19:29 | reply to this comment
-
2009/10/09 19:33 | reply to this comment
-
2009/10/10 14:38, written by nchauvat
| reply to this comment
- lgp login
- /root/xsetup.sh
- the script asks for the xauthority entry line
- the script asks for the value of display
-
2010/03/22 10:34 | reply to this comment
(add comment)I've been able to run a X11 app from within a lgp login chroot:
Note: DISPLAY will be exported by default in 0.16.0.
I'm not convinced to put that into lgp. The most of tested packages don't require x11 and it puts a lot of new packages by installing xauth (and so x11 stuff). That will be not a minimal chroot afterwards. Nevertheless, I will see if I can put easily the .Xauthority entry line in the chroot somewhere.
I am -1 on installing xauth by default in the chroot. +1 on adding a script that does the above. Scenario would be:
could be easily done with pbuilder >= 0.194 but requires manual step till that. I think to use a script instead of hook to resolve the ticket.