forked from wwek/kaliweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.sh
More file actions
29 lines (21 loc) · 693 Bytes
/
startup.sh
File metadata and controls
29 lines (21 loc) · 693 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
#!/bin/bash
novncroot="/root/noVNC/"
indexhtml="index.html"
echo $novncroot$indexhtml
if [ ! -f "$novncroot$indexhtml" ];then
ln -s $novncrootvnc_auto.html $novncroot$indexhtml
fi
export DISPLAY=:1
Xvfb :1 -screen 0 1600x900x16 &
sleep 5
#openbox-session&
xfce4-session&
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
cd $novncroot && ./utils/launch.sh --vnc localhost:5900
# export DISPLAY=:1
# Xvfb :1 -screen 0 1600x900x16 &
# sleep 5
# #openbox-session&
# xfce4-session&
# x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
# cd /root/noVNC && ln -s vnc_auto.html index.html && ./utils/launch.sh --vnc localhost:5900