Closed jzhanson closed 3 years ago
Thanks @ybisk for helping me with this — the solution is not to try to install xorg
in the Dockerfile, but to install it inside the Docker container. For some reason, when running through sudo apt-get update
and then sudo apt-get install -y xorg
it shows the same languages prompt but in a prettier format and actually allows you to select things.
Then, you will have to run sudo python3 startx.py &
(if you don't use sudo
it will complain /usr/lib/xorg/ Xorg.wrap: Only console users are allowed to run the X server
, which you might be able to solve by changing /etc/X11/Xwrapper.config
, but then you have to change the -config
path, and it's more of a hassle than using sudo
in the Docker container).
If it gives the error
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
then you should run sudo python3 startx.py 1 &
instead so it starts x server on the display descriptor(?) 1 instead of 0, at which point you'll have to modify gen/constants.py
to have X_DISPLAY = 1
instead of X_DISPLAY = 0
.
Thanks @jzhanson. I added xserver-xorg
to install_deps.sh
. With DEBIAN_FRONTEND=noninteractive
, it shouldn't ask for the prompt.
Can I close this issue?
Great! Do you think pciutils
should also be added to the Dockerfile? That's the last thing I was holding out this issue on.
When I try to run
startx.py
inside the docker environment, it tells me that there's nolspci
command:This is because the Dockerfile doesn't install
pciutils
under theapt-get install
call. After adding that,startx.py
complains about not having Xorg:But when I add
xserver-xorg-core
andxorg
to theapt-get install
call in the Dockerfile,scripts/docker_build.py
prompts me for the keyboard layout and then freezes/hangs indefinitely:I've tried the inputs of "26", "English (US)", and "26. English (US)" but it freezes for all three of them.
ai2thor-docker doesn't have these problems and doesn't prompt for keyboard setup, despite also installing
xserver-xorg-core
andxorg
in its Dockerfile.Changing the first line of the ALFRED Dockerfile from
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
toFROM nvidia/cuda:11.0-devel-ubuntu18.04
as the ai2thor-docker does (and which I believe to be the correct versions for the machine I'm running on) doesn't seem to solve it.