之前我在 Pi 3A+ 的 TF 卡燒錄 Raspberry Pi OS Buster, 發現因為內建 Python 3.7 實在太舊了, 許多套件例如 Selenium 都無法順利安裝, 且只有 512MB DRAM 跑 Desktop 效能不佳, 決定找另一張 32GB 卡來燒錄最新的 Raspberry Pi OS Trixie Lite (無桌面僅終端機介面), Trixie 內建 Python 3.13 夠新, 不用擔心套件安裝問題 :
燒錄完放進 Pi 3A+, 因為無桌面故不需要滑鼠, 只要鍵盤即可, 開機後會出現設定選單 :
- "Keyboard layout" : 要選最底下 Others 按 Enter.
- "Country of origin for the keyboard" : 選 English (US)
- "Please enter new username" : 設定新帳號 (例如 pi)
- "Please set a password for pi" : 設定登入密碼
然後會自動進入 raspi-config 設定畫面, 先進 1 System Options :
進入 S1 Wireless LAN :
輸入 SSID :
輸入基地台連線密碼 :
接下來會出現 "Select the country in which the Pi is to be used", 選 TW Taiwan 即完成 WiFi 設定.
進入 3 Interface Options :
進入 I1 SSH :
按 "是" 開啟 SSH :
進入 5 Localization Options :
進入 L1 Locale :
拉到最底下, 用 Space 鍵勾選 zh_TW.UTF-8 UTF-8 這項 :
選擇 zh_TW.UTF-8 按確定即完成 Locale 設定 :
進入 L2 Timezone :
選擇 Asia :
選擇 Taipei 按確定 :
進入 L3 Keyboard :
選擇 Generic 105-key PC :
選擇 English (US) :
鍵盤排列方式預設值 (The default for the keyboard layout) 選 "沒有 AltGr 鍵 (No AltGr key)"
組合鍵 (Compose key) 選 "沒有 Compose 鍵 (No compose key)" :
進入 L4 WLAN Country :
重開機 :
pi@pi3aplus:~ $ sudo reboot
用 ifconfig 檢視 IP :
pi@pi3aplus:~ $ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28522 bytes 3720832 (3.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28522 bytes 3720832 (3.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.50.235 netmask 255.255.255.0 broadcast 192.168.50.255
inet6 fe80::f11e:cbf7:f78f:3e21 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:28:c8:a0 txqueuelen 1000 (Ethernet)
RX packets 101300 bytes 42894353 (40.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 83033 bytes 8314390 (7.9 MiB)
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0
Ping 一下谷歌看看外網連線是否 OK :
pi@pi3aplus:~ $ ping google.com
PING google.com (142.250.196.206) 56(84) bytes of data.
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=1 ttl=115 time=11.8 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=2 ttl=115 time=11.8 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=3 ttl=115 time=13.5 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=4 ttl=115 time=13.9 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=5 ttl=115 time=10.7 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=6 ttl=115 time=15.3 ms
64 bytes from nctsaa-ac-in-f14.1e100.net (142.250.196.206): icmp_seq=7 ttl=115 time=13.2 ms
^C
--- google.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 10.706/12.892/15.285/1.431 ms
用 df -h 檢視 TF 卡容量是否已擴展 :
pi@pi3aplus:~ $ df -h
檔案系統 容量 已用 可用 已用% 掛載點
udev 74M 0 74M 0% /dev
tmpfs 84M 2.9M 81M 4% /run
/dev/mmcblk0p2 29G 2.5G 25G 10% /
tmpfs 209M 0 209M 0% /dev/shm
tmpfs 5.0M 12K 5.0M 1% /run/lock
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 209M 0 209M 0% /tmp
/dev/mmcblk0p1 510M 66M 445M 13% /boot/firmware
tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service
tmpfs 42M 8.0K 42M 1% /run/user/1000
標示 32GB 的 TF 實際上是 29GB, 可見已擴展.




























沒有留言 :
張貼留言