Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: droid on April 29, 2009, 06:11:23 AM
-
Hi, could anyone explain to me how to get wifi to work?
Thanks
-
Yes.
It was explained before.
load extensions:
madwifi-hal.tcem
wireless_tools.tcel
with this you can see with lsmod that the modules are loaded:
ath_hal, wlan, ath_pci
now go to control panel and select Netcardconfig:
substitute eth0 with ath0 and if you have static ip put the dates and saves
then in a terminal:
sudo ifconfig ath0 up
sudo iwconfig ath0 essid " :o your essid :o"
sudo iwconfig ath0 key :-X yourkey :-X
with this you should have the connection ready
if you want to automate all at boot:
put the extensions in a tce directory to load at boot
add to /opt/bootlocal.sh: /opt/ath0.sh & (this is the result of the Netcardconfig from control panel)
add to .xsession in tc home: connection.sh &
create in tc home a file called connection.sh (and change permissions to execute it) with:
sudo ifconfig ath0 up
sudo iwconfig ath0 essid " :o your essid :o"
sudo iwconfig ath0 key :-X yourkey :-X
and the next time you boot you have the connection running
(the light of wifi connection is down but the connection-key works)
Hope works for you, in my AAO works OK
-
Thank you, where can I find the madwifi-hal extension? cant find it in appbrowser.
-
Thank you, where can I find the madwifi-hal extension? cant find it in appbrowser.
there does not seem to be madwifi-hal for 2.x yet. i can only find it for 1.x, which i assume means the 1.x version is not compatible. (or it may not be needed in 2.x?)
-
It would need a recompile to work with the new kernel. On the other hand ath5k and ath9k are in the wireless extension for tc 2.x, so one of them might be able to run your wifi card. Worth a try I think.
-
ok, how do I go about using the ath5k driver?
-
appbrowser --> look for wireless --> download both of the related extensions (wireless_2.6.29.1 and wireless_tools)
-
It would need a recompile to work with the new kernel.
I guess I'm just going to wait for 2.0rc(x).
-
right, got the two wireless extensions and tried
iwconfig
ifconfig wlan0 up
iwconfig wlan0 essid <ESSID>
iwconfig wlan0 key <KEY>
udhcpc wlan0
if I use, "iwlist wlan0 scan" i can see my router.
I dont seem to be getting an error, but still cant get online.
-
Is your router using some kind of encryption? (If not, it should be.) If it is, you may need to acquire and configure the package wpa-supplicant.tce. This is what got my Acer Aspire One working with the home wireless network. If you need help setting up the file /etc/wpa_supplicant.conf, search the forums for examples to get you started.
-
yes, router does use encryption. looked up wpa_supplicant and trying to create /etc/wpa_supplicant.conf with
network={
ssid="home"
scan_ssid=1
key_mgmt=WPA-PSK
psk="key"
}
but I cant seem to create the file with vi, I can open the editor but cant save anything, tried using sudo. google suggested ZZ, WQ and <esc> followed by <ENTER> <X>, none of which work...help?!?
-
sudo su
echo "network={" > /etc/wpa_supplicant.conf
echo "ssid=\"home\"" >> /etc/wpa_supplicant.conf
echo "scan_ssid=1" >> /etc/wpa_supplicant.conf
echo "" >> /etc/wpa_supplicant.conf
echo "key_mgmt=WPA-PSK" >> /etc/wpa_supplicant.conf
echo "" >> /etc/wpa_supplicant.conf
echo "psk=\"key\"" >> /etc/wpa_supplicant.conf
echo "" >> /etc/wpa_supplicant.conf
echo "}" >> /etc/wpa_supplicant.conf
edit:
you could also just sudo su, then cat > /etc/wpa_supplicant.conf, then type your lines in and ctrl+c.
-
but I cant seem to create the file with vi, I can open the editor but cant save anything, tried using sudo. google suggested ZZ, WQ and <esc> followed by <ENTER> <X>, none of which work...help?!?
You can see an example in TC's installation guide on our website. Some of the commands are as follows:<esc>ZZ
or<esc>:wq
or<esc>:x
Note that they are case sensitive.
[...]then cat > /etc/wpa_supplicant.conf, then type your lines in and ctrl+c.
Afaik using eof is the standard (ctrl+d)
-
Afaik using eof is the standard (ctrl+d)
ah, i once thought it was ctrl-z, but you know what that does. ctrl-c works so i use that. i didn't know about ctrl-d, thanks.
-
Probably thinking with win/dos
-
Awesome. WIFI works. thank you very much people. I shall write it up later. :) but..
I installed tinycore according to the install instructions, installed the wireless extensions and then rebooted and the wireless exetensions have disappeared. if I type iwconfig I just get "sh: iwconfig not found"
-
ok, sorted that out by adding tce=sda1 boot option to kernel line.
im a little confused over changing things like opt/bootlocal.sh, every change I make dissappears after reboot
I seem to have /opt and /mnt/sda1/opt as well
-
Probably thinking with win/dos
certainly not! just never heard of ctrl-d. :)
-
ok, sorted that out by adding tce=sda1 boot option to kernel line.
im a little confused over changing things like opt/bootlocal.sh, every change I make dissappears after reboot
I seem to have /opt and /mnt/sda1/opt as well
Do you have a backup/restore defined? If so the /opt/bootlocal.sh is included in a normal backup.
-
in menu.lst i put
kernel /boot/bzImage quiet tce=sda1 local=sda1 restore=sda1 home=sda1
is that right?
if I change /opt/bootlocal.sh and reboot, the changes have still disappeared.
-
Try adding waitusb=5 to your options.
-
just tried that and still got same problem