树莓派3B+ubunt server配置WiFi
生活随笔
收集整理的這篇文章主要介紹了
树莓派3B+ubunt server配置WiFi
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
基于樹莓派的ubuntu server系統默認是沒有開啟WiFi的,如果想要在ubuntu下使用樹莓派的WiFi功能就必須要手動配置。
ssid表示無線的名稱,psk表示無線的密碼,無線密碼有兩種表示方式,一種是明文的密碼,一種是加密后的十六進制數據,兩種表示方式均可
5. 手動配置使配置生效
此時如果我們執行systemctl enable rc-local.service命令會報如下錯誤:
The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to be enabled using systemctl.Possible reasons for having this kind of units are: ? A unit may be statically enabled by being symlinked from another unit's.wants/ or .requires/ directory. ? A unit's purpose may be to act as a helper for some other unit which hasa requirement dependency on it. ? A unit may be started when needed via activation (socket, path, timer,D-Bus, udev, scripted systemctl call, ...). ? In case of template units, the unit is meant to be enabled with someinstance name specified.執行成功后會有提示:
Created symlink /etc/systemd/system/multi-user.target.wants/rc-local.service → /lib/systemd/system/rc-local.service.如果沒有提示說明之前已經啟動過該服務。
11. 設置開機啟動
第一條命令如果不執行可能出現如下錯誤:
Warning: The unit file, source configuration file or drop-ins of rc-local.service changed on disk. Run 'sys> ● rc-local.service - /etc/rc.local CompatibilityLoaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)Drop-In: /usr/lib/systemd/system/rc-local.service.d└─debian.confActive: failed (Result: exit-code) since Wed 2021-05-26 11:45:53 UTC; 5min agoDocs: man:systemd-rc-local-generator(8)Process: 2241 ExecStart=/etc/rc.local start (code=exited, status=203/EXEC)May 26 11:45:53 ubuntu systemd[1]: Starting /etc/rc.local Compatibility... May 26 11:45:53 ubuntu systemd[2241]: rc-local.service: Failed to execute command: Exec format error May 26 11:45:53 ubuntu systemd[2241]: rc-local.service: Failed at step EXEC spawning /etc/rc.local: Exec fo> May 26 11:45:53 ubuntu systemd[1]: rc-local.service: Control process exited, code=exited, status=203/EXEC May 26 11:45:53 ubuntu systemd[1]: rc-local.service: Failed with result 'exit-code'. May 26 11:45:53 ubuntu systemd[1]: Failed to start /etc/rc.local Compatibility.成功后會出現如下內容:
● rc-local.service - /etc/rc.local CompatibilityLoaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)Drop-In: /usr/lib/systemd/system/rc-local.service.d└─debian.confActive: active (exited) since Wed 2021-05-26 12:05:56 UTC; 2min 8s agoDocs: man:systemd-rc-local-generator(8)Tasks: 0 (limit: 973)CGroup: /system.slice/rc-local.serviceMay 26 12:05:56 ubuntu systemd[1]: Starting /etc/rc.local Compatibility... May 26 12:05:56 ubuntu rc.local[1694]: Successfully initialized wpa_supplicant May 26 12:05:56 ubuntu rc.local[1694]: Failed to open config file '/etc/wpa_supplicant.conf', error: No suc> May 26 12:05:56 ubuntu rc.local[1694]: Failed to read or parse configuration '/etc/wpa_supplicant.conf'. May 26 12:05:56 ubuntu systemd[1]: Started /etc/rc.local Compatibility.總結
以上是生活随笔為你收集整理的树莓派3B+ubunt server配置WiFi的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 大学生专业计算机培训心得,计算机专业学习
- 下一篇: 快速提取视频中的文案字幕,短视频创作者必