Networking Forums

Networking Forums > Computer Networking > Linux Networking > Add ndiswrapper to startup

Reply
Thread Tools Display Modes

Add ndiswrapper to startup

 
 
Chen Yinghe
Guest
Posts: n/a

 
      10-14-2007, 11:52 AM
Hi folks,

How to make ndiswrapper work at startup? I can make it work manually,
and I wrote a script like below:

/sbin/iwconfig wlan0 essid aaaabb
/sbin/iwconfig wlan0 key open xxxxxxxxxxx
/sbin/ifconfig wlan0 up
/sbin/dhclient wlan0

It works perfectly while I run it manually from bash shell, but just
want to integrate into the startup process to make it work automatically.

Thanks,
 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      10-14-2007, 12:04 PM
Chen Yinghe wrote:
> Hi folks,
>
> How to make ndiswrapper work at startup? I can make it work manually,
> and I wrote a script like below:
>
> /sbin/iwconfig wlan0 essid aaaabb
> /sbin/iwconfig wlan0 key open xxxxxxxxxxx
> /sbin/ifconfig wlan0 up
> /sbin/dhclient wlan0
>
> It works perfectly while I run it manually from bash shell, but just
> want to integrate into the startup process to make it work automatically.
>
> Thanks,

It depends on your distribution. In mine (Debian), you edit the file
/etc/network/interfaces

Robert
 
Reply With Quote
 
Yinghe Chen
Guest
Posts: n/a

 
      10-14-2007, 01:22 PM
Hi,

I am using Fedora 7, is it same configuration?

Thanks,

"Robert Harris" <(E-Mail Removed)> wrote in message
news:XAnQi.337729$(E-Mail Removed) o.uk...
> Chen Yinghe wrote:
>> Hi folks,
>>
>> How to make ndiswrapper work at startup? I can make it work manually,
>> and I wrote a script like below:
>>
>> /sbin/iwconfig wlan0 essid aaaabb
>> /sbin/iwconfig wlan0 key open xxxxxxxxxxx
>> /sbin/ifconfig wlan0 up
>> /sbin/dhclient wlan0
>>
>> It works perfectly while I run it manually from bash shell, but just
>> want to integrate into the startup process to make it work automatically.
>>
>> Thanks,

> It depends on your distribution. In mine (Debian), you edit the file
> /etc/network/interfaces
>
> Robert



 
Reply With Quote
 
Lasse Jensen
Guest
Posts: n/a

 
      10-14-2007, 05:16 PM
Chen Yinghe wrote:

> Hi folks,
>
> How to make ndiswrapper work at startup? I can make it work manually,
> and I wrote a script like below:
>
> /sbin/iwconfig wlan0 essid aaaabb
> /sbin/iwconfig wlan0 key open xxxxxxxxxxx
> /sbin/ifconfig wlan0 up
> /sbin/dhclient wlan0
>
> It works perfectly while I run it manually from bash shell, but just
> want to integrate into the startup process to make it work automatically.


ln -s [yourscript] /etc/rc2.d/S90homebrewscripttoenablewireless

Replace rc2 with the runlevel your distro boots into by default, if it's not
runlevel 2.

--
Lasse Jensen [fafler at g mail dot com]
Linux, the choice of a GNU generation.
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      10-14-2007, 06:42 PM
Yinghe Chen wrote:
> Hi,
>
> I am using Fedora 7, is it same configuration?


No. It is something like /etc/sysconfig/networking/devices/ifcfg-wlan0

"man 7 wireless" tells you much of the story.

Robert

>
> Thanks,
>
> "Robert Harris" <(E-Mail Removed)> wrote in message
> news:XAnQi.337729$(E-Mail Removed) o.uk...
>> Chen Yinghe wrote:
>>> Hi folks,
>>>
>>> How to make ndiswrapper work at startup? I can make it work manually,
>>> and I wrote a script like below:
>>>
>>> /sbin/iwconfig wlan0 essid aaaabb
>>> /sbin/iwconfig wlan0 key open xxxxxxxxxxx
>>> /sbin/ifconfig wlan0 up
>>> /sbin/dhclient wlan0
>>>
>>> It works perfectly while I run it manually from bash shell, but just
>>> want to integrate into the startup process to make it work automatically.
>>>
>>> Thanks,

>> It depends on your distribution. In mine (Debian), you edit the file
>> /etc/network/interfaces
>>
>> Robert

>
>

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-14-2007, 10:24 PM
Chen Yinghe <(E-Mail Removed)> writes:

>Hi folks,


>How to make ndiswrapper work at startup? I can make it work manually,
>and I wrote a script like below:


