Open hcscctv opened 2 years ago
Hello, sorry for my late reply. I think it requires "root" although not sudo. Inside a docker container, you can be the root and if you turn on xserver inside the container, you will have permission (even if you don't have root access for the computer itself)
@hcscctv, after many hours of trying It seems to me that if you don't have root access inside docker, then running Xorg server is impossible.
What have I tried and looked at? I've gone through every issue related to Xorg in the Alfred and AI2Thor repositories. More specifically, I:
allowed_users=anybody
at the end of /etc/X11/Xwrapper.config
DEBIAN_FRONTEND=noninteractive
nvidia-xconfig
.--privileged
.xorg openbox
(stackoverflow) vs xserver-xorg-core xorg
(ai2thor docker) vs xserver-xorg xserver-xorg-video-fbdev xauth
(alfred).tempfile
is not used in startx.py
https://github.com/allenai/ai2thor/issues/325#issuecomment-853924515_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created
by editing the command to run Xorg (added -nolisten unix
)So, it seems the problem is in having access to /dev/tty0
. This device is a virtual console that can be used for running a display. Only system and root users are allowed to write inside it. Moreover, if you run without --privileged
, it doesn't show up in /dev/ (I checked this locally). Also, when I tried to run Xorg inside a locally running container (launched with --privileged
), my display turned black, thus Xorg was successfully launched.
@TopCoder2K Thank you very much for taking the time to answer my questions
[3147052.780] (II) xfree86: Adding drm device (/dev/dri/card1) [3147052.781] (EE) systemd-logind: failed to take device /dev/dri/card1: Operation not permitted
[3147052.825] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
can the Xorg run without root permission?