Skip to content

Instantly share code, notes, and snippets.

@Boot-Error
Last active June 12, 2019 12:21
Show Gist options
  • Select an option

  • Save Boot-Error/b76dd6546c5dfbf90db711279f1ddbd2 to your computer and use it in GitHub Desktop.

Select an option

Save Boot-Error/b76dd6546c5dfbf90db711279f1ddbd2 to your computer and use it in GitHub Desktop.
title tags created modified
Raspberry Pi Initial Setup V2
Notebooks/Blog
2019-01-26T17:31:49.097Z
2019-02-02T17:03:37.037Z

Raspberry Pi Initial Setup V2

Direct Ethernet Connection

  • Setup DHCP server on your PC and let pi connect to it.

setup DHCP server

  • Add a route to route packets from ip range for the dhcp server to the interface the dhcp server is set to listen on

ip route add 139.96.30.0/24 src 139.96.30.100/24 dev enp62s0u1

  • ssh into rpi

ssh pi@<ip address given by dhcpd server>

  • connect to wifi

copy ssid and password into /etc/wpa_supplicant/wpa_supplicant.conf in this format

network={
    ssid="HOTSPOT NAME"
    psk="HOTSPOT PASSWD"
}

and then run wpa_supplicant -P/home/pi/wpa.pid -D -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

  • set the route metric for the wifi interface lower that the metric for the ethernet set default

Setup startup services

  • Wifi: raspi-conf
  • Web Server
@Boot-Error
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment