diff --git a/Dockerfile b/Dockerfile index 3765da1..0338020 100644 --- a/Dockerfile +++ b/Dockerfile @@ -184,10 +184,10 @@ # novnc # download websockify as well -RUN wget https://github.com/novnc/noVNC/archive/v1.1.0.zip && \ - unzip -q v1.1.0.zip && \ - rm -rf v1.1.0.zip && \ - git clone https://github.com/novnc/websockify /noVNC-1.1.0/utils/websockify && \ +RUN wget https://github.com/novnc/noVNC/archive/v1.2.0.zip && \ + unzip -q v1.2.0.zip && \ + rm -rf v1.2.0.zip && \ + git clone https://github.com/novnc/websockify /noVNC-1.2.0/utils/websockify && \ sudo dpkg-reconfigure lightdm # Xorg segfault error # dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory) diff --git a/run.sh b/run.sh index 8db54bf..d40b78f 100755 --- a/run.sh +++ b/run.sh @@ -3,7 +3,7 @@ # 0. generate xorg.conf BUS_ID=$(nvidia-xconfig --query-gpu-info | grep 'PCI BusID' | sed -r 's/\s*PCI BusID : PCI:(.*)/\1/') -nvidia-xconfig -a --virtual=$RESOLUTION --allow-empty-initial-configuration --enable-all-gpus --busid $BUS_ID --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0" +nvidia-xconfig -a --virtual=$RESOLUTION --allow-empty-initial-configuration --enable-all-gpus --busid $BUS_ID --use-display-device="DFP-0" --connected-monitor="DFP-0" # 1. launch X server Xorg :0 & @@ -20,7 +20,7 @@ # sleep 2 # 3. start noVNC -/noVNC-1.1.0/utils/launch.sh --vnc localhost:5900 --listen 8081 & +/noVNC-1.2.0/utils/launch.sh --vnc localhost:5900 --listen 8081 & sleep 2 echo 'running noVNC at http://docker_ip:6080/vnc_lite.html' diff --git a/server.sh b/server.sh index 484a3ef..1c301be 100755 --- a/server.sh +++ b/server.sh @@ -15,8 +15,7 @@ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=all \ -e QT_X11_NO_MITSHM=1 \ - -e SDL_VIDEODRIVER=offscreen \ - -e DISPLAY=172.17.0.2:0.0 \ + -e SDL_VIDEODRIVER=x11 \ -e VNCPASS=pass \ -e RESOLUTION=1920x1080 \ --shm-size=1gb \