LinHES Forums
http://forum.linhes.org/

Wireless setup???
http://forum.linhes.org/viewtopic.php?f=11&t=16269
Page 1 of 2

Author:  rubrboots [ Wed Aug 29, 2007 9:02 pm ]
Post subject:  Wireless setup???

I am a linux newbie, but have managed to setup a backend and frontend sucessfully. My last task is the get my frontend networked wireless. I have intstalled a DWL-G520 card in the frontend, but I have no idea where to go from here(how to connect to my network). I have searched the forums for a wifi guide but have not found anything usefull. Is there a tutorial somewhere out there? Network utility? ???

Author:  bigB [ Wed Aug 29, 2007 10:25 pm ]
Post subject: 

Hi,

I think that card uses a Ralink chipset, specifically a Rt61. Drivers are here.

http://www.ralinktech.com/ralink/Home/Support/Linux.html

I hope this gets you started.

Bigb

Author:  cecil [ Thu Aug 30, 2007 10:47 am ]
Post subject: 

Thanks for the reminder. ;)

Author:  rubrboots [ Thu Aug 30, 2007 11:19 am ]
Post subject: 

Thanks bigB. Unfortunately I think I will require a little more direction than that. :?

Author:  psicard [ Thu Aug 30, 2007 11:58 am ]
Post subject: 

First off, you probably want to look here:
http://madwifi.org/wiki/Compatibility/D-Link
Check which hardware revision you have - as long as it's not A3, the madwifi driver should work.
If it is A3, you'll need to use ndiswrapper instead (AFAIK both madwifi and ndiswrapper should already be installed for R5F1, so it's just a matter of configuring things correctly).

If the madwifi driver works, you should just need to edit your /etc/network/interfaces file and change eth0 to ath0. You can find more info here:
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo

If you end up needing to use ndiswrapper, this may help:
http://ndiswrapper.sourceforge.net/joom ... tallation/

Author:  rubrboots [ Thu Aug 30, 2007 3:05 pm ]
Post subject: 

thanks psicard that worked perfectly, I am now connected via wifi using madwifi. Now to connect to the AP I need to issue 4 commands

Code:
iwconfig ath0 essid "eddie"
iwpriv ath0 authmode 1
iwconfig ath0 key <s:ASCII string of key>
dhclient ath0


How can I have these commands sent automatically during startup?

Author:  rubrboots [ Thu Aug 30, 2007 4:34 pm ]
Post subject: 

I have answered my own question. Here is what I did:

I created a startup script at /etc/init.d/wifi-boot where wifi-boot is a file name that I have made up


Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides commands for madwifi to connect to wifi network         
# created by boots 08-30-2007
# Description:### END INIT INFO

iwconfig ath0 essid "networkname"
iwpriv ath0 authmode 1
iwconfig ath0 key 123456abcd
dhclient ath0


then make it executable

Code:
chmod 755 /etc/init.d/wifi-boot


and ensure it runs at startup by

Code:
update-rc.d wifi-boot defaults



But... small PROBLEM
This works as it should but my boot process is now very long. I assume that the system is getting stuck beacuse it cannot connect to the backend until my new script is run whenever that is. I cannot see any errors that might be present because I have enabled that splash screen at boot and have not yet figure out how to disable it.
Does anyone know how to get my script to run before the frontend attempts to connect to the backend? Or have any ideas on what else may be causing this LONG boot time?

Author:  cecil [ Thu Aug 30, 2007 4:42 pm ]
Post subject: 

The frontend doesn't attempt to connect to the backend until X and fluxbox start.

Author:  rubrboots [ Thu Aug 30, 2007 5:02 pm ]
Post subject: 

ok, any idea why the boot process is taking so long after chaging network settings?

Author:  mjl [ Thu Aug 30, 2007 8:02 pm ]
Post subject: 

Hi,

If you press the ESC key it should open a window so you can see what is occurring.

Time is relative, 1 minute, 2, 3, 10?
Mike

Author:  psicard [ Thu Aug 30, 2007 9:12 pm ]
Post subject: 

You might be better off adding your wireless config info to your /etc/network/interfaces file instead of the script you wrote. The ath0 stanza should look something like
Code:
iface ath0 inet dhcp
    wireless-essid  NETWORKNAME
    wireless-channel auto
    wireless-key MYSECRETKEY
    pre-up /sbin/iwpriv ath0 authmode 1


I'm not sure if it'll speed things up or not, but your wireless connection may start up sooner in the boot process....

Author:  soundoff [ Thu Aug 30, 2007 9:43 pm ]
Post subject: 

I have found that having a wireless link, even 54mbps, inbetween your backend and frontend will result in dissapointing lag.

I have run 100mbit cabling to my frontends for this reason. Its more work, but the increase in speed when you hit play and when seeking is well worth it

Author:  rubrboots [ Thu Aug 30, 2007 10:31 pm ]
Post subject: 

I agree with you 100% soundoff, if I could stayed wired I would but its just not an option in this case.

I discovered the cause of the slow boot by watching the boot sequence, it was printing DHCPDISCOVER over and over, entually fail and move on. I did what psicard suggested and it fixed this problem and I am still connected. Everything seems stable now.

Author:  manicmike [ Thu Aug 30, 2007 11:21 pm ]
Post subject: 

Have you considered two 108Mbit routers?

Then you'd just connect the myth box via ethernet. This is how I'd do it, since it means zero configuration and no extra drivers on the linux box.

Cheers

Mike

Author:  Gnarl [ Fri Aug 31, 2007 7:35 am ]
Post subject: 

I run a wireless dlink in my backend. Here is my /etc/network/interfaces
Code:
auto lo ath0

iface lo inet loopback

iface ath0 inet dhcp
wpa-driver madwifi
wpa-ssid myssid
# plaintext passphrase
wpa-psk mypassphrase
But as you can see I use wpa

My old one for WEP was
Code:
auto lo ath0 eth1

iface lo inet loopback

iface ath0 inet dhcp
pre-up iwpriv ath0 mode 3
pre-up iwconfig ath0 essid "myssid" mode managed rate 54Mb key mykeyinhex

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/