startup.sh 416 B

1234567891011121314151617181920212223
  1. #!/bin/sh -
  2. set -x
  3. export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
  4. mkdir -p $HOME/.vnc
  5. echo '' | vncpasswd -f >$HOME/.vnc/passwd
  6. chmod -R go= $HOME/.vnc
  7. vncserver $DISPLAY -geometry 1920x1080 -depth 16 -nolisten tcp
  8. #ratpoison & wm=$!
  9. icewm & wm=$!
  10. waterfox --headless &
  11. waterfox=$!
  12. sleep 2
  13. kill -HUP $waterfox
  14. mv handlers.json /root/.waterfox/*.default/
  15. wait $wm
  16. vncserver -kill $DISPLAY