View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Sep 06, 2010 12:24 am 
Offline
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location: Avoca Beach, NSW, Australia
Hello,

I am trying to get a laptop working through wireless to connect to my backend - and I am pretty close to achieving that, however I cannot get the connection to start up automatically.

I have followed this guide and have got a successful connection to my WPA network. I then followed this guide to use netcfg to start it up automagically... but it doesn't work.

There is nothing being logged in any file in /var/log and it seems that no matter what i put in rc.conf, it doesn't seem to try to bring up the connection.

This is what I currently do to start wireless:
Code:
sudo wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf

Then I need to manually obtain an IP address:
Code:
sudo dhcpcd eth1

then all is good.

Any suggestions to make this happen with every boot?

Thanks,
Al


Top
 Profile  
 
PostPosted: Mon Sep 06, 2010 4:33 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
albyone wrote:
Any suggestions to make this happen with every boot?


Hi Al (does anyone read that and not think of Katey Sagal?),

When I wireless'ed my house (rather than drilling holes in the wall), my HTPC got a D-Link wireless card. It was a long procedure to get the damn thing working and then it would drop out when idle for a while (5-10 mins). So even though the machine is generally up for months at a time, I created a cron job to check if the wireless was up. If it wasn't, the script would bring it up. This is commonly known as a caretaker script, but it also doubles as kind of a startup script. It checks every 5 minutes and if iwconfig reports the correct network, it goes no further. If it has dropped out, it re-connects and checks/updates the ip address, sets the default route and sets the dns servers in resolv.conf.
When the machine gets rebooted (e.g. kernel update) I don't bother starting wireless because within 5 minutes cron will do it.

I found the in built scripts were a bit lacking, then there was the dropping out thing which they don't cater for, so this was my best option.

Regards

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
PostPosted: Tue Sep 07, 2010 6:03 pm 
Offline
Joined: Fri Oct 05, 2007 10:35 pm
Posts: 14
Location: Avoca Beach, NSW, Australia
Thanks Mike,
I did notice that it also disconnects when idle for a bit... was going to cross that bridge when I got it to start by itself.

I like the idea that you mentioned and will work on a script when I get a chance - I have used linux now for many years but have been able to dodge the requirement of writing bash or perl scripts - seems my run is coming to an end! Have been wanting to learn some perl scripting, so here is a nice simple problem for me to solve.

Al.


Top
 Profile  
 
PostPosted: Tue Sep 07, 2010 7:51 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
albyone wrote:
Have been wanting to learn some perl scripting, so here is a nice simple problem for me to solve.


Hi Al. I wrote mine in bash, and can send it to you if you like. I'll make where you would change it very obvious.

Actually, I'll post it on the tips and tricks section and let you know.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
PostPosted: Tue Sep 14, 2010 2:49 am 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
Hi Al,

Sorry this took so long, but I forgot about it. Just wrote it in hints and tips. Any feedback welcome.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 156 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu