Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

树莓派4b安装raspios 官方x64系统[0]

Posted on 2023年11月14日 by

官方地址https://www.raspberrypi.org/software/operating-systems/

下载的系统默认是32位的。

  • 前置条件

1)下载镜像

但是官方是发布的64位系统的,下载地址:https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-08-24/

2)刷机

常见刷机工具见此

 

  • 开启SSH连接

依次打开 菜单(Menu) > 首选项(Preferences) > Raspberry Pi Configuration:

raspi-config
  • 连接wifi
yum install iw #安装无线管理 
iw dev wlan0 scan | grep SSID #显示无线ssid 
iw list #支持的网卡和频段 
nmcli dev wifi con "wifi名称" password "wifi密码" 
systemctl enable NetworkManager #开机启动
  • 关闭开启自动登陆
nano /etc/lightdm/lightdm.conf

添加或者注释掉如下内容:(pi是你的用户名)

[SeatDefaults]
autologin-user=pi
  • 开启VNC连接
raspi-config

  • 更新系统
apt-get update
apt-get dist-upgrade
  • 设置非root用户名
adduser yanmin 
passwd yanmin
nano /etc/sudoers

修改成:

root ALL=(ALL) ALL 
yanmin ALL=(ALL) ALL

禁用root登录

nano /etc/ssh/sshd_config

PermitRootLogin yes修改为PermitRootLogin no

  • 设置有线网卡为静态ip
nano /etc/dhcpcd.conf

文档结尾添加

interface eth0
static ip_address=192.168.1.177/24
static router=192.168.1.1
  • 禁止pi用户登录
usermod -L pi
  • 补充说明:

1)其他各种树莓派的系统

https://make.quwj.com/member/2/bookmarks?category=37

2)无线网络速度

本地pc速度

经过树莓派的速度

3)清华更新源

nano /etc/apt/sources.list

添加如下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

 

参考资料:

  1. https://www.jianshu.com/p/654ee08d2b3a
  2. https://zhuanlan.zhihu.com/p/66735155
  3. https://blog.csdn.net/bajiaoyan5785/article/details/101083869
  4. https://shumeipai.nxez.com/2018/08/31/raspberry-pi-vnc-viewer-configuration-tutorial.html

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT