THED1 commited on
Commit
02f1b5e
·
verified ·
1 Parent(s): 1e83bbd

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +14 -2
start.sh CHANGED
@@ -1,6 +1,18 @@
1
  #!/bin/bash
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  vncserver :1 -geometry 1280x720 -depth 24
4
 
5
- websockify --web=/usr/share/novnc/ 7860 localhost:5901 &
6
- tail -f /dev/null
 
 
1
  #!/bin/bash
2
 
3
+ mkdir -p ~/.vnc
4
+
5
+ cat > ~/.vnc/xstartup <<EOF
6
+ #!/bin/sh
7
+ unset SESSION_MANAGER
8
+ unset DBUS_SESSION_BUS_ADDRESS
9
+ startxfce4 &
10
+ EOF
11
+
12
+ chmod +x ~/.vnc/xstartup
13
+
14
  vncserver :1 -geometry 1280x720 -depth 24
15
 
16
+ sleep 5
17
+
18
+ websockify --web=/usr/share/novnc/ 7860 localhost:5901