|
|
#1 (permalink) Top |
|
The King
![]() ![]() Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline
|
Introduction:
This is a howto on installing and configuring a wireless network card on linux. Many network cards from manufacturers such as Dlink actually use wireless chipsets from other manufacturers. Ralink is one of them, Broadcom also produce the chips for the wireless cards. I recently bought a CNET Total Network Solutions wireless card. The card itself uses a ralink rt61 chip. Ralink have been kind enough to provide linux drivers in the form of source code to the public, they can be found here. This tutorial will guide you through installing the drivers for a card using the rt61 WLAN chipset, these can be from many manufacturers. One way to find out which chipset you have is to physically look at the card. On my card, the main chip had the text "rt2561". DO NOT confuse this with an rt2500 chipset. Although they have the same major series number, the actual chipset is rt61. If you do not have access to the card itself, you can use the command: Code:
lspci Code:
0000:01:02.0 Network controller: RaLink: Unknown device 0302 For the installation to go successfully, you will need:
Installing drivers For the rt61 WLAN chipsets, you will need to download the drivers directly from Ralink. Here's a quick link: http://www.ralinktech.com/drivers/Li...1.0.4.0.tar.gz Download that, and put it into your home directory. For now we will be using an unprivileged user and then "su" to root when needed. First unpack the drivers with Code:
tar -xzf RT61_Linux_STA_Drv1.0.4.0.tar.gz By default, the directory is set with non write permissions for the user, so we will need to change that. This can be done with Code:
chmod -R 666 RT61_Linux_STA_Drv1.0.4.0/ Code:
cd RT61_Linux_STA_Drv1.0.4.0/ Code:
cd Module Code:
cp Makefile.6 Makefile Now we will build the kernel module, do: Code:
make all If it was successful, you should now have some .bin files and the kernel module in the directory. We will now install the necessary files. Root privileges will now be required. do Code:
su rootpassword Code:
mkdir /etc/Wireless mkdir /etc/Wireless/RT61STA cp *.bin /etc/Wireless/RT61STA #this copies all .bin files to the newly created directory. cp rt61sta.dat /etc/Wireless/RT61STA #copies the wifi configuration file Now move to the new directory created: Code:
cd /etc/Wireless/RT61STA Code:
vi -b rt61sta.dat I'm going to post my rt61sta.dat file as an example: Code:
CountryRegion=0 CountryRegionABand=7 WirelessMode=0 SSID=EMERSON NetworkType=Infra Channel=0 AuthMode=WPAPSK EncrypType=TKIP DefaultKeyID=1 Key1Type=0 Key1Str=0 Key2Type=0 Key2Str= Key3Type=0 Key3Str= Key4Type=0 Key4Str= WPAPSK=mywpapskpassphrase TxBurst=0 PktAggregate=0 TurboRate=0 WmmCapable=0 AckPolicy1=0 AckPolicy2=0 AckPolicy3=0 AckPolicy4=0 BGProtection=0 IEEE80211H=0 TxRate=0 RTSThreshold=2347 FragThreshold=2346 RoamThreshold=75 PSMode=CAM TxPreamble=0 FastRoaming=0 Code:
[Escape key]:wq Now you should have the module configured and ready to go. Go back to the RT61_Linux_STA_Drv1.0.4.0/Module directory and then do: Code:
cp rt61.ko /lib/modules/`uname -r`/kernel/drivers/net/ depmod modprobe rt61 Code:
iwconfig If everything went smoothly, you should have the wireless card activated. We will now need to configure it for your network. DHCP users Chances are you'll be using DHCP to get the IP address from your router along with other network settings. Once the module is loaded you'll need to use a dhcp client. Try: Code:
dhcpcd ra0 Code:
dhclient ra0 Static IP users Because of a glitch in my card or my router, I have to use a static IP. If you need to as well, then you'll need to use: Code:
ifconfig ra0 IPADDRESS up Code:
route add default gw (ROUTER IP ADDRESS) Now thats done, check for connectivity with Code:
ping (router ip) Code:
ping www.google.com Code:
vi /etc/modprobe.conf Code:
alias ra0 rt61 Your distribution may already do the configuration necessary to start the network interface on boot, so most of the time this is all that is needed. If you need to do some extra configuration commands, you can always just add them to the /etc/rc.d/rc.local file. If you have any questions or problems please post here. ![]() Finishing Touches The follow steps are optional but you may do them to improve your setup. At the moment our rt61sta.dat file is stored on the system but is readable by everyone. This is quite insecure, as any user can see the security settings of the network. To change this, move to the /etc/Wireless/RT61STA directory and as root: Code:
chmod 600 rt61sta.dat
__________________
Never trust a program you don't have the source code for. ![]() My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers Last edited by Addis; 01-10-2006 at 07:03 PM. |
|
|
|
|
#2 (permalink) Top |
|
Geek Geek Geek!
![]() Join Date: Nov 2005
Age: 24 Male
Posts: 3,467
Times Helpful: 352
My Mood: Fine
Status: Offline
|
Good work Addis.
![]() Once Sniper sets up the HOWTO forum, we can stick this in there.
__________________
"A computer is like air conditioning: it becomes useless when you open windows". ~Linus Torvalds |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pcmcia Card causes Freeze on Installation | globalmark | Networking and Computer Security | 4 | 11-06-2006 10:19 AM |
| Pcmcia Card causes Freeze on Installation | globalmark | Windows OS's | 4 | 30-05-2006 09:55 AM |
| Network Card Confusion | Nic | Networking and Computer Security | 4 | 22-12-2005 05:19 PM |
| Network card | gus | Networking and Computer Security | 2 | 01-04-2005 02:17 PM |