Raspberry Pi system installation 4B

	近期因工作要求在使用树莓派实现一些数据的回收,因此开始接触树莓派。大学时只是听说过树莓派,并没有深入了解过。通过接触发现树莓派很神奇,很强大。下面写一点自己所使用时的方法,希望自己能够养成写笔记的习惯,也希望可以帮到需要帮助的人。新人报道,写的不好勿喷,如有错误,欢迎指出。共同交流共同进步。

1. Introduction The board
first said it, I bought a raspberry pie 4B + 4G. (Currently the highest version of it). For this kind of thing still prefer less expensive one step, if you want or need to consider the costs for the production of ah. Man of few words said, that is entered.
2. Download the system
to go to the official website to download the latest system. Open official website: [Raspberry Pi official website] (https://www.raspberrypi.org/) see the following picture
Here Insert Picture Description
point Downloads, see the following picture Here Insert Picture Description
on the left is a display screen looks like this NOOBS an automatic system installed, for me this no screen players can only obediently choose the right Raspbian of. You will see the following
Here Insert Picture Description
good English can see the above description, like me a bad English translation can only copy it. There is, I think I was the highest version, and certainly the largest download Size ah, because there is a small little bad, a great big good. Haha. (See their specific needs it) Anyway, I downloaded the greatest.
After the download, unzip
Here Insert Picture Description
3. Installation System
Now you are ready to install the system, prepare a memory card (preferably a brand, fast, and recommended a more prepared, we will discuss the following reasons, the painful experience ah)
with this software Win32DiskImager. exe (too lazy to look for can find me, if I last wrote I have not forgotten to come up with its own cloud-connected disk download, but I did not mind, forget not blame me)
Here Insert Picture Description
before programming the system, it is recommended to format the memory card recommended format as FAT32 is. The software then opens above
Here Insert Picture Description
to select just extract the system, select the corresponding letter. Select the corresponding letter. Select the corresponding letter. Then write. Well, wait for completion. Every time I write about in between 8-9min.
So you can see my painful experience it. Home near the small mobile phone shop to buy a memory card (16G), to 40 yuan, definitely not worth ah. SanDisk also not so expensive ah. The final 30 yuan to buy. Regret might as well not sell it to me, too slow, and always stuck. There is a suggestion to play raspberry pie, when not remove the card or the board installed. Because of my carelessness, certainly too many people rush subway, my memory card is broken, cracked a mark. Cause how I can not log in, it was found that for this reason, decisive downstairs to buy cards, I remember the day before a world of snow. The company downstairs do not know how to sell cards. Finally, I asked several security uncle to find. 16G card to me 80 yuan. I urgently have wooden way. (Remember Wudaokou there's a large supermarket selling mobile phone accessories). Decisively back to the company bought two online backup. On Tucao to this, we proceed to the next process.
Here you should be prepared to start it. If you are connecting to a wired network, you do not need too much configuration. Directly on the on the line. But if it is a wireless network, you need to configure two files, to be able to connect to wireless.
Here Insert Picture Description
Which, wpa_supplicant.conf need to configure the contents inside

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={	
         ssid="ysh_test"
         psk="12345678"	
         key_mgmt=WPA-PSK	
         priority=1
}

ssid为WIFI名,psk为密码。当然你也可以按照这种格式多设定几个账号密码,这样换了地方也不用更改了,方便省事了。把常用的设置为 priority=1,其次的是 priority=2。是不很方便。
插卡开机就可以操作树莓派了。
4.远程登入
写到这已经到了下班时间啦。由于是疫情(2020年春节后)期间在家办公。喝杯格瓦斯,继续写啦。由于没有屏幕咱们只能借助电脑来个远程登入呗。首先要知道树莓派IP。打开运行,输入cmd,然后输入arp -a。查看树莓派对应的IP。如果不知道哪个是又不想一个个尝试。还有很多种方法,我这简单说一个,就是手机开热点,让树莓派连接上,手机上会显示出树莓派的物理地址,对应物理地址找IP。
这时候需要这个软件了putty,看下图
Here Insert Picture Description
打开该软件,如下图
Here Insert Picture Description
如果你没有登入过设置过应该不会有下面pi和pi2。在Host Name输入上刚刚查的IP,port22,SSH。点击Open就可以了。然后会弹出界面
Here Insert Picture Description
选择否和是,我试着都行。自己可以查查什么意思。根据自己想要的来选择。然后就会让你输入账户和密码了。树莓派账户默认是:pi,密码默认是:raspberry。但是输入密码不会显示出来,错了就重新输入。输入正确了然后在输入sudo apt-get install xrdp,这个是安装xrdp界面。等待安装完成即可。这时候就可以用电脑远程登入了。
打开运行,输入mstsc.exe。点击确定,然后对应的界面输入IP
Here Insert Picture Description
点击链接,出现下图

Here Insert Picture Description
输入账户和密码(默认pi和raspberry),出现树莓派界面
Here Insert Picture Description
我的界面是因为我已经操作过别的啦。
到此算是安装完成啦,不过要想更好地使用树莓派。还需要安装一些别的配置,比如输入法,中文显示等。别急一步一步来,虽然下班时间啦,我肯定也要写完的。
5.安装中文环境
树莓派界面打开终端,也就是这灰色方块
Here Insert Picture Description
然后输入sudo raspi-config
Here Insert Picture Description
选择4,然后Tab键,选择Select,再回车键。
Here Insert Picture Description
再选择第一个,再Tab键,选择Select,再回车键。
Here Insert Picture Description
往下找。用空格键选择这几个打上星号。然后确定。
Here Insert Picture Description
选择zh_CN.UTF - 8,然后确定等待安装完成。
Here Insert Picture Description
到此中文环境就安装完成了。
安装输入法6和7自己选择性操作,个人更加倾向于7。
6.安装中文输入法(scim输入法)
在终端输入sudo apt-get install scim-pinyin。中途可能需要输入Y,输入即可。等待安装完成。然后输入scim,可以查看安装的版本以及是否安装完成。最后重启即可sudo reboot。
7.安装中文输入法Fcitx以及coogle输入法
在终端输入sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin,安装完成重启即可sudo reboot。

Conclusion: first write to you today, for the first time to write this, badly written, please understand. There are places do not understand, please leave a message, please indicate the wrong place, do not spray, thank you.
Attached below the cloud disk is connected, there is a need to download.
[Connection] network disk
link: https: //pan.baidu.com/s/1SKXkGEaWAYMuwr6cGsadcw
extraction code: 7dcv

Published an original article · won praise 0 · Views 11

Guess you like

Origin blog.csdn.net/qq_34529861/article/details/104250415