篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Raspberry Pi 3 VNC相关的知识,希望对你有一定的参考价值。
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
ssh YOUR_IP -l pi
TYPE YOUR PASSWORD
sudo apt-get update
sudo apt-get install tightvncserver
vncserver :1
WHEN YOU INTSALL VNC YOU WILL BE ASKED TO CHOOSE A PASSWORD, USE IT TO LOG IN VNC
sudo apt-get install netatalk
sudo apt-get install avahi-daemon
sudo update-rc.d avahi-daemon defaults
sudo nano /etc/avahi/services/afpd.service
ADD THIS CODE IF THE FILE IS EMPY OR REPLACE IF THERE IS SOMETHING:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_rfb._tcp</type>
<port>5901</port>
</service>
</service-group>
sudo /etc/init.d/avahi-daemon restart
sudo reboot
### EVERY TIME AFTER YOU SWITCH YOUR RASPI OFF ###
1) sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
RETURN RASPBERRY IP
2) ssh YOUR_IP -l pi
TYPE YOUR PASSWORD
3) vncserver
TO LOAD VNC SERVER
4)sudo /etc/init.d/avahi-daemon restart
以上是关于text Raspberry Pi 3 VNC的主要内容,如果未能解决你的问题,请参考以下文章