DNS settings
edit /etc/resolv.conf
add a nameserver (8.8.8.8 for google)
get online
for ethernet
dmesg | grep "eth"
for wireless
dmesg | grep "wlan"
lshw -C network
lspci | grep USB
ifconfig
iwconfig
connect to a network:
iwconfig [iface(wlan0)] essid "[essid]" key s:[password]
need to have wpasupplicant installed, and also allow [iface] in /etc/network/interfaces
#allow-hotplug wlan0 auto wlan0 #bring it on boot, optional iface wlan0 inet dhcp #optionally, hardcode the network settings here wpa-ssid [essid] wpa-psk [password]
then, start the [iface]
ifup wlan0
or restart it
ifdown wlan0 ifup wlan0
ifconfig [interface] down iwconfig [interface] mode Monitor ifconfig [interface] up