-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
raspberry-pi-imager
scoop install raspberry-pi-imager
Select board type & os, then flash sd card.
apt mirrors
sudo cp -f /etc/apt/sources.list /etc/apt/sources.list.bak
sudo tee /etc/apt/sources.list << 'EOF'
deb https://mirrors.bfsu.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.bfsu.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.bfsu.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.bfsu.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.bfsu.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
EOF
sudo apt update && sudo apt upgrade
samba & tftp
sudo apt update
sudo apt install samba samba-common-bin smbclient cifs-utils
cd ~
mkdir shared
chmod 0740 shared
sudo smbpasswd -a rpi
sudo tee -a /etc/samba/smb.conf << 'EOF'
[shared]
path = /home/rpi/shared
writable = yes
browsable = yes
public = yes
create mask = 0777
max connections = 10
EOF
sudo sed -i '/map to guest = bad user/s/^/# /' /etc/samba/smb.conf
sudo systemctl restart smbd
# trouble shoot
rm -rf /var/log/samba/log.smbd
sudo rm -rf /var/lib/samba/registry.tdb
Install fzf/zellij/zoxide
Download them from windows side
scp fzf zellij zoxide rpi@impcas-ioc-rpi4-001.local:shared/
Or just use samba on windows side.
Install nvim
sudo apt update
sudo apt install snapd
sudo reboot
sudo snap install snapd
sudo snap install --classic nvim
rc-local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>IP address is %s\n" "$_IP"
fi
### add your commands here ###
# keep this line
exit 0
uv & python
sudo apt-get install libffi-dev libjpeg-dev zlib1g-dev
curl -LsSf https://astral.sh/uv/install.sh | sh
source ~/.bashrc
uv python list
uv python install cpython-3.13.0+freethreaded-linux-aarch64-gnu
uv python install cpython-3.12.7-linux-aarch64-gnu
uv python install cpython-3.11.10-linux-aarch64-gnu
cat > ~/.config/uv/uv.toml << 'EOF'
index-url = "https://mirrors.bfsu.edu.cn/pypi/web/simple"
EOF
rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh