Some problems with Raspberry Pi

During the two-month internship period, I went to the company for an internship during the day and returned to the laboratory to study the Raspberry Pi at night. Finally easy to get started. To make a summary.

Table of contents

1. WiFi problem 

Raspberry Pi wifi connection

2.vnc Raspberry Pi desktop problem

3. When installing a library or downloading something, the domain name cannot be resolved.

4. When installing or operating, it prompts that some processes are occupied and locked

5. Install the pit of opencv-python

6. The serial port cannot be opened

7. The fixed static IP address disappears, and it will appear after a while (repeat the operation after restarting the computer)


1. WiFi problem 

Raspberry Pi wifi connection

At first I thought about doing wireless, but it took me a long time to connect to wifi. Later, after a period of time, I found that if I want to connect to wifi, I must first connect the network cable, and then connect to wifi, which is very troublesome, so I don't usually use it.

2.vnc Raspberry Pi desktop problem

When using the camera, the VNC turns black. Modifying the resolution seems to be able to solve it, but sometimes I can’t solve it. I don’t know why, and then I have to putty to open VNC every time.

Then run the code in the compiler that comes with VNC, it cannot run, and an error warning is reported, but the same code can run on MobaXterm.

When connected to wifi, there is no wifi icon on the desktop. Wait for the question, I really complain that VNC is really ****.

It is recommended to use MobaXterm to log in to SSH, it is super easy to use! ! !

3. When installing a library or downloading something, the domain name cannot be resolved.

The problem looks like this:

 Modify the interface file, (I thought it was a source problem, but it still didn't work after changing 4, 5, 6, and 7 sources in a row).

Then it will work.

 

4. When installing or operating, it prompts that some processes are occupied and locked

 Delete the process directly, and then re-operate, on the line, I did not find any other effects.

5. Install the pit of opencv-python

 When installing, many tutorials found on the Internet teach you to recompile and install. It is impossible to compile to 100 at once, unless your library, your source, and your installation package are very suitable. However this is impossible for me. Good luck, three or four common mistakes can be found on the Internet, but bad luck, no one has solved the mistake, and if you don’t understand it, just G it.

The best way is not to compile and install, but to install the version compiled by others directly, isn't it delicious? (See others teach you how to compile and go directly to the next one)

6. The serial port cannot be opened

 serial.serialutil.SerialException: [Errno 13] Unable to open port /dev/ttyAMA0: [Errno 13] Permission denied: '/dev/ttyAMA0'

 Enter sudo chmod a+rw /dev/ttyAMA0 to solve it.

sudo chmod a+rw /dev/ttyAMA0

7. The fixed static IP address disappears, and it will appear after a while (repeat the operation after restarting the computer)

A very strange problem. I gave my students the Raspberry Pi. Either they couldn’t find the IP or they couldn’t log in to the Raspberry Pi after connecting to the network.

Then when I reused it for myself, the static IP of the fixed network cable disappeared! Then I checked again, but I couldn't find it, and then I checked it the next day, but the IP address was changed, and after the computer was turned off, it disappeared again, and then it was OK again after a 'period'.

How to deal with it:

Open Network and Internet→Change Adapter Options→WLAN Properties→Sharing

First cancel Allow other network users to connect through this computer's Internet connection (N) 

Then you can check the IP address again immediately after ✔.

In summary, the Raspberry Pi has encountered too many problems that I don’t know why. Many of them are good at first, but suddenly they don’t work, which makes me very uncomfortable. It is a pity that some were not recorded. It may also be that I am just getting started and I am not very good at using Raspberry Pi. I hope that everyone will sum up together and leave a few experiences.

Guess you like

Origin blog.csdn.net/qq_51679917/article/details/130677707