WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: setting up wifi/ downloading .tcz packages WITHOUT app browser  (Read 16944 times)

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #30 on: September 18, 2010, 02:47:57 AM »
@combo3  your list of extensions is quite different from that listed in the repository (if that is indeed what the websight is known as).  i will download the .tcz files that are on your list too and see if that works better.

Those were all the extensions that downloaded after I did a clean boot (base system, no restore). It appears that the old tree is missing the ncurses related extensions.

Quote
wireless_tools.tcx lists wireless-KERNEL.tcz as a dependancy, i was unable to find it in the repository websight nor via google searches.

My bad. When you download wireless-tools via appbrowser, wireless-KERNEL.tcz is automatically replaced with the proper dep file (wireless-2.6.33.33-tinycore.tcz or wireless-2.6.33.33-tinycore64.tcz) depending on which kernel you are running (32 or 64 bit); so you'll need to change it manually.

Open a terminal, go into your tce/optional directory, and enter the following at the prompt:

Code: [Select]
echo wireless-2.6.33.3-tinycore.tcz > wireless_tools.tcz.dep

Quote
tc@box:~$ lspci
sh: lspci: not found

You need the following extensions & dependency files:

libpci.tcz
pci-utils.tcz
pci-utils.tcz.dep

Then install pci-utils with appbrowser (which will automatically load libpci)

Now for the rest:

1. Bring up the interface:

Code: [Select]
sudo ifconfig wlan0 up
2. Check your card is on:

Code: [Select]
ifconfig  
   You should see something similar to the following:
  
   wlan0     Link encap:Ethernet  HWaddr 00:11:2A:3B:44:5D  
             UP BROADCAST MULTICAST  MTU:1500  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

3. Scan for wireless networks:

Code: [Select]
sudo iwlist wlan0 scan  
   You should see a list similar to this:
  
   wlan0     Scan completed :
             Cell 01 - Address: 00:16:B6:C0:33:69
             Channel:6
             Frequency:2.437 GHz (Channel 6)
             Quality=15/100  Signal level=15/100  
             Encryption key:on
             ESSID:"secure-spot"
             Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                       24 Mb/s; 36 Mb/s; 54 Mb/s
             Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
             Mode:Master
             Extra:tsf=00000006d0fd3183
             Extra: Last beacon: 776ms ago
             IE: Unknown: 0006672D73706F74
             IE: Unknown: 010882848B962430486C
             IE: Unknown: 030106
             IE: Unknown: 2A0104
             IE: Unknown: 2F0104
             IE: Unknown: 32040C121860
             IE: Unknown: DD09001018020014000000
             IE: WPA Version 1
             Group Cipher : TKIP
             Pairwise Ciphers (1) : TKIP
             Authentication Suites (1) : PSK
            
4. Select the network you wish to connect to and note the type of encryption used

5. Connection examples:

   a) Non-secured network
      
Code: [Select]
sudo iwconfig wlan0 essid "linksys"  
   b) Secured network using WEP and a Hex key
    
Code: [Select]
sudo iwconfig wlan0 essid "default" key 12A1baf345d      
   c) Secured network using WEP and an ASCII password
      
Code: [Select]
sudo iwconfig wlan0 essid "my_home" key s:passphrase  
   d) Secured network using WPA - see below
      
6. Request an IP address
  
Code: [Select]
sudo udhcpc -b -i wlan0

7. Check your connection
  
Code: [Select]
ifconfig                                                                                                                                                                          
   You should see an IP address in the second line similar to the following:
  
  
wlan0    Link encap:Ethernet  HWaddr 00:11:2A:3B:44:5D  
             inet address:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
             UP BROADCAST MULTICAST  MTU:1500  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                                                                                                                                                                    

Connecting To a Secured Network Using WPA

1. Create a configuration file in /etc :

Code: [Select]
wpa_passphrase "your_network" "your_password" | sudo tee /etc/wpa_supplicant.conf  
2. Edit the config file as root user and add the following line at the top:

   ctrl_interface=/var/tmp/wpa_supplicant

   Your config file should look like similar to this:
  
Code: [Select]
ctrl_interface=/var/tmp/wpa_supplicant

network={
ssid="your_network"
#psk="your_password"
psk=bfd6f71da67902e35fb773cdeb77eef9867ee7bf1889a032365e808f0e81d2de
}


3. Copy and paste the following lines into a startup script named "wlanup"

#!/bin/sh
sudo wpa_supplicant -Bdd -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
sudo udhcpc -b -i wlan0


4. Make the script executable

Code: [Select]
chmod +x wlanup  
5. Run the script

Code: [Select]
./wlanup
Persistence

Once everything works, add the config file to .filetool.lst

Code: [Select]
echo etc/wpa_supplicant.conf >> /opt/.filetool.lst
« Last Edit: September 18, 2010, 03:28:33 AM by combo3 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #31 on: September 18, 2010, 03:34:52 AM »
Perhaps a change of subject of last post is in order?
Appears to me rather like (a complete) "How to connect to a wireless network"
Also useful for those already having appbrowser working in one or the other way, but no wireless connection yet.

Not to say this might be useful to be mentioned in wiki for its completeness of logical steps.

Note:
If output of
Code: [Select]
sudo iwlist 'interface' scan
does contain anything like TKIP or PSK, one would be sure network is WPA(2) encrypted.
However, such output is created by some drivers, but with others drivers there is no visible distinction between WEP or WPA(2) encryption.
« Last Edit: September 18, 2010, 05:13:46 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #32 on: September 18, 2010, 05:09:50 AM »
iwlist scan, not iwconfig
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #33 on: September 18, 2010, 05:16:15 AM »
Ooops, given enough eyeballs, all bugs are shallow...

Post which was written before my first coffee corrected.  :-[
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #34 on: September 18, 2010, 10:45:20 AM »
Perhaps a change of subject of last post is in order?
Appears to me rather like (a complete) "How to connect to a wireless network"

Well, the title of this thread is "Setting up wifi / downloading .tcz packages WITHOUT app browser"   ???

Plus we're 30+ posts in and the OP still doesn't have his wireless up. For a seasoned linux guru this might be simple, but to someone familiar with only a GUI it's a different story; so I don't think a little hand-holding is too off-topic.  ;)

However, I'll let the mods decide whether or not my instructions warrant splitting off to a separate topic.
« Last Edit: September 18, 2010, 10:46:52 AM by combo3 »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #35 on: September 18, 2010, 02:36:42 PM »
daxo-

To use the script just download it with your browser, then make executable in a terminal:

chmod +x filltcedir

Then run it in a terminal

./filltcedir



Then answer the questions.  While not a guarantee of getting wireless running, it may at least give a graphical environment to boot into with TC to work with.


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: setting up wifi/ downloading .tcz packages WITHOUT app browser
« Reply #36 on: September 18, 2010, 04:59:00 PM »
Perhaps a change of subject of last post is in order?
Appears to me rather like (a complete) "How to connect to a wireless network"

Well, the title of this thread is "Setting up wifi / downloading .tcz packages WITHOUT app browser"   ???

Plus we're 30+ posts in and the OP still doesn't have his wireless up. For a seasoned linux guru this might be simple, but to someone familiar with only a GUI it's a different story; so I don't think a little hand-holding is too off-topic.  ;)

However, I'll let the mods decide whether or not my instructions warrant splitting off to a separate topic.

No opposition to "off-topic" here, the opposite rather; afraid what would be valuable as a basic "How-to" for starters - and is generally valid (not even distro specific) - even if internet access of some sort other than wireless already exists - would be buried within a long thread.  :-\
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)