Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Translation of this page is incomplete.
??????Beini????Beini?????????????????Wiki????????
????????????????????????????????????

???????????????????????????????????????^

Easy Way: wicd

??????????wicd

????????????Wifi??????????????wicd(???????????pygtk.tcz????????????)????

????????????????????? ???????http://wicd.sourceforge.net/ ???????wicd??? (PS:wicd?????????????????????????????????)?

???”wicd.tcz”????????????wicd??????

sudo wicd-start

???????????wicd??????

????wicd?????????????????????????????Atheros?????????????(?????????

(Network Setup - Atheros Wireless Cards)??????????????????????????)????????????????

?ath5k?ath9k?tinycore 2.0????????????????????Atheros??????

TIP:??????????????????????wicd??????????????????????????tce-load?????????? ???????????????????????????????????wicd???????????????????????????????

????wicd?????????????????????

bash.tcz dbus-python.tcz libglade.tcz libiconv.tcz pygtk.tcz shared-mime-info.tcz wpa_supplicant.tcz urwid.tcz librsvg.tcz dbus-glib.tcz python.tcz dbus.tcz glib2.tcz expat2.tcz ttf-bitstream-vera.tcz gtk2.tcz pygobject.tcz pycairo.tcz gtk2.tcz glib2.tcz libxml2.tcz openssl-0.9.8.tcz wireless_tools.tcz libgsf.tcz libcroco.tcz pango.tcz cairo.tcz libffi.tcz atk.tcz Xorg-7.5-lib.tcz

????????wpa_gui

???????????????wpa_supplicant?GUI??wpa_gui?wpa_supplicant?????????IEEE 802.1X/WPA???????

WPA??????????????????????????IEEE 802.11????????(???????????????????it

controls the roaming and IEEE 802.11 authentication/association of the wlan driver.)

????????(wpa_gui)??(wpa_supplicant supports a text-based frontend (wpa_cli) and a GUI (wpa_gui).)?

??????????wpa_supplicant?wpa_gui????????????????wpa_supplicant(???????????????)? (???Install wpa_supplicant and wpa_gui. Then configure wpa_supplicant for remote control by creating a configuration file

(this has to be done only once):)

Create a configuration file ”/opt/wpa.cfg” with the following content: ??”/opt/wpa.cfg”????????

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=staff
update_config=1

????????????????????persistent???

?????????????????wpa_supplicant???????????????????????????wpa_supplicant????

????????/opt/bootlocal.sh??

wpa_supplicant -Dwext -iwlan0 -c/opt/wpa.cfg -B

???????????????????”wlan0”????????????

?????????????wpa_gui????????????

????????wireless tools

???????????? 1.??tinycore??????(?????tce?????backup/restore??????????/opt??)(??? You have a working

tinycore system with some support for persistence (a tce directory and either a backup/restore point or a persistent /opt

directory) ←- link to appropriate howtos) 2.?????????????Atheros wifi?? 3.??????????????WPA-PSK???AP

?????

1.??tynicore????????????

  • wireless_tools.tcz – ??iwconfig???????
  • wireless-2.6.29.1-tinycore.tcz – ????????wifi??
  • wpa-supplicant.tcz(??openssl-0.9.8.tcz???) – ??????AP?????????????????????????????

?????????????????Tinycore?tce????????????????????

PS?????http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/tcz_2x.html

???????????????????????Tinycore??AppBrowser?????????????????????????????????????????????????????????????TCL Repository(??TinyCore Linux????)??????AppBrowser??????????????tce????????????????????????????

http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/wpa-supplicant.tcz ?????????????)

2.?????????????????????????????

iwconfig

???????????????????????????????????????wireless-2.6.29.1-tinycore??????????

?????????Atheros(ath5k/ath9k)????????????????????????????(??????Atheros??)

modprobe -l grep ath

???????ath9k.ko.gz?ath5k.ko.gz

?????????:

lsmod grep ath

???????????modprobe??????????

????????AP

1.?????????AP?????????????????????

iwconfig *interface* essid *network-id*

???????????AP

iwlist scanning

??????????????AP(???????????)

iwconfig *interface* essid any

