blob: bba1ef2b178d1caece7fde3a2e90414967131c08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh -
set -x
export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
mkdir -p $HOME/.vnc
echo '' | vncpasswd -f >$HOME/.vnc/passwd
chmod -R go= $HOME/.vnc
vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp
#ratpoison & wm=$!
icewm & wm=$!
waterfox --headless &
waterfox=$!
sleep 2
kill -HUP $waterfox
mv handlers.json /root/.waterfox/*.default/
wait $wm
vncserver -kill $DISPLAY
|