text Raspberry Pi 3 VNC

Posted

tags:

篇首语:本文由小常识网(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的主要内容,如果未能解决你的问题,请参考以下文章

text Raspberry Pi 3 wpa-supplicant文件

Raspberry PI 和 Mac OSx 之间的屏幕共享 [关闭]

text 在Raspberry PI #linux上安装Golang

text 在Raspberry Pi上安装node和npm

VNC远程登陆树莓派3(包括开机启动)

text 一个很棒的命令列表,可以为Raspberry Pi提取非常有用的系统信息。就个人而言,我喜欢在我的.bashrc文件中添加很多内容