Bullshits around...
此文章用於把VNC設置成開機服務。
1. Install Tight VNC server:
sudo apt-get install tightvncserver
2. Start it manually and enter new VNC password.
vncserver :1
3. Create a new file /etc/systemd/system/vncserver@.service
4. (Optional) Replace the parameters in the unit file, if you want to.
5. Run
sudo systemctl daemon-reload && sudo systemctl enable vncserver@1.service
6. Reboot.
以下是/etc/systemd/system/vncserver@.service的內容:
此文章用於把VNC設置成開機啟動,如此方法不行,則可以參考另一篇設置成開機服務的文章。
sudo apt-get install tightvncserver
vncserver
for the first time to set up a password.
vncserver :1
/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的內容: