Wifi on raspberry pi | |
---|---|
raspi-config | https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md >>> go to "Interface Options" |
wpa_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 |
networ/interfaces root@boxed:~# more /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto eth0 iface eth0 inet static address 192.168.226.100 netmask 255.255.255.0 auto eth0:1 allow-hotplug eth0:1 iface eth0:1 inet static address 192.168.226.101 netmask 255.255.255.0 auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
script to change the password | https://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/dhcpcd.conf # Example static IP configuration: interface eth0 static ip_address=192.168.10.146/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.146.1 static domain_name_servers=8.8.8.8 | |
ip link set down dev eth0 or just reboot |
General
Content
Integrations