>/sbin/iwconfig wlan0 essid aaaabb
>/sbin/iwconfig wlan0 key open xxxxxxxxxxx
>/sbin/ifconfig wlan0 up
>/sbin/dhclient wlan0



Under what distribution of linux?
Under Mandriva and I think some others, put a file
/etc/sysconfig/network-scripts/ifcfg-wlan0
and into that file put the various run time parameters. Or use mcc to set
up the file for you and tell it to connect at boot.


>It works perfectly while I run it manually from bash shell, but just
>want to integrate into the startup process to make it work automatically.


Eithr a script in /etc/rc{3,5}.d or at the end of /etc/rc.d/rc.local



>Thanks,

 
Reply With Quote
 
Hactar
Guest
Posts: n/a

 
      10-18-2007, 10:07 PM
OK. I use a laptop at school (where I am now). It connects to a
wireless network (802.11g). They (admin.$SCHOOL.edu) have blocked the
port (<1024) to which I have sshd forwarded (I no longer leave it at
22). But, I can ssh to $OTHERMACHINE.$SCHOOL.edu, get a shell prompt,
and from there ssh to $HOME. The question is, is there any way to send
an X display through this? Occasionally, it's handy to run a graphical
app at home and have it display here.

--
"The Web brings people together because no matter what kind of a
twisted sexual mutant you happen to be, you've got millions of pals
out there. Type in 'Find people that have sex with goats that are on
fire' and the computer will say, 'Specify type of goat.'" -- Rich Jeni
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      10-18-2007, 10:34 PM
On 2007-10-18, Hactar <(E-Mail Removed)> wrote:
> OK. I use a laptop at school (where I am now). It connects to a
> wireless network (802.11g). They (admin.$SCHOOL.edu) have blocked the
> port (<1024) to which I have sshd forwarded (I no longer leave it at
> 22). But, I can ssh to $OTHERMACHINE.$SCHOOL.edu, get a shell prompt,
> and from there ssh to $HOME. The question is, is there any way to send
> an X display through this? Occasionally, it's handy to run a graphical
> app at home and have it display here.


Just turn on X11 tunnelling for both ssh sessions.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Bonsai Bonanza
Guest
Posts: n/a

 
      10-18-2007, 11:25 PM
Hactar wrote:
> OK. I use a laptop at school (where I am now). It connects to a
> wireless network (802.11g). They (admin.$SCHOOL.edu) have blocked the
> port (<1024) to which I have sshd forwarded (I no longer leave it at
> 22). But, I can ssh to $OTHERMACHINE.$SCHOOL.edu, get a shell prompt,
> and from there ssh to $HOME. The question is, is there any way to send
> an X display through this? Occasionally, it's handy to run a graphical
> app at home and have it display here.
>


ssh -X -C <hostname>
run "xclock"
and it should show up on your screen.

make sure it is enabled on the server:
grep X11 /etc/sshd/sshd_conf

--
Alexander N. Spitzer
Bonsai Bonanza
http://www.BonsaiBonanza.com
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      10-18-2007, 11:47 PM
On 2007-10-18, Bonsai Bonanza <(E-Mail Removed)> wrote:
> Hactar wrote:
>> OK. I use a laptop at school (where I am now). It connects to a
>> wireless network (802.11g). They (admin.$SCHOOL.edu) have blocked the
>> port (<1024) to which I have sshd forwarded (I no longer leave it at
>> 22). But, I can ssh to $OTHERMACHINE.$SCHOOL.edu, get a shell prompt,
>> and from there ssh to $HOME. The question is, is there any way to send
>> an X display through this? Occasionally, it's handy to run a graphical
>> app at home and have it display here.

>
> ssh -X -C <hostname>
> run "xclock"
> and it should show up on your screen.


....through *both* hosts.

> make sure it is enabled on the server:
> grep X11 /etc/sshd/sshd_conf


....on *both* hosts (the OP probably doesn't have access to verify that
it's enabled on the school's servers, so he'll just have to try it).

BTW, to the OP, don't followup another post to make a new thread.
Create a new one, so that threading news agents don't bury your message
in another thread.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper drops within 4 minutes of startup??? b Linux Networking 2 09-03-2007 06:41 PM
ndiswrapper and ACX100 Bill Linux Networking 8 01-21-2006 02:15 PM
ndiswrapper-no can do? jwc Linux Networking 2 11-05-2005 02:12 PM
1) ndiswrapper an 2) multiple AP Julian Bessenroth Linux Networking 0 07-18-2005 03:52 PM
NDISWrapper - almost there - but need a little help The Etobian Linux Networking 2 07-04-2004 10:06 PM



1 2 3 4 5 6 7 8 9 10 11