Wednesday, April 29, 2015

Useful linux wireless commands


Here are some useful linux wireless commands:

Query wireless devices enable/disable


rfkill list
rfkill unblock <0>

To check details and driver info

lshw -class network

Starting up wireless on the command line

Create a wpa_supplicant file (maybe using wpa_gui):

#Generated by wpa_gui
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="your ssid"
    psk="your passphrase"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=TKIP
    auth_alg=OPEN
}


Now run wpa_supplicant to setup the connection:

wpa_supplicant -B -iwlan0 -c./wpa_supplicant.conf -Dwext

And dhclient wlan0 to get an ipaddress.

Simplified wireless command line

# Enable the interface
ip link set wlan0 up

# Scan for networks
iw dev wlan0 scan

# Run supplicant
wpa_supplicant -D nl80211,wext -i wlan0 -c <(wpa_passphrase SSID KEY)

# Assign IP address
ip addr add 192.168.0.10/24 dev wlan0

# OR dhclient
dhclient wlan0

 

Thursday, April 16, 2015

Film: Charlie Wilson's War directed by Mike Nichols

http://www.imdb.com/title/tt0472062/?ref_=nm_flmg_prd_31

Articles on compromised carriers


These are old articles but give an interesting overview on the poor decision making for the sake of British jobs when it comes to defence.  Yes we really are building aircraft carriers where we will never be able to afford a full complement of planes!

http://www.theregister.co.uk/2013/02/06/defence_committee_carrier_badness/
http://www.theregister.co.uk/2012/05/10/f35_u_turn_idiocy/

David Cameron was stating that we have the fifth largest defence budget in the world.  It does us no good when we get such terrible value for money!  Companies like BAe have the gun to the head of the government over defence jobs and extract the maximum amount of money for it.  We often end up with over priced equipment that is years late.