香橙派玩转Linux 篇一:OrangPi Zero 2W开箱使用
前言
年后工作上需要对客户的电子上料清单(BOM)进行批量处理,并且转换成我们自己的格式。通过研究学习可以使用Pandas工具对Excel表格数据处理,功能十分强大。由于Pandas是Python第三方库,然后入手了树莓派5,项目完成后为了研究国产派又入手了OrangePi Zero 2W,顺便研究了香橙派安装树莓派Pico的SDK,又移植了FreeRTOS。本系列的宗旨记录学习的过程,另外也希望更多人加入国产派开发的行列。
一、开发板的介绍
香橙派作为国产派,相关配套做得很不错的厂家。既有各种档次的开发板又有适配的镜像,最好的是有中文的开发文档。
更多内容请参考香橙派官方网站:
二、开发板写入镜像、换源
在Windows上使用BalenaEtcher,选择Debian12香橙派官方镜像,注意不能直接用Debian的镜像,要用香橙派适配的。用户手册第二章有详细说明。
可选镜像自带镜像是华为源,需要更换中科大源提高速度。请注释掉deb-src以提高apt获取速度。
sudo nano /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
sudo apt update
sudo apt upgrade
三、开启VNC和Nomachine远程登陆
不建议使用VNC,这里有个bug就是每次重启都要设置一遍,建议用Nomachine
VNC设置:
sudo set_vnc.sh
NoMachine的安装在用户手册写的很详细,Windows和香橙派都装好了,但里面对香橙派的NoMachine设置没有提。需设置自动连入,不用再进Debian点那个接受按钮。
show main window->Settings->Security把下面的截图的勾打上。
四、禁用桌面和重新打开桌面的方法(可选)
对于高手直接就用服务器版镜像,建议新手使用桌面环境,香橙派zero 2w没有宣传的那个高性能,那个A53是armV8架构,最快1.5GHz只是够用而已!
禁用桌面命令:
sudo systemctl disable lightdm.service
sudo reboot
打开桌面环境:
sudo systemctl start lightdm.service
sudo systemctl enable lightdm.service
五、给香橙派装进壳子里
论性价比选择香橙派zero2W不如选择zero3,选择zero3不如选N1,但香橙派zero2W的壳子可以用树莓派zero2W的壳子,稍微削下typeC那里就能用,其他尺寸完全一致
和树莓派Zero2W合影完成最后附上购买信息:
作者声明本文无利益相关,欢迎值友理性交流,和谐讨论~
哈利波特别特别大
校验提示文案
值友2228578377
校验提示文案
值友2228578377
校验提示文案
哈利波特别特别大
校验提示文案