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