Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ok the following source code is a work in progress and still needs many improvements. What I'm wondering though is if anyone knows a command line tool I could use that would identify if the essids were open, wep, or wpa.
# Jeremiah Korreck
# Script to display wi-fi access points and then connect to one
# It only works for open access points at the moment
if [ $# -ne 1 ]
echo "usage: wificontrolscript interface"
cat $* |
while read line
sudo iwlist scan 2>/dev/null | grep ESSID > temp
sed 's/^ *//' ~/temp >~/temp2
lineno ~/temp2 >~/temp
cut -f1,3 -d: ~/temp >~/temp2
echo "Available Access Points"
echo "Enter the number of the Access Point to attach to:"
grep "^$answer" ~/temp2 >~/temp
cut -f2 -d: ~/temp >~/temp2
sed 's/^"//' ~/temp2>~/temp
sed 's/"$//' ~/temp>~/temp2
sudo iwconfig $interface 'essid' $myessid
ps -e > ~/temp
if grep "dhcpcd" ~/temp>/dev/null
grep "dhcpcd" ~/temp >~/temp2
sed 's/^ //' ~/temp2 >~/temp
sed 's/ ?.*$//' ~/temp >~/temp2
sudo kill $killval
sudo /sbin/dhcpcd eth1
excerpt from 'man iwconfig';
iwconfig - configure a wireless network interface
iwconfig interface [essid X] [nwid N] [mode M] [freq F]
[channel C][sens S ][ap A ][nick NN ]
[rate R] [rts RT] [frag FT] [txpower T]
[enc E] [key K] [power P] [retry R]
[modu M] [commit]
Iwconfig is similar to ifconfig(8), but is dedicated to the wireless
interfaces. It is used to set the parameters of the network interface
which are specific to the wireless operation (for example : the fre-
quency). Iwconfig may also be used to display those parameters, and
the wireless statistics (extracted from /proc/net/wireless).
All these parameters and statistics are device dependent. Each driver
will provide only some of them depending on hardware support, and the
range of values may change. Please refer to the man page of each device
essid Set the ESSID (or Network Name - in some products it may also be
called Domain ID). The ESSID is used to identify cells which are
part of the same virtual network.
As opposed to the AP Address or NWID which define a single cell,
the ESSID defines a group of cells connected via repeaters or
infrastructure, where the user may roam transparently.
With some cards, you may disable the ESSID checking (ESSID
promiscuous) with off or any (and on to reenable it).
If the ESSID of your network is one of the special keywords
(off, on or any), you should use -- to escape it.
iwconfig eth0 essid any