mn9206986 commited on
Commit
6565823
·
verified ·
1 Parent(s): 559721b

Update chrome-novnc.sh

Browse files
Files changed (1) hide show
  1. chrome-novnc.sh +0 -7
chrome-novnc.sh CHANGED
@@ -1,16 +1,9 @@
1
  #!/bin/bash
2
- export USER=nobody
3
  chrome_window_size=$[$WIDTH+1],$[$HEIGHT+1]
4
  chrome_parm="--test-type --window-size=$chrome_window_size --no-sandbox --window-position=0,0 --user-data-dir=$HOME/google-chrome"
5
  vnc_geometry=$WIDTH'x'$HEIGHT
6
  vnc_config=$VNC_DIR
7
 
8
- # Tạo thư mục google-chrome nếu chưa có
9
- [ ! -e "$HOME/google-chrome/First Run" ] && mkdir -p "$HOME/google-chrome" && touch "$HOME/google-chrome/First Run"
10
-
11
- # Kiểm tra và tạo thư mục VNC nếu chưa có
12
- [ ! -e "$vnc_config" ] && mkdir -p "$vnc_config"
13
-
14
  # Khởi động VNC server
15
  vncserver -kill :1 1>/dev/null 2>&1
16
  vncserver -name chrome-novnc -depth 24 -geometry "$vnc_geometry" :1 -rfbauth "$vnc_config/passwd"
 
1
  #!/bin/bash
 
2
  chrome_window_size=$[$WIDTH+1],$[$HEIGHT+1]
3
  chrome_parm="--test-type --window-size=$chrome_window_size --no-sandbox --window-position=0,0 --user-data-dir=$HOME/google-chrome"
4
  vnc_geometry=$WIDTH'x'$HEIGHT
5
  vnc_config=$VNC_DIR
6
 
 
 
 
 
 
 
7
  # Khởi động VNC server
8
  vncserver -kill :1 1>/dev/null 2>&1
9
  vncserver -name chrome-novnc -depth 24 -geometry "$vnc_geometry" :1 -rfbauth "$vnc_config/passwd"