Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wireless at startup [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hitchhiker04
n00b
n00b


Joined: 19 May 2005
Posts: 20

PostPosted: Tue Jun 14, 2005 10:28 pm    Post subject: wireless at startup [solved] Reply with quote

so I finally got my dwl-650 working. But everytime i log on, i have to type " iwconfig wlan0 essid ap-point " and "dhcpcd wlan0" to start the internet. how do i automate this process and have it start at boot? I think im suppose to add something to /etc/conf.d/net or wireless, but what?

thanks


Last edited by hitchhiker04 on Wed Jun 15, 2005 5:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
zonk
Apprentice
Apprentice


Joined: 23 May 2005
Posts: 176

PostPosted: Tue Jun 14, 2005 10:32 pm    Post subject: Reply with quote

/etc/conf.d/wireless will work for that. there's a wireless.example, too, which should help you create the file
Back to top
View user's profile Send private message
stustill
Guru
Guru


Joined: 25 Feb 2003
Posts: 333
Location: Aberdeen, Scotland

PostPosted: Wed Jun 15, 2005 12:46 am    Post subject: Reply with quote

Add to /etc/conf.d/net:

Code:
iface_wlan0="dhcp"


Also run:

Code:
ln -s /etc/init.d/net.eth0 /etc/init.d/wlan0


Stu
Back to top
View user's profile Send private message
hitchhiker04
n00b
n00b


Joined: 19 May 2005
Posts: 20

PostPosted: Wed Jun 15, 2005 2:20 am    Post subject: Reply with quote

Quote:
iface_wlan0="dhcp"
ln -s /etc/init.d/net.eth0 /etc/init.d/wlan0

I did these. The wireless card now starts at boot but it can't connect b/c the ESSID is not specified.
I tried configuring the essid in /etc/conf.d/wireless, no success so far.
anyone know how to add the essid in /etc/conf.d/net ?
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Wed Jun 15, 2005 7:16 am    Post subject: Reply with quote

i am in the same boat as well
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Wed Jun 15, 2005 7:34 am    Post subject: Reply with quote

Create a file with that " iwconfig wlan0 essid ap-point" command in it, call it 'wireless-up' or something like that, put it in /usr/local/bin, make it executable, then add the following line in /etc/conf.d/local.start:
Code:
/usr/local/bin/wireless-up

_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
zonk
Apprentice
Apprentice


Joined: 23 May 2005
Posts: 176

PostPosted: Wed Jun 15, 2005 3:47 pm    Post subject: Reply with quote

you can just edit that in /etc/pcmcia/wireless

again, there is an example file. you can even specify different scenarios, make them different by scheme name (explanantions in the example file) and either append kernel boot options with "SCHEME=home" and "SCHEME=work" to boot into dhcp with essid "mynet" at home and static IP and essid "worknet" and work, or restart pcmcia services specifying a scheme name, effectively switching networks.
Back to top
View user's profile Send private message
hitchhiker04
n00b
n00b


Joined: 19 May 2005
Posts: 20

PostPosted: Wed Jun 15, 2005 5:13 pm    Post subject: Reply with quote

I followed hauser's approach, got it working now.
thanks
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Wed Jun 15, 2005 5:59 pm    Post subject: Reply with quote

zonk wrote:
you can just edit that in /etc/pcmcia/wireless


i did edit /etc/conf.d/wireless and set my essid to the one that i want, but when the network is being enabled the essid is not set, so dhcp fails.
Back to top
View user's profile Send private message
zonk
Apprentice
Apprentice


Joined: 23 May 2005
Posts: 176

PostPosted: Wed Jun 15, 2005 6:02 pm    Post subject: Reply with quote

huh. i don't have /etc/conf.d/wireless edited at all, only /etc/pcmcia/wireless. and dhcp works fine for me.
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Wed Jun 15, 2005 9:47 pm    Post subject: Reply with quote

i dont have an /etc/pcmcia, prolly because its a desktop without any pcmcia cards. so what is the correct way to get /etc/conf.d/wireless to do anything? anyone know?
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Thu Jun 16, 2005 4:15 am    Post subject: Reply with quote

here is how to do it the gentoo way
Code:
 emerge =sys-apps/baselayout-1.11.12-r4
This will update a shitload of scripts on your system, so be ready to do some heavy etc-updating, well not so heavy i only had to update the login manager in /etc/rc.conf. The reason nothing was working for me is because i've had my gentoo installed since nov 2002, and my /etc/int.d/net.wlan0 has been completely out of date. Since you just updated baselayout do
Code:
cp /etc/int.d/net.eth0 /etc/int.d/net.wlan0
now you can set up your essid in /etc/conf.d/wireless, follow the /etc/conf.d/wireless.example file for more advanced options, all i did was add this line
Code:
essid_wlan0="saratoga_surf_army"
to /etc/conf.d/wireless. Also make sure that you have
Code:
iface_wlan0="dhcp"
in /etc/conf.d/net. now try running
Code:
/etc/init.d/net.wlan0 restart
and everything should work.
Back to top
View user's profile Send private message
jyeh
n00b
n00b


Joined: 26 May 2005
Posts: 8

PostPosted: Fri Jun 17, 2005 7:06 pm    Post subject: Reply with quote

user317 wrote:

...
Code:
cp /etc/int.d/net.eth0 /etc/int.d/net.wlan0

...


I think that instead of copying net.eth0 to net.wlan0, it would be better to do a symlink

Code:
ln -s /etc/init.d/net.eth0 /etc/init.d/net.wlan0


Thanks for the guide. I helped me.
Back to top
View user's profile Send private message
user317
Guru
Guru


Joined: 26 Jan 2003
Posts: 314

PostPosted: Sat Jun 18, 2005 10:10 pm    Post subject: Reply with quote

jyeh wrote:

Code:
ln -s /etc/init.d/net.eth0 /etc/init.d/net.wlan0


brilliant, why didnt i think of that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum