startup.sh 295 B

123456789101112
  1. #!/bin/sh -
  2. export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
  3. mkdir -p $HOME/.vnc
  4. echo '' | vncpasswd -f >$HOME/.vnc/passwd
  5. chmod -R go= $HOME/.vnc
  6. # -localhost
  7. vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp
  8. ratpoison -f /ratpoisonrc
  9. vncserver -kill $DISPLAY