forked from allenai/ai2thor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·30 lines (27 loc) · 728 Bytes
/
start.sh
File metadata and controls
executable file
·30 lines (27 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
cat << EOF > /root/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "$AI2THOR_DEVICE_BUSID"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
SubSection "Display"
Depth 24
Virtual 1024 768
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
EndSection
EOF
Xorg -noreset -logverbose -logfile xorg.log -config /root/xorg.conf :0&
sleep 1
# x11vnc -display :0 -rfbauth /root/.vnc/passwd&
DISPLAY=:0.0 $AI2THOR_COMMAND