此文章用於把VNC設置成開機啟動,如此方法不行,則可以參考另一篇設置成開機服務的文章。
- Install the VNC server.
sudo apt-get install tightvncserver
- Launch
vncserver
for the first time to set up a password.vncserver :1
- Create a file as
/etc/init.d/vncserver
(be sure to modify the USER, GEOMETRY, NAME, etc.) -
sudo chmod +x /etc/init.d/vncserver
-
sudo update-rc.d vncserver defaults
以下是/etc/init.d/vncserver的內容: