tightvncserver @raspberry

sudo apt-get install tightvncserver
tightvncserver   #設定密碼
sudo nano /etc/systemd/system/tightvncserver.service
[Unit]
Description=TightVNC Server
After=sshd.service

[Service]
Type=dbus
ExecStart=/usr/bin/tightvncserver :1
User=pi
Type=forking

[Install]
WantedBy=multi-user.target
$ sudo chown root:root /etc/systemd/system/tightvncserver.service
$ sudo chmod 755 /etc/systemd/system/tightvncserver.service
sudo systemctl enable tightvncserver.service   #開機啟動

發佈留言