wpa_supplicant.conflinux
country=cn update_config=1 ctrl_interface=/var/run/wpa_supplicant network={ scan_ssid=1 ssid="MyNetworkSSID" psk="MyNetworkPassword" }
官方系統Raspbian:https://www.raspberrypi.org/downloads/raspbian/
刷寫工具Etcher:https://www.balena.io/etcher/
遠程鏈接PuTTY:https://www.putty.org
參考資料:http://www.thinkingcog.com/post/2017/12/23/setup-raspberry-pi-in-a-headless-mode.aspxwindows
樹莓派自帶的usb供電可能沒法供給比較耗電的設備,因此推薦準備好外部電源,好比雙公頭usb輔助供電,帶電源的usb-hub。
映射,樹莓派如今的系統都自動識別了,理論上的流程是:添加ntfs分區支持、查看硬盤分配標識、建立映射目錄、使用命令映射、自啓動映射。bash
linux服務所在目錄爲【/lib/systemd/system】網絡
建立aria2c的daemon服務session
cd /lib/systemd/system touch aria2.service nano aria2.service
修改文件【/lib/systemd/system/aria2.service】less
[Unit] Description=Aria2c download manager Requires=network.target After=dhcpcd.service [Service] Type=forking User=root RemainAfterExit=yes ExecStart=/usr/bin/aria2c --conf-path=/etc/aria2/aria2.conf --daemon ExecReload=/usr/bin/kill -HUP $MAINPID RestartSec=1min Restart=on-failure [Install] WantedBy=multi-user.target
修改文件【/etc/aria2/aria2.conf】ssh
# Daemonize, rpc and session save. # The daemon is launched by the rpc query and # stops when all downloads are completed. continue daemon=true on-download-complete=exit dir=/home/**youruser**/path/to/download/folder save-session=/home/**youruser**/.aria2/session input-file=/home/**youruser**/.aria2/session max-concurrent-downloads=99999 seed-ratio=0 max-connection-per-server=4 bt-save-metadata rpc-save-upload-metadata enable-rpc=true rpc-listen-all=true rpc-user=**youruser** rpc-passwd=**yourpassword** rpc-listen-port=**yourport** # should be same as in the upstart script