diff --git a/run.sh b/run.sh index e3309bc..0f3b27e 100644 --- a/run.sh +++ b/run.sh @@ -9,15 +9,16 @@ # 1. launch X server sudo Xorg :0 & -sleep 2 # wait for the server gets ready +sleep 1 # wait for the server gets ready # 2. start x11 and vnc connection sudo x11vnc -display :0 -passwd pass -forever -rfbport 5900 --verbose & sleep 2 # wait for the server gets ready # 2.5 start audio -sudo pulseaudio --start -sleep 2 +# this is not required. +# sudo pulseaudio --start +# sleep 2 # 3. start noVNC sudo /noVNC-1.1.0/utils/launch.sh --vnc localhost:5900 --listen 8081 & diff --git a/server.sh b/server.sh index 08e8db2..6421b99 100644 --- a/server.sh +++ b/server.sh @@ -1,10 +1,11 @@ +#!/bin/bash docker build -t sim . - docker run --privileged -it --rm --gpus all \ -v $HOME/lgsvlsimulator-linux64-2019.11:/lg \ - -v $HOME/container-unity3d:/root/.config/unity3d \ + -v $HOME/container-unity3d-2:/home/autoware/.config/unity3d:rw \ -p 8081:8081 \ -p 8082:8082 \ + -e USER_ID=$(id -u) \ --name sim sim # 8081: noVNC port diff --git a/xorg.conf b/xorg.conf deleted file mode 100644 index f8eea6c..0000000 --- a/xorg.conf +++ /dev/null @@ -1,59 +0,0 @@ -# nvidia-xconfig: X configuration file generated by nvidia-xconfig -# nvidia-xconfig: version 410.104 - -Section "ServerLayout" - Identifier "Layout0" - Screen 0 "Screen0" - InputDevice "Keyboard0" "CoreKeyboard" - InputDevice "Mouse0" "CorePointer" -EndSection - -Section "Files" -EndSection - -Section "InputDevice" - - # generated from default - Identifier "Mouse0" - Driver "mouse" - Option "Protocol" "auto" - Option "Device" "/dev/mouse" - Option "Emulate3Buttons" "no" - Option "ZAxisMapping" "4 5" -EndSection - -Section "InputDevice" - - # generated from default - Identifier "Keyboard0" - Driver "kbd" -EndSection - -Section "Monitor" - Identifier "Monitor0" - VendorName "Unknown" - ModelName "Unknown" - HorizSync 28.0 - 33.0 - VertRefresh 43.0 - 72.0 - Option "DPMS" -EndSection - -Section "Device" - Identifier "Device0" - Driver "nvidia" - VendorName "NVIDIA Corporation" - BoardName "Tesla T4" - BusID "PCI:0:4:0" -EndSection - -Section "Screen" - Identifier "Screen0" - Device "Device0" - Monitor "Monitor0" - DefaultDepth 24 - Option "AllowEmptyInitialConfiguration" "True" - SubSection "Display" - Virtual 1280 1024 - Depth 24 - EndSubSection -EndSection