Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server #391

Closed
jgurr4 opened this issue Nov 11, 2021 · 2 comments
Closed
Labels

Comments

@jgurr4
Copy link

jgurr4 commented Nov 11, 2021

Command run:
./x11docker --desktop --gpu --init=systemd x11docker/kde-plasma

Version:
v6.10.0

I cloned the repo and run this command for minimal installation option according to the README.md and it fails with the error I listed above. Is there a fix for this?

@mviereck
Copy link
Owner

mviereck commented Nov 11, 2021

You should have got this message that explains some possibilities:

x11docker WARNING: Your configuration seems not to allow to start
  a second core Xorg server from within X. Option --xorg may fail.
  (Per default, only root or console users are allowed to run an Xorg server).

  Possible solutions:
  1.) Install one of nested X servers 'Xephyr', 'Xnest' or 'nxagent'.
      For --gpu support: install 'weston' and 'Xwayland'.
  2.) Switch to console tty1...tty6 with <CTRL><ALT><F1>...<F6>
      and start x11docker there.
  3.) Run x11docker as root.
  4.) Edit file '/etc/X11/Xwrapper.config' and replace line:
          allowed_users=console
      with lines
          allowed_users=anybody
          needs_root_rights=yes
      If the file does not exist already, you can create it.
      On Debian and Ubuntu you need package xserver-xorg-legacy.
      
   Be aware that switching directly between Xorg servers can crash them.
   Always switch to a black console first before switching to Xorg.

@jgurr4
Copy link
Author

jgurr4 commented Nov 11, 2021

I have gotten it working in Console. Thank you for your reply and solutions.

@jgurr4 jgurr4 closed this as completed Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants