Automatically starting USB wireless adaptor? [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Automatically starting USB wireless adaptor? [Solved]

Postby godv2 » Wed Jun 10, 2009 16:34

Hey guys :)

I had a lot of trouble getting Sabayon (or any other linux distro) to talk to my Zoom Wireless-G USB adaptor.
Finally manged to get it working and after a lot of buggering about trying to get it to connect to the network, finally manged that as well. :)

However, whenever i reboot Sabayon, the network connection (the adaptor itself) is not active and i have to open konsole as root and use 'modprobe ndiswrapper' to get it running, at which point it all automatically connects and finds the network.

Is there a way of automatically running this command, a suitable alternative or a way to make it happen automatically on boot?

Many thanks,
TJ :wink:
Last edited by godv2 on Wed Jun 10, 2009 18:26, edited 2 times in total.
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Automatically starting USB wireless adaptor?

Postby micia » Wed Jun 10, 2009 16:44

did you try to do:
Code: Select all
update-modules

after you modprobe ndiswrapper?

After you do this, try to reboot to see if it works.
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Automatically starting USB wireless adaptor?

Postby Fitzcarraldo » Wed Jun 10, 2009 16:47

If no joy with that:

To load modules <module1>, <module2> and so on automatically at boot, add them to the end of the file /etc/conf.d/modules:

Code: Select all
modules="<module1> <module2> <module3> etc."


(If you've already got a line modules="<module1> etc." then just add the extra module to the end of the existing list on that line.)
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Automatically starting USB wireless adaptor?

Postby godv2 » Wed Jun 10, 2009 16:47

I'll try that, thanks :)
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Automatically starting USB wireless adaptor?

Postby godv2 » Wed Jun 10, 2009 17:34

Sorry for the stupid questions, but here goes: :?

I tried update-modules with no joy, so now i'm trying to edit the /etc/conf.d/modules file, which currently looks like this:

Code: Select all
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules="ohci1394"

# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"

# Give the modules some arguments if needed, per version if necessary.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
#module_ieee1394_args_2_6_23="tun ieee1394"
#module_ieee1394_args_2_6="tun"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.


how should i edit this to make it run the ndiswrapper command?
modules="????"

also, is this file write-protected, and how do i get around it? (feeling a bit stupid now... :( )

thanks for your help,
TJ :wink:
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Automatically starting USB wireless adaptor?

Postby micia » Wed Jun 10, 2009 18:05

You have to be root in order to modify files that are relevant for the entire system.
To become root open a console and type su:
Code: Select all
su

it will ask for your password, type in the administration password.
Now your console will change and you will have a '#' before the prompt.
This will advise you that are the root user.
Now open up the file with an editor, gedit if you use Gnome, or kwrite if you
use KDE.
Code: Select all
gedit /etc/conf.d/modules

Code: Select all
kwrite /etc/conf.d/modules


You should add "ndiswrapper" to a line that starts with "modules=", this will load ndiswrapper with any kernel you have.
In order to keep the file clean and readable I'd add it after the comment block.
(a comment is a line that begins with '#' and is ignored in the file)
Code: Select all
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules="ohci1394"

# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"

# Give the modules some arguments if needed, per version if necessary.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
#module_ieee1394_args_2_6_23="tun ieee1394"
#module_ieee1394_args_2_6="tun"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.

modules="ndiswrapper"

if you define a version after the 'modules' the module will be loaded only if your kernel matches the
specified version, this lets you control better how your modules behave in the system.
Save the file and reboot to see if it works fine.

To return a normal user type:
Code: Select all
exit

(or if you want to feel geek type
Code: Select all
reboot

as root and reboot your machine via command line :D )

Hope it helps.
Last edited by micia on Wed Jun 10, 2009 18:09, edited 1 time in total.
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Automatically starting USB wireless adaptor?

Postby godv2 » Wed Jun 10, 2009 18:09

Thanks, I'll give it a go :D
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Automatically starting USB wireless adaptor?

Postby godv2 » Wed Jun 10, 2009 18:18

Worked like a charm :)

Thanks to both of you! :D

Cheers,
TJ :mrgreen:
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: [Resolved] Automatically starting USB wireless adaptor?

Postby micia » Wed Jun 10, 2009 18:21

Just being picky, you should add [Solved] after the topic title, not [Resolved] before :mrgreen:

I'm happy you got it to work, enjoy Sabayon :)
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest