LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 04-24-2002, 08:32 PM   #1
jpohara
Member
 
Registered: Mar 2002
Location: Lynbrook, NY
Distribution: Fedora Core 1
Posts: 85

Rep: Reputation: 15
Unhappy Lost my instructions for wireless connect...oops!


Well I have a wireless card that runs like a charm under Linux--unfortunately the computer was powered off and now I cannot seem to locate the little slip of paper I was using to get my machine connected to the internet--maybe someone can help with my commands or their order...

The card is to be designated as 192.168.2.20 and the wireless access point is 192.168.2.1

What I have been typing is

insmod p80211.o
insmod prism2_plx.o
alias wlan0=prism2_plx
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=any authtype=opensystem
ifconfig wlan0 192.168.2.20
route add default gw 192.168.2.1 wlan0
route add 192.168.2.20 wlan0
ifconfig wlan0 up
dhcpcd wlan0

the last step just hangs there...
I thing I have something out of order....any ideas?
 
Old 04-24-2002, 09:19 PM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
why not try the existing script?

Why not use the existing rc.wlan and wlan.conf files provided in the linux-wlan-ng/etc directory from the tarball?

I just set this up today (first time) and couldn't believe how unbelievably complex they made wireless setup! My orinoco card is far easier to set up.

Consequently you do *NOT* need any ifconfig lines if you're using DHCP. Enable the card (I use the rc.wlan script) and dhcpcd wlan0.

Also make sure that your DHCP server is running. dhcpcd will hang if it can't find it. At any rate it will return after about 60 seconds so it's not truly a hang, just a timeout.
 
Old 04-24-2002, 09:57 PM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Re: Lost my instructions for wireless connect...oops!

Quote:
Originally posted by jpohara
What I have been typing is:
A lot of those commands are overkill or don't actually do anything, but if it works, don't break it right?

insmod p80211.o
insmod prism2_plx.o


Check "lsmod" and "dmesg" to see if everything bound right.

alias wlan0=prism2_plx

The kernel did this already, you'll see that in dmesg.


wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=any authtype=opensystem


This may be the concern. Depending on what version of the linux-wlan project you are using, the scripts akohlsmith mentioned may or may not work. These jokers have the tendancy to break their own stuff a lot and their driver is just a little huge. Re-check the documentation that came with the version you are using and make sure these are the right control entries.

ifconfig wlan0 192.168.2.20

If you just add the word "up" at the end of that, it will finish what the command 3 down does. "ifconfig" takes multiple arguments.

route add default gw 192.168.2.1 wlan0

Okay... sepcifying the device wlan0 is unnecessary as route will know what you mean because its the only device so far on that subnet.

route add 192.168.2.20 wlan0

The route is automagically added as soon as the device is brought up which you either do next or did three lines ago if you add the word "up"

ifconfig wlan0 up

Now, this is odd, dhcpcd is going to dynamically configure via the wireless router everything you just configured by hand. You've already added your gateway route and given yourself an IP address, so as long as you have a nameserver to query in the file /etc/resolv.conf (which will have been leftover from last time you did a dhcp connection), you don't need to:

dhcpcd wlan0

You should just be able to ping yahoo... Try these:

the two insmods,
the two calls to wlan-ctl,
ifconfig wlan0 192.168.2.20 up
route add default gw 192.168.2.1
ping 192.168.2.1

If the host is unreachable, then its probably an extra line worth of something with the wlan-ctl stuff.

Also, just for future refernce: The orinoco driver set now includes support for these prism2 cards AND the pci adapter card. version .10 is the newest and you can configure them with iwconfig, which works much better than all the linux-wlan goop. I'm currently using them with a Linksys WPC11 setup.

Lastly, as soon as you have it down, don't rely on a paper, but put it in the script /etc/rc.d/rc.boot (I think that's the one in SuSe). This is the last script run by init. Just put all the commands in as if you were entering them on the command line and it should work.

Luck,

Finegan
 
Old 04-24-2002, 10:28 PM   #4
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
Orinoco can drive the other prism2 cards?

Excellent news. Does it also work for the PCI based cards? (not the pcmcia-in-pci-pcmcia-adaptor, but rather the WPT11s (I think that's the part #, it's the plain PCI card with screw-on antenna)?
 
Old 04-24-2002, 10:49 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Looks like, at least according to the package contents:
fin@horatio:~/stuph/orinoco-0.11$ ls -l
total 248
-rw-r--r-- 1 fin fin 1917 Apr 4 23:35 Makefile
-rw-r--r-- 1 fin fin 5108 Apr 4 23:35 README.orinoco
-rw-r--r-- 1 fin fin 8112 Apr 4 23:35 airport.c
-rw-r--r-- 1 fin fin 14532 Apr 4 23:35 hermes.c
-rw-r--r-- 1 fin fin 2097 Apr 4 23:35 hermes.conf
-rw-r--r-- 1 fin fin 12674 Apr 4 23:35 hermes.h
-rw-r--r-- 1 fin fin 6505 Apr 4 23:35 hermes_rid.h
-rw-r--r-- 1 fin fin 2116 Apr 4 23:35 ieee802_11.h
-rw-r--r-- 1 fin fin 109498 Apr 4 23:35 orinoco.c
-rw-r--r-- 1 fin fin 3742 Apr 4 23:35 orinoco.h
-rw-r--r-- 1 fin fin 24177 Apr 4 23:35 orinoco_cs.c
-rw-r--r-- 1 fin fin 11394 Apr 4 23:35 orinoco_pci.c
-rw-r--r-- 1 fin fin 13323 Apr 4 23:35 orinoco_plx.c
-rw-r--r-- 1 fin fin 8506 Apr 4 23:35 userhermes.c

Warning though... you're going to have to RPM onto your machine the wireless_tools package (its almost definately on the CDs), and when you do that and compile these drivers against your kernel (2.4.10?), they're going to be built for a different version of wireless extensions than what you currently have. It will blurt a lot of warnings, but unless you get stuck in seg fault city, its no big worry. Sorry I'm a littl vague on SuSe, I've only used it on a Sparc.

iwconfig will allow you to manipulate the essid, channel, mode, blah blah blah and unlike the linux-wlan goop, it actually comes with manpages!

You will also need your kernel source actually on the machine.

Oh yeah... der, download it here.

Cheers,

Finegan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost /boot contents. Oops! khader69 Linux - Newbie 2 04-26-2005 06:06 AM
Instructions for getting Wireless Working alacritous Linux - Wireless Networking 9 10-21-2004 06:03 PM
OOps, lost winmanager installing nvidia drivers BajaNick Linux - Software 2 06-17-2004 04:57 AM
Lost a startup script... OoPs Hooper Slackware 11 06-13-2004 10:33 PM
Oops - I lost my system tray !! smevans Red Hat 5 11-05-2003 08:06 AM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration