LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-26-2003, 12:13 PM   #1
ematrixxx
Member
 
Registered: Aug 2003
Posts: 70

Rep: Reputation: 15
Cool wireless tutorial


Guide to getting wireless working with linux.

Please note this is a representation of how to get wireless working with a computer running slackware 9.0
that has a linksys wusb11 version 2.6 wireless conection and a 64 bit encryption on the network. Other wireless
setups will differ slightly as the version and kernel and hardware might not be the same, also you may have a
bigger encryption or you may have no encryption.

The first thing you want to do is make sure you have the propper driver for your wireless. For wusb11 v2.6 I
found the driver at http://www.houseofcraig.net/berlios.tar.gz .

After this locate where you are installing the driver to, for me it was /lib/modules/2.4.20/drivers/usb

Install the driver in /lib/modules/2.4.20/drivers/usb

After this type these commands:

#Please note some wireless cards are located on eth0 thus it is important to locate where your wireless hardware is.#

iwconfig wlan0 mode managed channel 5 <---- Whatever channel your router is using if it is needed, sometimes you do
not need this.

ifconfig wlan0 192.168.1.114 <---- Whatever is a valid address for your router, D-link's gateway is usually
192.168.0.1 Linksys's gateway is usually 192.168.1.1 .

#If you have an encryption you must add this:#

iwconfig key yourhexkeyhere <---- This adds the encryption key.

#End encryption addition#

iwconfig wlan0 essid youressidhere <---- This sets your essid.

route add default gw 192.168.1.1 <---- This adds your default gateway whether it may be 192.168.1.1 or 192.168.01
or something else.


Now try to ping google.com

ping -c 4 google.com


If you get no packet loss you are home free, if it does not work for some reason repeat the previos steps.

Ok, so you noticed that after you rebooted all your settings went away : (

Make a shell script, here is the shell script I use to restore my settings:


#!/bin/sh
iwconfig wlan0 mode managed channel 5
ifconfig wlan0 192.168.1.114
iwconfig wlan0 key 473088F53F
iwconfig wlan0 essid webgirl
route add default gw 192.168.1.1 wlan0

Then make that executable and a command, place it in /usr/sbin

I made the command named "startnet"

Simply run the command startnet and all your settings are made again and you are on the internet again.


Written by ematrixxx
shadowb0x@hotmail.com
 
Old 08-26-2003, 12:32 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Moving to Linux Networking

Nice job!

Cool
 
Old 08-26-2003, 01:50 PM   #3
redhatlinux9
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat Linux 9
Posts: 5

Rep: Reputation: 0
Question Hey, could you help

Hey, I got a bit confused about this part:

Quote:
Install the driver in /lib/modules/2.4.20/drivers/usb
How do I install it?

Thanks
 
Old 08-26-2003, 02:56 PM   #4
ematrixxx
Member
 
Registered: Aug 2003
Posts: 70

Original Poster
Rep: Reputation: 15
If you have the driver on a floppy do this

1. Make sure the floppy is not write protected.
2. umount /dev/fd0
3. put in the floppy
4. mount /dev/fd0
5. cp /mnt/floppy/berlios.tar.gz /lib/modules/2.4.20/kernel/drivers/usb
6. cd /lib/modules/2.4.20/kernel/drivers/usb
7. tar zxf berlios.tar.gz
 
Old 08-26-2003, 03:52 PM   #5
redhatlinux9
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat Linux 9
Posts: 5

Rep: Reputation: 0
Unhappy What after that?

So, what after that?

Is there any more?
 
  


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
New Tutorial insyte Slackware 131 03-05-2005 02:41 AM
Wireless Tutorial DJOtaku Linux - Wireless Networking 2 10-28-2004 04:51 PM
Wireless tutorial: Debian b0rcked Linux - Wireless Networking 3 05-05-2004 12:12 PM
Tutorial Marklar Linux - Networking 11 12-20-2003 07:44 PM
How about a weekly tutorial? or just a tutorial Alinuxnoob LQ Suggestions & Feedback 2 04-09-2002 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:36 PM.

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
Open Source Consulting | Domain Registration