monkeyking
12-28-2004, 05:53 AM
my wireless network card (an rtl8180) is working with wep. :D
But my (network)configs isn't saved correctly when I do "save knoppix configurations".
(I'm doing a myconfig=scan at boot)
Well it was when I only had 1 network card but I have another "nonwireless" network card and it seems that the automated "save knoppix configurations" can't handle it when you got more than one. :?
I can type in the commands at startup and then it works, but I want to run a script on startup that does it.
What I type in after my wm is loaded is.
su root
mount /mnt/sda1
ndiswrapper -i /mnt/sda1/Wlan/net8180.inf
modprobe ndiswrapper
iwconfig wlan0 mode Managed
iwconfig wlan0 key MYKEY
iwconfig wlan0 essid MYNETWORKID
iwconfig wlan0 commit
/sbin/ifconfig wlan0 192.168.0.10 up
/sbin/route add default gw 192.168.0.1 wlan0
My question is then.
1. Where should I but my nifty little bashscript and how do I make sure that it is being run at boot time.
2. It seems like there is a problem with the last to lines [ the /sbin ones], it worked the first time. So what programs does the nice "netcardconfig" program call, cause as it is. It opens up an xdialog and I have to press yes and the select my wlan0. And I just want it to get an ip from my router.
Thanks in advance and I hope you had a nice christmas
But my (network)configs isn't saved correctly when I do "save knoppix configurations".
(I'm doing a myconfig=scan at boot)
Well it was when I only had 1 network card but I have another "nonwireless" network card and it seems that the automated "save knoppix configurations" can't handle it when you got more than one. :?
I can type in the commands at startup and then it works, but I want to run a script on startup that does it.
What I type in after my wm is loaded is.
su root
mount /mnt/sda1
ndiswrapper -i /mnt/sda1/Wlan/net8180.inf
modprobe ndiswrapper
iwconfig wlan0 mode Managed
iwconfig wlan0 key MYKEY
iwconfig wlan0 essid MYNETWORKID
iwconfig wlan0 commit
/sbin/ifconfig wlan0 192.168.0.10 up
/sbin/route add default gw 192.168.0.1 wlan0
My question is then.
1. Where should I but my nifty little bashscript and how do I make sure that it is being run at boot time.
2. It seems like there is a problem with the last to lines [ the /sbin ones], it worked the first time. So what programs does the nice "netcardconfig" program call, cause as it is. It opens up an xdialog and I have to press yes and the select my wlan0. And I just want it to get an ip from my router.
Thanks in advance and I hope you had a nice christmas