WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Get APPS with no internet on TC laptop? Load APS on boot from auto-mounted USB?  (Read 42053 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Once "lsmod" shows that the "rtl8187" module has been loaded, can you post the output of "dmesg | tail -25" here.

This should show which network interface has been assigned to your wireless hardware.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
New laptop DRIVE is screwed -  need syslinux.tcz, beaver2, perl (which I have) and dosfstools - which I have - is there a url to get these so I can install, get that drive up (currently partiontion is hosed - I dusted Windows 7 - just smoked it with a DEL - felt real good too  ;D )

« Last Edit: April 29, 2011, 03:51:10 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.


Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
My mistake - I forget to get the dmesg - just a sec...

OK - here we go

eth0:  setting half-duplex.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x100-0x3af:
intel_rng: FWH not detected
 clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x3e0-0x4ff: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0x820-0x8ff: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0xc00-0xcf7: clean.
pcmcia_socket pcmcia_socket1: cs: IO port probe 0xa00-0xaff: clean.
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: 00
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
cfg80211: Calling CRDA to update world regulatory domain
phy0: Selected rate control algorithm 'pid'
phy0: hwaddr 00:40:0c:00:41:d1, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2
rtl8187: Customer ID is 0x00
Registered led device: rtl8187-phy0::radio
Registered led device: rtl8187-phy0::tx
Registered led device: rtl8187-phy0::rx
rtl8187: wireless switch is on
usbcore: registered new interface driver rtl8187
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Hmm - strange that the "rtl8187" is registered as loaded, but it does not give a network interface.

What does "iwconfig" show?

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Something you said

"I wasn't aware debian (or the rest of the planet earth) had every single deb packaged up into a zip file or tarball  :P "

My reply: zip is normal for most users - gz is new - unfamiliar to most of humanity.
« Last Edit: April 29, 2011, 03:52:44 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Will check iwconfig in 30 seconds (have  to kill - reboot etc.)
no need to do that, just check the rtl8187 module is loaded with lsmod.

Quote
Any parameters for iwconfig ???

No, without parameters it should show all available network interfaces.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
iwconfig results
============

wlan0     IEEE 802.11bg  Mode:Managed  Access Point: Not-Associated  
          Tx-Power=0 dBm  
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          
Pipe didn't capture three lines above that

something about 0 and extensions

Is there a method to cut and paste from terminal? I can highlight but don't know how to COPY

Also ran (I think this was the command)

ifconfig results
===========

eth0      Link encap:Ethernet  HWaddr 00:0B:DB:A5:1C:A1  
          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)
          Interrupt:11 Base address:0xc00

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:600 (600.0 B)  TX bytes:600 (600.0 B)

~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
also ran dmesg right after boot - then scanned for tcp related info

NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Notice these lines?

RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

This is typical when Fragment threshold and RTS threshold are left wide open.

I have to crank them way down due to all the cross traffic on channels 11, 6, 7 - name it - otherwise the RTL tends to hop onto another SSID - there is a gent here - runs the local ISP wireless (I ran the first one - he called the FCC and had me busted -  ;D - but nothing came of it.

...anyway, he FLOODS this place with multiple antennas - and everyone who tries to do anything sees him - has to pay him - should bust him - I try to ignore him.

With W2K I can crank down those values - could provide a screen shot of the menu - and perhaps with IFCONFIG - I did see that in there and apparently its a loaded module.

That may be a key.
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
OK, looks good so far - your wireless has been assigned the network interface wlan0.

Now you need to enter details of the ssid you'd like to connect to and the encryption it uses.

For example, if the access point uses wep, you'd do it like this:
Code: [Select]
$ tce-load -i wireless-2.6.33.3-tinycore.tcz
$ tce-load -i wireless_tools.tcz
$ sudo modprobe lib80211_crypt_wep
$ sudo iwconfig wlan0 essid "ssid_name"
$ sudo iwconfig wlan0 key restricted 12:34:56:78:90:AB:CD:EF:12:34:56:78:90
$ sudo udhcpc -b -i wlan0

What are the details of the access point you'd like to connect to?

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks

I can dump it in a text file
Go to Terminal
CD to folder
then type ???
something like that - will that work?

going in

removed wep and restricted lines

left ssid line and dhcp

brb
« Last Edit: April 29, 2011, 03:53:57 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Is there a way to "SCRIPT" that?

You could try something like this:
Code: [Select]
#!/bin/sh -e
#
tce-load -i wireless-2.6.33.3-tinycore.tcz
tce-load -i wireless_tools.tcz
#
sudo iwconfig wlan0 essid "ssid_name"
#
sleep 2
sudo udhcpc -b -i wlan0
#
# EOF
..where you just need to substitute the actual ssid for "ssid_name"

You can use the tinycore built-in text editor like this "editor &", copy and paste the text above and save it as something like "wireless.sh"

To make the text file executable:
Code: [Select]
$ sudo chown tc:staff wireless.sh
$ chmod +x wireless.sh

Then to execute the script "/path-to-file/wireless.sh

To copy and paste with the mouse, highlight text and paste with the middle mouse button (or left and right buttons simultaneously if you only have two buttons)

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
executed loads, ssid and dhcp

said deleting router - nothing found

then did a

ping google.com

and it kept spitting back this darn message

64 bytes replied from 74.125.224.49

and it wouldn't stop - finally had to click the darn X to close it

so Juanito - it looks like you broke my laptop

 :o  :-*

perfect - ka-ching

« Last Edit: April 29, 2011, 03:54:25 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
If you got a reply from google, it looks like things are working.

To stop the ping, use something like:
Code: [Select]
$ sudo ping -c4 www.google.com..or use <ctrl-c> if you did not use "-c4"