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 
dhcpcd.conf
# Example static IP configuration:
interface eth0
static ip_address=192.168.
90
10.146
       netmask 255.255.255.0
       gateway 
/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.
90
146.
145       dns-nameservers 
1
static domain_name_servers=8.8.8.8
debian / ubuntu / networking ifconfig and ip addr

ip link set down dev eth0
ip link set up dev eth0


or just reboot