1234567891011121314151617181920212223 |
- #!/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 1920x1080 -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
|