- #!/bin/sh -
- 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
- # -localhost
- vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp
- icewm
- vncserver -kill $DISPLAY
|