[School-GNU-Linux] Re: Wireless Network

On 9/11/07, Anil K.B <anilaavani@xxxxxxxxx> wrote:
>>I am Anilkumar sending you the file that you asked me to mail for
solving the >>problem relating the Wireless Networking.

Dear sir,

Please check the attached howto.


thanks and regards,

~vimal






-- 
Free Software, Free Society
സ്വതന്ത്ര സോഫ്​റ്റ്​വെയര്, സ്വതന്ത്ര സമൂഹം
<http://fsfs.hipatia.net>
---------------------------------------------------------------
Copyright (c) 2007 Space-Kerala <http://www.space-kerala.org>
This script is licensed under GNU GPL version 2.0 or above
---------------------------------------------------------------

How to install RT61/RT2561 Wireless Chipset on It@School GNU Linux Based on 
Debian


Step 1:Add repositary to sources.list.
       
        # gedit /etc/apt/sources.list

   and add the following:

        deb http://ftp.debian.org/debian etch main

   then execute the following command:

        # apt-get update


Step 2: Determine the wireless chipset
        
        # lspci|grep RT61

  Output:
        
        00:0b.0 Network controller: RaLink RT2561/RT61 rev B 802.11g

Step 3:Find out the kernel version 
  
        # uname -r

  Output:
   
        2.6.18-4-486

Step 4:Obtain driver for RT61/RT2561 Chipset
   
  Download the driver fle RT61_Linux_STA_Drv1.1.0.0.tar.gz 
     from  http://www.ralinktech.com./ralink/Home/Support/Linux.html
  and copy it to /opt folder

Step 5:Untar the file  
  (The driver used in this documentation is RT61_Linux_STA_Drv1.1.0.0.tar.gz)

        # cd /opt
        # tar -zxvf RT61_Linux_STA_Drv1.1.0.0.tar.gz
        # cd RT61_Linux_STA_Drv1.1.0.0.tar.gz

Step 6:Compile driver source code
        
        # cd Module
        # cp Makefile.6 Makefile
        # make

Step 7:Create a directory and copy firmware and configuration file to this 
directory

        # mkdir -p /etc/Wireless/RT61STA
        # cp rt2561.bin /etc/Wireless/RT61STA/
        # cp rt2561s.bin /etc/Wireless/RT61STA/
        # cp rt2661.bin /etc/Wireless/RT61STA/
        # cp rt61sta.dat /etc/Wireless/RT61STA/rt61sta.dat

Step 8:Copy actual driver (rt61.ko) to your kernel directory

        # apt-get install sysutils
        # dos2unix /etc/Wireless/RT61STA/rt61sta.dat
        # cp rt61.ko /lib/modules/2.6.18-4-486/kernel/drivers/net/wireless


Step 9: Configure the card

        # ifconfig eth0 down
        # depmod -a
        # modprobe rt61

Step 10:Activate interface called ra0. with ifconfig command

        # ifconfig ra0 your_network_ip_address up
        # apt-get install wireless-tools
        # iwlist ra0 scanning

  Output:       
        
        ra0       Scan completed :
                  Cell 01 - Address: 00:17:9A:02:49:58
                  ESSID:"LRC Edapally"
                  Mode:Managed
                  Channel:6
                  Encryption key:off
                  Bit Rates:0 kb/s

Step 11: Set SSID/ESSID, Mode and Channel

        # iwconfig ra0 essid "LRC Edapally"
        # iwconfig ra0 mode Managed
        # iwconfig ra0 channel 6
        # iwconfig ra0 ap your_MAC_address

Step 12: Configure rt61 driver auto-load at boot time

        1) Create rt61.up scripts into /etc/Wireless. For that create a file 
rt61.up into that   
           directory and add the following statements into that.Save and Close 
it.Take its 
           properties and change the permission to Read, Write and Execute
           
           #!/bin/sh
           # Script to start DLink PCL wireless lan card 520 
           # ----------------------------------------------------------------
           # Copyright (c) 2006 Space-Kerala <http://www.space-kerala.org>
           # This script is licensed under GNU GPL version 2.0 or above
           # 
-------------------------------------------------------------------------

           iwconfig ra0 essid "your_essid_name"

                                OR

           Copy the file rt61.up from this directory and paste it to 
/etc/wireless and change the 
           essid name with your's
        2) Open config file /etc/modules 
           
           #gedit /etc/modules
 
               and append the following:
                
           rt61

        3) Open config file /etc/network/interfaces

           #gedit /etc/network/interfaces

               and append the following:
        
           post-up /etc/Wireless/wlan.up



Other related posts: