| title | tags | created | modified | |
|---|---|---|---|---|
Raspberry Pi Initial Setup V2 |
|
2019-01-26T17:31:49.097Z |
2019-02-02T17:03:37.037Z |
- Setup DHCP server on your PC and let pi connect to it.
- 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
- Wifi:
raspi-conf - Web Server
For connecting Pi to the internet via your pc
https://serverfault.com/questions/431593/iptables-forwarding-between-two-interface