Wednesday, September 13, 2006

Wireless in Linux For D-Link G510 ( rev C)

After toiling for about a month , my wireless in now working in Fedora Core 4.I had tried everything from madwifi to ndiswrapper but nothing helped me.
Actually the D-link G510 card has Four versions rev A , B , C and D.The first
two are Atheros based cards , hence they can easily be used by using madwifi
drivers.But C and D are not atheros based , they have to be installed by using
Ra-link drivers ( i am not sure about D though :D ).So here is the procedure to install wireless drivers for D-Link G510 rev C.

1.Download the Ra-link drivers from http://www.ralink.com.tw/drivers/Linux/RT61_Linux_STA_Drv1.0.4.0.tar.gz

2.untar the file $tar -xvzf RT61_Linux_STA_Drv1.0.4.0.tar.gz

3.run the following commands :-

$ cd RT61_Linux_STA_Drv1.0.4.0/Modules
$ cp Makefile.6 Makefile
$ make all
$ mkdir /etc/Wireless/
$ mkdir /etc/Wireless/RT61STA/
$ cp *.bin /etc/Wireless/RT61STA/
$ dos2unix rt61sta.dat
$ cp rt61sta.dat /etc/Wireless/RT61STA/rt61sta.dat
$ /sbin/insmod rt61.ko
$ /sbin/ifconfig ra0 inet YOUR_IP up
$ /sbin/iwconfig ra0 ESSID “put the essid here”
$ dhclient ra0
4.Try to ping to some ip .If is pinging , voila you are connected. else , dont
worry even i was not able to ping .run the following commands :-

$ /sbin/iwpriv ra0 set SSID=”your essid” CxRate=12 NetworkType=Infra
( this depends on your connection , see man iwpriv for more options ,For
IIITians these will be enuf ;) )

$ /sbin/iwlist ra0 scanning

By running the last command , you should get some cells ( i.e Access Points )
If you are getting them this means your wireless card is now ready to use.Now
you just need to write the configuration script

5.Writing the configuration script
Go to the directory /etc/sysconfig/network-scripts
Open a new file named “ifcfg-ra0″ ( $ vi ifcfg-ra0 ) using any editor

Copy and Paste the following :-

STARTMODE=hotplug
MODE=Managed
DEVICE=ra0
ESSID=’your essid’
onBOOT=yes
USERCTL=yes
IPV6INIT=no
HWADDR=
BOOTPROTO=none
NETMASK=”your netmask”
DHCP_HOSTNAME=
IPADDR=”your ip address here”
DOMAIN=
PEERDNS=yes
GATEWAY=”your default gateway here”
TYPE=Wireless
ONBOOT=yes
RATE=Auto
CHANNEL=1

make sure you make the neccesary changes ( i.e ESSID , ip gateway ) ;)

6.run neat command and then activate the wirless from there.

7.run this command $kwifimanager

it will open a wifi manager. try to search for networks.It will automatically
connect to the network

PS: Looking forward to install dcpp ( dc++ for linux with better gui )
PS1: Yesterdays OS assignment rocked :D
PS2: I am thanful to kulbir for helping me in writing configuration scripts
PS3: Looking forward to help Nishant sir in Linux Cluster’s

0 Comments:

Post a Comment

<< Home