Skip to content

Instantly share code, notes, and snippets.

@olmosleo
Created October 3, 2019 01:15
Show Gist options
  • Save olmosleo/5252dad7f123c15e9e94f7efbe8207bc to your computer and use it in GitHub Desktop.
Save olmosleo/5252dad7f123c15e9e94f7efbe8207bc to your computer and use it in GitHub Desktop.
Rasberry Pi iwconfig
#!/bin/bash
sudo iwconfig wlan1 mode ad-hoc
sudo iwconfig wlan1 channel 6
sudo iwconfig wlan1 essid "Rasputin"
sudo iwconfig wlan1 key '4566546'
auto lo
auto eth0
iface lo inet loopback
#iface eth0 inet dhcp
# INTERFASE ADMINISTRACION
iface eth0 inet static
address 10.10.1.2
netmask 255.255.0.0
###########################
allow-hotplug wlan0
auto wlan0
######## Casa Wifi ################
iface wlan0 inet dhcp
wpa-ssid "lacomarca"
wpa-psk "Martinezolmos"
####################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment