Config Raspi after Reinstallation

Download system and write disk 64-bit Raspi images 64-bit Full Raspi images Enable SSH create empty file named ssh under the disk named boot Connecting wifi for the 1st time create wpa_supplicant.conf under disk named boot, write followings: country=CN ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="<wifi name>" psk="<wifi passwd>" key_mgmt=WPA-PSK } then, plug the SD card to pi and start the pi. You should be able to connect to Pi using SSH....

January 29, 2022 · 1 min · Andyliu


更换为清华镜像源,参考清华Raspbian 镜像使用帮助 对于Debian 11 (bullseye): # 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代: deb [arch=armhf] bullseye main non-free contrib rpi deb-src bullseye main non-free contrib rpi # 如果需要 arm64 软件源,在 `/etc/apt/sources.list` 中加上 deb [arch=arm64] bullseye main # 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代: deb bullseye main 保存后运行sudo apt-get update 运行后出现 W: GPG error: bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E 需要手动添加公钥:sudo apt-key adv --keyserver keyserver....

January 29, 2022 · 1 min · Andyliu

Linux 学习随记

开启root账户并配置SSH登录 修改root密码 sudo passwd root 修改SSH配置 sudo vi /etc/ssh/sshd_config 找到选项PermitRootLogin,将其前面的#去掉,即可使用SSH登录。若将后面的prohibit-password改为yes则可使用密码登录。 如果不选择密码登录,还需要通过其他账户登录,将authorized_keys复制到root账户的.ssh文件夹/root/.ssh下 Minutiae 使用taskset命令限定Linux下CPU逻辑核的使用对象及个数 linux下如何查看多核负载情况 LINUX下查看CPU使用率的命令

November 25, 2021 · 1 min · Andyliu