SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@darkstar:~# date && uname -r && ls /var/lib/pkgtools/packages/lxc*
Sat Nov 20 13:53:25 PST 2021
5.15.3
/var/lib/pkgtools/packages/lxc-4.0.11-x86_64-3
Code:
root@darkstar:~# grep elflibs /usr/share/lxc/templates/lxc-slackware
aaa_elflibs
root@darkstar:~# slackpkg file-search aaa_elflibs
Looking for aaa_elflibs in package list. Please wait... DONE
No packages contains "aaa_elflibs" file.
Conclusion: safe to remove aaa_elflibs from lxc-slackware
Hmm, trying to run a gui acc. to howtos:misc:lxc but it ends with:
Code:
rob@s6:~$ ssh -Y rob@10.0.3.44 gimp
(rob@10.0.3.44) Password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
connect /tmp/.X11-unix/X0: No such file or directory
Cannot open display:
/tmp/.X11-unix/ exists, but X0 doesn't
an attempt with another, Qt-based program began with the same error:
Code:
connect /tmp/.X11-unix/X0: No such file or directory
qt.qpa.xcb: could not connect to display localhost:10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
error: XDG_RUNTIME_DIR not set in the environment.
What have I missed setting up?
(PS, s6 is the container from which the gui is run)
but still gives "Cannot open display: "; /tmp/.X11-unix/ is still empty
This might be very off track (apologies if so), but in your /etc/ssh/sshd_config (within the container) have you enabled X11 forwarding? For example changing these two lines to be similar to the following?
This might be very off track (apologies if so), but in your /etc/ssh/sshd_config (within the container) have you enabled X11 forwarding? For example changing these two lines to be similar to the following?
Code:
X11Forwarding yes
X11DisplayOffset 10
Thanks, avian; like glorsplitz said the `X11DisplayOffset 10` was not set. Anyway, enabling that did not help me. Had to restart X to test it (got temporarily /tmp/.X11/X0, but that has gone again).
EDIT: found another blog, GUI-From-an-LXC-Container-on-the-Host that seemed relevant; it also mentions the 'ro' addition to the `lxc.mount.entry = /tmp/.X11-unix` line in the config file, needed to keep the /tmp/.X11-unix/X0.
Then, when following the sequence sketched out in that blog, the display is found for the container and for the host via:
Code:
#env | grep -i display
env | grep DISPLAY
This works at my end only on the host (gives: 'DISPLAY=:0.0'); on the container nothing (while 'env' gives a lot of output)
From within the container the command 'DISPLAY=:0 <gui-app>' was enough.
For jamulus not to throw a "libGL error: MESA-LOADER: failed to retrieve device information" the following lines (from blog in previous post; control values via 'ls -l /dev/dri' ) needed to be in the lxc.config:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.