Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Wifi
raspi-config    

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

>>> go to "Interface Options"



Code Block
titlewpa_supplicant.conf
pi@raspberrypi2:~ $ more /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
        ssid="wifi_ssid"
        psk="password"
        key_mgmt=WPA-PSK
}


change the configuration

sudo vi etc/wpa_supplicant/wpa_supplicant.conf

sudo wpa_cli -i wlan0 reconfigure

script to change the passwordhttps://weworkweplay.com/play/rebooting-the-raspberry-pi-when-it-loses-wireless-connection-wifi/
crontab ( repeat ) https://www.raspberrypi.org/documentation/linux/usage/cron.md


Wired Ethernet

/etc/network/interfaces


root@kali:~# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
       address 192.168.90.146
       netmask 255.255.255.0
       gateway 192.168.90.145
       dns-nameservers 8.8.8.8

debian / ubuntu / networking ifconfig and ip addr