Joke Collection Website - Public benefit messages - Connect raspberry pie with mobile phone (no computer, only mobile phone)

Connect raspberry pie with mobile phone (no computer, only mobile phone)

The use of raspberry pie (hereinafter referred to as RPI) is often inseparable from computers. But for individual users or in some specific places. Mobile phones often occupy the main share of personal belongings. Therefore, it is of great significance to configure, control and use RPI with mobile phones.

Step 1: configure WIFI.

First, make sure that RPI has turned on SSH.

Method 1: Configure directly with your mobile phone.

Materials required:

1 mobile phone with OTG function

2Type-c to USB converter (depending on your phone interface)

3TF card reader

It can be seen that there are not many things needed and it is not very troublesome to operate.

We plug the TF card into the card reader first, then plug in the adapter, and finally connect the mobile phone. At this time, the mobile phone will automatically recognize it as an external memory. We now build a file named wpa_supplicant.conf in the root directory, which reads as follows:

Country =GB

ctrl _ interface = DIR =/var/run/wpa _ supplicant GROUP = netdev

update_config= 1

Network = {

Ssid= "Your Wifi name, pay attention to case"

Psk= "your Wifi password"

}

I use WPS to edit the text, and you can also use other text editing software to edit it.

After modifying the content, let's save it to TF card. But it may be in some people's mobile phones and cannot be directly stored in TF cards. We need to save it in the mobile phone first, change the file suffix, and then move it to the TF card.

In this way, our WIFI configuration is basically successful.

Note: RPI will be automatically deleted after it is started. It is recommended to re-open and configure WIFI from the mobile phone. The specific method is as follows:

blogs.com/mmzs/p/8867828.html

Just fill in the IP obtained in $ Termux.

Step 4: Contact VNC.

Required software:

1? VNC observer

Connect raspberry pie through SSH, and install tightvnc with sudo apt-get to obtain vnc software. The detailed configuration is as follows:

/article/6 18 1 C3 E0 df 7852 152 ef 15308 . html

But 590 1 is the first port in the connection port, that is, the port 1 prompted after opening in vnc is 590 1, and 2 is 5902.