Getting yourself on Trinity's Wireless network with Linux

Sun 03 February 2008

Since ISServices have washed their hands of any support for Linux, I've banged up a guide on how to get onto it with Linux. I'm using Ubuntu so things may need to be changed depending on your distro. :D Right, you need wpa_supplicant installed and modify it'sconfig file /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="TCDwifi"
scan_ssid=1
key_mgmt=IEEE8021X
eap=LEAP
identity="username"
password="password"
phase2="MSCHAPV2"
}

If you're in Computer Science you can also use COMPSCIwireless2 and there's no MAC address filtering so no stupid registering stuff. Place this in your /etc/network/interfaces if its not already there so you can dhcp over your wireless card.

auto eth1
iface eth1 inet dhcp

And finally all of this stuff into a script, say tcd.sh

echo "Putting the wifi card up and down"
sudo ifconfig eth1 down
sudo ifconfig eth1 up
sleep 3
echo "Killing all necessary stuff"
sudo killall dhclient dhclient3
sudo killall wpa_supplicant
sleep 3
echo "Setting up WPA"
sudo wpa_supplicant -B -ieth1 -Dwext -c/etc/wpa_supplicant.conf
sleep 3
echo "Connecting to wireless"
sudo iwconfig eth1 essid TCDwifi
sleep 3
sudo dhclient eth1

Then run sh tcd.sh and enter your root password, it may not work sometimes, this seems to be due to the wireless networks being hidden. If you want add this to the start of your script. iwlist scanning | grep TCDwifi and if you see a few TCDwifi access points coming up you "should" be ok and it will connect alright, otherwise cancel the script and give it another go. The wifi card should pick up the access points now... hopefully

Category: Networking Tagged: linux trinity wifi networking

comments

Page 1 of 1