[Tutorial] WiFi-mini-howto
1 Page: [ 1 ]
http://yume.binaryshadow.org/~moruku/Tutorials/WiFi-mini-howto
WiFi Mini How-to
Written by moruku (moruku@gmail.com)
--------------------------------------------------------------------------------
To configure your wireless network in Linux you need to do the
following:
1. Check wether your Linux Distro detects and configures your WiFi NIC.
2. Check which network interface that is your wireless one.
3. Make an easy-to-use WiFi connect script, install and connect.
............................................................
1. Check wether your Linux Distro detects and configures your WiFi NIC.
Fire up a terminal and run:
dmesg | grep eth
If the output says anything about failing to load firmware contact me
per e-mail and I'll try to help you further.
If it says something about the name of your wireless network interface
and ethX where X is a number from 0 and up then it is configured and
ready to use.
............................................................
2. Check which network interface that is your wireless one.
This step is easy, you need to fire up a terminal and as root run the
following:
iwconfig
This command is the one used to configure wireless network interfaces
and when run without additional arguments it lists all network
interfaces and says wether they are wireless or not (and some other stuff);
Check for an interface that doesn't say "no wireless extensions."
The one that doesn't say that is your wireless network interface.
(Most commonly it is eth1)
............................................................
3. Make an easy-to-use WiFi connect script, install it and connect.
To do this simply write the following into a text file:
#!/bin/sh
killall dhcpcd
iwconfig ethX essid NetworkName
dhcpcd ethX
If you use WEP encryption you want to write this instead:
#!/bin/sh
killall dhcpcd
iwconfig ethX essid NetworkName key s:Password
dhcpcd ethX
Where you obviously have to change "ethX" to the network interface which
is your wireless one and "NetworkName" to the name of your network and
eventually change "Password" to the password of your WEP encrypted
network.
Save the file to something easily remembered like "wlan.home" if it's
your home-network or "wlan.work" if it's your work network and so on.
Then run the following in a terminal as root:
chmod +x wlan.home
Or whatever you named your script.
Then run the following as root:
mv wlan.home /usr/local/sbin/
Again, change wlan.home to whatever you named the script.
After that you should be able to run it from the commandline as
root and you should be connected to the desired network. You will most
likely encounter a warning about "dhcpcd: no process killed" or
something along those lines, don't worry this is okay.
To run the script you simply write the name of the script in a terminal
as root and press enter. Like this if your script is called "wlan.home"
wlan.home
Simple eh? Hopefully everything went fine, if not, feel free to contact
me by email at moruku@gmail.com.
Peace out!
1 Page: [ 1 ]





