Files
vagex/vnc.sh

6 lines
208 B
Bash
Raw Normal View History

2016-10-18 15:25:44 +08:00
#!/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