notes.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. System: Arch on raspberry pi
  2. modprobe r8188eu to recognize the adapter
  3. WPA setup:
  4. Create /etc/wpa_supplicant/wpa.conf file
  5. #/etc/wpa_supplicant/wpa.conf
  6. ctrl_interface=/run/wpa_supplicant
  7. update_config=1
  8. wpa_passphrase <ssid> [passphrase] >> /etc/wpa_supplicant/wpa.conf ##appends wpa info to wpa.conf
  9. ex.:
  10. network={
  11. ssid="SSID"
  12. #psk="NetworkPassword"
  13. psk=Long key generated by wpa_passphrase ## Will not be in quotes
  14. }
  15. Bash script to start wireless networking:
  16. Location: /usr/local/bin/networkstart.sh
  17. #!/bin/bash
  18. ip link set wlan0 down
  19. wpa_supplicant -B -iwlan0 -Dwext -c/etc/wpa_supplicant/wpa.conf
  20. ip link set wlan0 up
  21. Systemd service file:
  22. Location: /usr/lib/systemd/system/networkstart.service
  23. [Unit]
  24. Description=Start wireless network
  25. [Service]
  26. Type=forking
  27. ExecStart=/usr/local/bin/networkstart.sh
  28. [Install]
  29. WantedBy=multi-user.target
  30. systemctl enable networkstart.service
  31. reboot
  32. For a static IP address:
  33. Location: /etc/systemd/network/wlan0.network
  34. [Match]
  35. Name=wlan0
  36. [Network]
  37. Address=192.168.1.xxx/24
  38. Gateway=192.168.1.xxx
  39. DNS=8.8.8.8
  40. DNS=4.4.4.4