Tiny Core Linux
Tiny Core Base => TCB Tips & Tricks => Topic started by: BobTarragon on July 29, 2009, 03:35:33 PM
-
It's good to be back, I have nice memories about DSL and it is especially nice to see some familiar people around :)
In my first post let me share my successful activation of wifi with WEP. I've read bits and pieces here on the forum and elsewhere.
In a Terminal type:
sudo iwconfig wlan0 essid "MY ESSID"
sudo iwconfig wlan0 mode managed key "MY KEY"
sudo ifconfig wlan0 up
sudo udhcpc -i wlan0
To do this at every boot, add the above (without sudo) to /opt/bootlocal.sh
Please reply if there is a better way of doing this.
Edit: added how to make this run at every boot.
-
not better, but shorter:
1. cpanel, dhcp server on wlan0;
2. sudo iwconfig wlan0 essid MYESSID key MYKEY
-
iirc, if you use the gui, i.e. from cpanel, a script will be generated and saved as something like /opt/my*.sh
-
iirc, if you use the gui, i.e. from cpanel, a script will be generated and saved as something like /opt/my*.sh
So I use Netcardconfig in Control Panel (called Panel in the bar) and set interface to wlan0, set Use DHCP Broadcast to yes and then click Apply. This generates /opt/wlan0.sh which contains:
#!/bin/sh
pkill udhcpc
udhcpc -H box -b -i wlan0
I don't think this will work... or did you mean that this file can then be modified by adding all else needed, and then /opt/wlan0.sh added to /opt/.filetool.lst ?
-
Yes, something like that. The user spillz recently added a "setting up wifi" wiki article which may be of interest.
-
Here's what I've got in bootlocal.sh on my 1000H eee pc.
Notes:
1. No need for sudo
2. The SSID is set twice due to a bug in the driver (though this may be fixed)
3. driver is in tc2.x in wireless-2.6.29.1-tinycore.tcem, but compiling from source in tc1.x wasn't hard.
#!/bin/sh
# put other system startup commands here
ifconfig ra0 up
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=WPAPSK
iwpriv ra0 set EncrypType=TKIP
iwpriv ra0 set SSID=MYSSID
iwpriv ra0 set WPAPSK=MYVERYLONGHEX #use wpa_passphrase to generate
iwpriv ra0 set SSID=MYSSID
udhcpc -b -i ra0