Files
vagex/vnc.sh
岳松 2ebf4e8d9b dix
2016-10-18 15:25:44 +08:00

6 lines
208 B
Bash

#!/bin/bash
# Remove VNC lock (if process already killed)
rm /tmp/.X1-lock /tmp/.X11-unix/X1
# Run VNC server with tail in the foreground
vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log