gg@RaspberryPi:~ $ sudo apt update Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian bullseye InRelease Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-updates InRelease [44.1 kB] Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian bullseye-backports InRelease [49.0 kB] Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security InRelease Hit:5 https://mirrors.tuna.tsinghua.edu.cn/raspberrypi bullseye InRelease Fetched 93.0 kB in 2s (51.8 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date.
安装 hostapd
1 2 3 4 5 6
gg@RaspberryPi:~ $ sudo apt install hostapd Reading package lists... Done Building dependency tree... Done Reading state information... Done hostapd is already the newest version (2:2.9.0-21). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
gg@RaspberryPi:~ $ sudo vim /etc/hostapd/hostapd.conf
gg@RaspberryPi:~ $ sudo apt install dnsmasq Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: dnsmasq 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 32.0 kB of archives. After this operation, 120 kB of additional disk space will be used. Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian bullseye/main arm64 dnsmasq all 2.85-1 [32.0 kB] Fetched 32.0 kB in 0s (85.5 kB/s) Selecting previously unselected package dnsmasq. (Reading database ... 40686 files and directories currently installed.) Preparing to unpack .../dnsmasq_2.85-1_all.deb ... Unpacking dnsmasq (2.85-1) ... Setting up dnsmasq (2.85-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /lib/systemd/system/dnsmasq.service. gg@RaspberryPi:~ $ sudo systemctl stop dnsmasq