這次我改回 32-BIT 版 OS :
下載下來的是 .xz 壓縮檔 2024-07-04-raspios-bookworm-armhf-full.img.xz (2.7 GB), 解壓縮後會得到 .img 映像檔 2024-07-04-raspios-bookworm-armhf-full.img (12 GB), 可見新版映像檔至少要 16GB 的 TF 卡才裝得下了.
先將 TF 卡插入 PC 的 USB 槽, 最好先用 SD Formatter 進行卡片格式化 (FAT32), 然後用 Win32 Disk Imager 把解壓縮好的 .img 映像檔燒錄到 SD 卡中.
燒錄完成將 TF 卡插回 Pi 3A+ 開機, 首先設定畫面要選擇國家 (Taiwan) 與時區 (Taipei), 不要勾選 Use English (介面會用英文), 但要勾選 Use American Keyboard (美式鍵盤):
設定登入帳號密碼 :
螢幕調整, 不需要就直接按 Next :
選取無線網路輸入密碼 :
選擇預設瀏覽器 (Chronium) :
啟用 Raspberry Pi Connect :
軟體更新 (約 20~30 分鐘) :
以上完成設定重新開機 :
但 Chronium 瀏覽器好慢啊! 感覺比以前的舊 Raspbian 要慢 (Pi 3A+ 記憶體太小). 基本上連到遠端桌面後只要不開瀏覽器, 只操作終端機與 Thonny 效能是還可以的.
但新版 Python 已提升到 v3.11.2, 且 python 已被連結至 Python 3 (以前 Buster 版是連結到 Python 2) :
tony1966@raspberrypi:~ $ python
Python 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
然後去 "偏好設定/Raspberry Pi 設定" 要開啟 SSH 與 VNC :
這樣就可以用 VNC Viewer 連線遠端桌面了.
以下是關於此 OS 的查詢 :
tony1966@raspberrypi:~ $ uname -a
Linux raspberrypi 6.6.31+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.31-1+rpt1 (2024-05-29) armv7l GNU/Linux
tony1966@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
tony1966@raspberrypi:~ $ cat /etc/issue
Raspbian GNU/Linux 12 \n \l
tony1966@raspberrypi:~ $ cat /etc/debian_version
12.1
tony1966@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
原來此版名稱為 Bookworm.
檢視已安裝之 Python 套件模組 :
tony1966@raspberrypi:~ $ pip list
Package Version
---------------------------------- -------------------------
appdirs 1.4.4
arandr 0.1.11
asgiref 3.6.0
astroid 2.14.2
asttokens 2.2.1
attrs 22.2.0
av 10.0.0
Babel 2.10.3
backcall 0.2.0
beautifulsoup4 4.11.2
blinker 1.5
Brotli 1.0.9
bytecode 0.14.0
certifi 2022.9.24
chardet 5.1.0
charset-normalizer 3.0.1
click 8.1.3
colorama 0.4.6
colorzero 2.0
contourpy 1.0.7
coverage 6.5.0
cryptography 38.0.4
cupshelpers 1.0
cycler 0.11.0
dbus-python 1.3.2
debugpy 1.6.3+git20221103.a2a3328
decorator 5.1.1
dill 0.3.6
distro 1.8.0
docutils 0.19
entrypoints 0.4
executing 1.2.0
Flask 2.2.2
fonttools 4.38.0
fs 2.4.16
gpiozero 2.0
guizero 1.4.0
html5lib 1.1
idna 3.3
importlib-metadata 4.12.0
ipykernel 6.17.0
ipython 8.5.0
ipython_genutils 0.2.0
isort 5.6.4
itsdangerous 2.1.2
jedi 0.18.2
Jinja2 3.1.2
jupyter_client 7.4.9
jupyter_core 4.12.0
kiwisolver 0.0.0
lazy-object-proxy 1.9.0
lgpio 0.2.2.0
libevdev 0.5
logilab-common 1.9.8
lxml 4.9.2
lz4 4.0.2+dfsg
MarkupSafe 2.1.2
matplotlib 3.6.3
matplotlib-inline 0.1.6
mccabe 0.7.0
meson 1.0.1
more-itertools 8.10.0
mpmath 0.0.0
mypy 1.0.1
mypy-extensions 0.4.3
nest-asyncio 1.5.4
nudatus 0.0.5
numpy 1.24.2
oauthlib 3.2.2
olefile 0.46
packaging 23.0
parso 0.8.3
pexpect 4.8.0
pgzero 1.2
picamera2 0.3.19
pickleshare 0.7.5
pidng 4.0.9
piexif 1.1.3
pigpio 1.78
Pillow 9.4.0
pip 23.0.1
platformdirs 2.6.0
prompt-toolkit 3.0.36
psutil 5.9.4
ptyprocess 0.7.0
pure-eval 0.0.0
py 1.11.0
pycairo 1.20.1
pycodestyle 2.10.0
pycryptodomex 3.11.0
pycups 2.0.1
pydevd 2.9.5
pyflakes 2.5.0
pygame 2.1.2
Pygments 2.14.0
PyGObject 3.42.2
pyinotify 0.9.6
PyJWT 2.6.0
pylint 2.16.2
PyOpenGL 3.1.6
pyOpenSSL 23.0.0
pyparsing 3.0.9
PyQt5 5.15.9
PyQt5-sip 12.11.1
pyserial 3.5
pysmbc 1.0.23
python-apt 2.6.0
python-dateutil 2.8.2
python-dotenv 0.21.0
python-prctl 1.8.1
pytz 2022.7.1
pyudev 0.24.0
pyzmq 24.0.1
QScintilla 2.13.3
qtconsole 5.4.0
QtPy 2.3.0
reportlab 3.6.12
requests 2.28.1
requests-oauthlib 1.3.0
responses 0.18.0
roman 3.3
RPi.GPIO 0.7.1a4
RTIMULib 7.2.1
scipy 1.10.1
semver 2.10.2
Send2Trash 1.8.1b0
sense-emu 1.2.2
sense-hat 2.6.0
setuptools 66.1.1
simplejpeg 1.6.6
simplejson 3.18.3
six 1.16.0
smbus2 0.4.2
soupsieve 2.3.2
spidev 3.5
ssh-import-id 5.10
stack-data 0.6.2
sympy 1.11.1
thonny 4.1.4
toml 0.10.2
tomlkit 0.11.7
tornado 6.2
traitlets 5.5.0
twython 3.8.2
types-aiofiles 22.1
types-annoy 1.17
types-appdirs 1.4
types-aws-xray-sdk 2.10
types-babel 2.11
types-backports.ssl-match-hostname 3.7
types-beautifulsoup4 4.11
types-bleach 5.0
types-boto 2.49
types-braintree 4.17
types-cachetools 5.2
types-caldav 0.10
types-certifi 2021.10.8
types-cffi 1.15
types-chardet 5.0
types-chevron 0.14
types-click-spinner 0.1
types-colorama 0.4
types-commonmark 0.9
types-console-menu 0.7
types-contextvars 2.4
types-croniter 1.3
types-cryptography 3.3
types-D3DShot 0.1
types-dateparser 1.1
types-DateTimeRange 1.2
types-decorator 5.1
types-Deprecated 1.2
types-dj-database-url 1.0
types-docopt 0.6
types-docutils 0.19
types-editdistance 0.6
types-emoji 2.1
types-entrypoints 0.4
types-first 2.0
types-flake8-2020 1.7
types-flake8-bugbear 22.10.27
types-flake8-builtins 2.0
types-flake8-docstrings 1.6
types-flake8-plugin-utils 1.3
types-flake8-rst-docstrings 0.2
types-flake8-simplify 0.19
types-flake8-typing-imports 1.14
types-Flask-Cors 3.0
types-Flask-SQLAlchemy 2.5
types-fpdf2 2.5
types-gdb 12.1
types-google-cloud-ndb 1.11
types-hdbcli 2.14
types-html5lib 1.1
types-httplib2 0.21
types-humanfriendly 10.0
types-invoke 1.7
types-JACK-Client 0.5
types-jmespath 1.0
types-jsonschema 4.17
types-keyboard 0.13
types-ldap3 2.9
types-Markdown 3.4
types-mock 4.0
types-mypy-extensions 0.4
types-mysqlclient 2.1
types-oauthlib 3.2
types-openpyxl 3.0
types-opentracing 2.4
types-paho-mqtt 1.6
types-paramiko 2.11
types-parsimonious 0.10
types-passlib 1.7
types-passpy 1.0
types-peewee 3.15
types-pep8-naming 0.13
types-Pillow 9.3
types-playsound 1.3
types-polib 1.1
types-prettytable 3.4
types-protobuf 3.20
types-psutil 5.9
types-psycopg2 2.9
types-pyaudio 0.2
types-PyAutoGUI 0.9
types-pycurl 7.45
types-pyfarmhash 0.3
types-pyflakes 2.5
types-Pygments 2.13
types-pyinstaller 5.6
types-PyMySQL 1.0
types-pynput 1.7
types-pyOpenSSL 22.1
types-pyRFC3339 1.1
types-PyScreeze 0.1
types-pysftp 0.2
types-pytest-lazy-fixture 0.6
types-python-crontab 2.6
types-python-dateutil 2.8
types-python-gflags 3.1
types-python-jose 3.3
types-python-nmap 0.7
types-python-slugify 6.1
types-pytz 2022.6
types-pyvmomi 7.0
types-pywin32 304
types-PyYAML 6.0
types-redis 4.3
types-regex 2022.10.31
types-requests 2.28
types-retry 0.9
types-Send2Trash 1.8
types-setuptools 65.5
types-simplejson 3.17
types-singledispatch 3.7
types-six 1.16
types-slumber 0.7
types-SQLAlchemy 1.4.43
types-stdlib-list 0.8
types-stripe 3.5
types-tabulate 0.9
types-termcolor 1.1
types-toml 0.10
types-toposort 1.7
types-tqdm 4.64
types-tree-sitter 0.20
types-tree-sitter-languages 1.5
types-ttkthemes 3.2
types-typed-ast 1.5
types-tzlocal 4.2
types-ujson 5.5
types-urllib3 1.26
types-vobject 0.9
types-waitress 2.1
types-whatthepatch 1.0
types-xmltodict 0.13
types-xxhash 3.0
types-zxcvbn 4.4
typing_extensions 4.4.0
uflash 1.2.4
ufoLib2 0.14.0
unicodedata2 15.0.0
urllib3 1.26.12
v4l2-python3 0.3.4
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 2.2.2
wheel 0.38.4
wrapt 1.14.1
wxPython 4.2.0
zipp 1.0.0
哇, 資料科學 numpy/pandas/matplotlib/scipy 與爬蟲的 requests/BeautifulSoup 都有了, 但缺 Selenium 與 Scrapy.
沒有留言 :
張貼留言