2.??????????(????IP?)??????control panel??netcardconfig??????????”eth0”??????????

??(??wlan0)??”use DHCP Broadcast?”???yes???”Save Configuration”??????yes???”apply”???????????

???/opt/*interface*.sh????????/opt/bootlocal.sh (??????????)????/opt/*interface*.sh?????/opt?

????????(If your /opt directory is not persistent)??????????????????????????????(make

sure you do a backup when you boot or you will need to rerun this tool each time you boot.)?

???????netcardconfig????????????udhcpc?????????:

udhcpc -i *interface*

3.?????????????????????????????????????udhcpc(?????netcardconfig?????????

udncpc?????????????????????????)

4.???????????????1,2??????????????????/opt/bootlocal.sh?????????????????

?/opt/*interface*.sh??(????????)

???????WPA-PSK???AP

?????????????????AP?SSID????

1.???????????

wpa_passphrase *essid* *passphrase*

For example: ???

~$ wpa_passphrase mynetwork mypassphrase network={

ssid="mynetwork"
#psk="mypassphrase"
psk=f242925f83787084d58101d5eb52485989e2a553983bfe6fc5b8d27fdfa063bd

}

2.???????????????????????????????ssid?psk??????1????????

ctrl_interface=/var/run/wpa_supplicant

network={

      ssid=mynetwork
      proto=WPA
      key_mgmt=WPA-PSK
      pairwise=TKIP
      group=TKIP
      psk=f242925f83787084d58101d5eb52485989e2a553983bfe6fc5b8d27fdfa063bd

}

????????????????WPA-PSK???????????????????(??WEP)???????????????????

??????????????wpa_supplicant??????????(????????????WPA-PSK???????????????

??????network?)

????????/opt/wpa_configure.conf(???????????????(????then to ensure it is persistent in the system)

????????opt/wpa_configure.conf ??? /opt/.filetool.lst???)

3.??????AP?????????????

wpa_supplicant -i*interface* -c/opt/wpa_configure.conf &

(????iwconfig????????????????)

4.??????????(????IP?)??????control panel??netcardconfig??????????”eth0”??????????

??(??wlan0)??”use DHCP Broadcast?”???yes???”Save Configuration”??????yes???”apply”???????????

???/opt/*interface*.sh????????/opt/bootlocal.sh (??????????)????/opt/*interface*.sh?????/opt?

????????(If your /opt directory is not persistent)??????????????????????????????(make

sure you do a backup when you boot or you will need to rerun this tool each time you boot.)?

???????netcardconfig????????????udhcpc?????????:

udhcpc -i *interface*

5.?????????????????????????????????????udhcpc(?????netcardconfig?????????

udncpc?????????????????????????)

6.???????????????3,4??????????????????/opt/bootlocal.sh?????????????????

?/opt/*interface*.sh??(????????)

?????????????????

???????????

?????????AP??????WEP???AP

???????????????????ESSID (???) and WEP??(????????????)

#!/bin/sh
  - Example usage:
  - 
  - sudo sh mywifi.sh
  - 
  - Can automate this stuff by putting into /opt/bootlocal.sh (without the need for sudo)
  - using cpanel, network autocreates /opt/my*

  - Determine device name (assume one wifi device; use head, etc. to restrict to first, last...)
|wlan=`iwconfig 2>/dev/null |grep IEEE |awk '{print $1}' `|
echo $wlan

essid=myessid
  - set wepkey to hex digits, leave blank if no wep-security is used
wepkey=deadbeafdeadbeaf

echo SID ${essid}
if [[ -n "${wep}" ]]
then              
    echo WEPKEY $wepkey
fi

iwconfig ${wlan}

iwconfig ${wlan} essid ${essid}
if [[ -n "${wep}" ]]
then
    iwconfig ${wlan} enc ${wepkey}
    iwconfig ${wlan} key ${wepkey}
fi
iwconfig ${wlan} commit

  - now setup IP address, route, gateway, etc.
  - Use DHCP
  - after netcardconfig and save settings
  - TC@BOX:~$ cat /opt/eth1.sh 
  - !/bin/sh
pkill udhcpc
udhcpc -H box -b -i ${wlan}

Print/export