openSUSE Forums > Hardware » how to make wlan0 start automatically?

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read

Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 1 of 2 1 2 >
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-Oct-2008, 23:05
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default how to make wlan0 start automatically?

so i have finally found the right driver for my rtl8187b wireless card (i used this link "What I did on my vacation from reality » RTL8187B drivers and patches")

but now this is what i must do every time i login!
Code:
su
Code:
cd /home/tj/rtl8187b-modified
Code:
./wlan0up

in Ubuntu i could add this to my /etc/rc.local
Code:
/home/tj/rtl8187b-modified/wlan0up
ifconfig wlan0 up
dhclient wlan0
exit 0
opensuse doesnt seem to have an /etc/rc.local


so my question is what can i do to make my wireless start automatically?

is there another file that i can add those lines to?
Reply With Quote
  #2 (permalink)  
Old 20-Oct-2008, 23:09
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 7,921
caf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of light
Send a message via MSN to caf4926
Default Re: how to make wlan0 start automatically?

Just use the knetworkmanager and configure that to connect automatically.
__________________
Box: Linux 2.6.27.25-170.2.72 i686 PAE | Fedora 10 | KDE4.2.4 | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.1 | Celeron 550 | (KDE4.2.95)"139" RC1 | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 20-Oct-2008, 23:19
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

i don't see the knetworkmanager anywhere in yast package manager

is it availible for gnome?
Reply With Quote
  #4 (permalink)  
Old 20-Oct-2008, 23:22
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 7,921
caf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of lightcaf4926 is rated a glorious beacon of light
Send a message via MSN to caf4926
Default Re: how to make wlan0 start automatically?

You need to use the gnome equiv..
NetworkManager-gnome
__________________
Box: Linux 2.6.27.25-170.2.72 i686 PAE | Fedora 10 | KDE4.2.4 | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.1 | Celeron 550 | (KDE4.2.95)"139" RC1 | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #5 (permalink)  
Old 20-Oct-2008, 23:29
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

ok i dont think this idea is going to work

my network manager is already configured to auto connect and everything

the problem is that wlan0 isnt even recognized as a device until after i run the ./wlan0up script


heres the contents of wlan0up
Code:
#!/bin/bash

if test "`dirname $0`" != ".";
then
	cd `dirname $0`
fi

SYSTEM=`uname -r|cut -d. -f1,2`

if [ $SYSTEM = 2.4 ]
then
cd ieee80211
insmod ieee80211_crypt-rtl.o
insmod crypto-rtl.o
insmod michael_mic-rtl.o
insmod aes-rtl.o
insmod ieee80211_crypt_wep-rtl.o
insmod ieee80211_crypt_tkip-rtl.o
insmod ieee80211_crypt_ccmp-rtl.o
insmod ieee80211-rtl.o

cd ../rtl8187
insmod r8187.o

else
cd ieee80211/
insmod ieee80211_crypt-rtl.ko
insmod ieee80211_crypt_wep-rtl.ko
insmod ieee80211_crypt_tkip-rtl.ko
insmod ieee80211_crypt_ccmp-rtl.ko
insmod ieee80211-rtl.ko

cd ../rtl8187/
insmod r8187.ko $@
fi

cd ../
Reply With Quote
  #6 (permalink)  
Old 21-Oct-2008, 00:29
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 3,762
swerdna is on a distinguished reputation roadswerdna is on a distinguished reputation road
Default Re: how to make wlan0 start automatically?

Quote:
Originally Posted by tjwoosta View Post


so my question is what can i do to make my wireless start automatically?

is there another file that i can add those lines to?
/etc/init.d/boot.local (put in the line "ifup wlan0")
Also, check in Yast that you have it ticked to start at boot
__________________
Drop in and visit some time.
Reply With Quote
  #7 (permalink)  
Old 21-Oct-2008, 00:37
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

it worked!

thank you
Reply With Quote
  #8 (permalink)  
Old 26-Oct-2008, 18:59
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

Ok i spoke too soon


today i rebooted my computer and i noticed that the boot time is outrageously long

i booted with with no splash so i could see what was happening

as soon as /etc/init.d/boot.local gets loaded there are a bunch of lines that look like this

DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
DHCP Request blah blah blah blah
(blah blah blah blah is actuall like adresses and stuff obviously)

(i dont have a digital camera so i cant get a picture)

then after about 40-60 seconds it will say DHCP failed and it will continue to boot


when it finishes loading up the desktop my wireless works fine
(it just sucks that it takes an extra minute to boot, and its not necessary)

so what can i do now?

i have heard something about moving the modules into a certain directory so that they get loaded automatically but how would i go about doing this?
and how would i get ifconfig wlan0 up and dhclient wlan0 to run?
Reply With Quote
  #9 (permalink)  
Old 27-Oct-2008, 00:33
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 3,762
swerdna is on a distinguished reputation roadswerdna is on a distinguished reputation road
Default Re: how to make wlan0 start automatically?

See what happens if you change the setting from "start at boot" to "start manually" but leave the "ifup wlan0" line in /etc/init.d/boot.local.

I'm hoping the line "ifup wlan0" will trigger all that dhcp stuff at a later time, although I'm really not sure -- try it.
__________________
Drop in and visit some time.
Reply With Quote
  #10 (permalink)  
Old 27-Oct-2008, 00:44
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 30
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

Quote:
See what happens if you change the setting from "start at boot" to "start manually"
im confused, where is this setting?
Reply With Quote
Reply
Page 1 of 2 1 2 >


Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2