Results 1 to 2 of 2

Thread: Here's how to use your Prism2 USB device with a WEP AP

  1. #1
    Member registered user
    Join Date
    Jul 2004
    Posts
    30

    Here's how to use your Prism2 USB device with a WEP AP

    I'd been looking for a way to use a typical USB Prism2 device with knoppix - esp. with WEP enabled (since most networks these days seem to have WEP).

    From the steps listed in the README, I could get nowhere, esp. with WEP, and the documentation was, as much linux documentation is for me, completely over my head. Hunting around here wasn't helping much either -- seems a lot of other people had the same problem. (Which is why I am posting this).

    All I wanted was a simple post-boot script that *just did it*, generically, with the minimum of special info needed. Obviously, I wanted no monkeying around with boot scripts. In a way, it was the missing piece for Knoppix, because to me USB is the only kind of networking that really fits the non-invasive, low-impact philosophy of the bootable CD approach.

    Well, thanks to Rudolf Mittelmann's kind sharing on his webpage, I now have a script that gets me 99% of the way. His page is at:

    http://artm-friends.at/rm/mylinux.php#atwm

    Another useful page:
    http://www.siliconvalleyccie.com/lin...mp11-linux.htm

    His script, with just a couple characters changed to suit my understanding of the docs, is below. Note that to translate your WEP key to the 4 hex strings needed in the script, run

    nwepgen <put plaintext WEP key here>

    Incidentally, the last 1% I can't solve yet: I'm not automatically accessing a DNS server through the AP, like the device apparently does in Windows. Anybody know what I need to set to change that? I've tried netcardconfig, but don't really know what to set. Thanks if you have any info.

    #!/bin/sh
    # ws (wlan-start)
    # this script should initialize the GemTek WL-388 mini-USB WLAN module
    # rudolf.mittelmann@aon.at 2002-10-22
    # using linux-wlan-ng-0.1.16-pre6
    PATH=/sbin:$PATH
    modprobe prism2_usb prism2_doreset=1
    wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
    wlanctl-ng wlan0 lnxreq_hostwep decrypt=true encrypt=true # for me this must be host-based encrypt.
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0 # which WEP key to use
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=<your:first:key:g oes:here>
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey1=<your:second:key: goes:here>
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey2=<your:third:key:g oes:here>
    wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey3=<your:fourth:key: goes:here>
    wlanctl-ng wlan0 lnxreq_autojoin ssid=<your-ESSID-goes-here> authtype=opensystem
    #authtype should be "sharedkey" but that does not work for me
    ifconfig wlan0 192.168.1.50 # your local WLAN IP address
    route add default gw 192.168.1.1 # route to your router IP address

  2. #2
    Junior Member
    Join Date
    Dec 2003
    Posts
    1
    I am using a prism2_cs card (PCMCIA card) with knoppix 3.6 and the same procedure has worked for me with a few changes:
    a.) If you boot linux with the 2.6.x kernel you will not have either prism2_cs or prism2_usb, so stick with the 2.4 kernel
    b.) For me "authtype=sharedkey" works, so I used this instead of "opensystem"
    c.) I only do the steps for the default key and do not worry about the others.
    d.) I use DHCP so I replace the last two lines of the script with
    Code:
    pump -i wlan0

Similar Threads

  1. Replies: 4
    Last Post: 06-15-2005, 03:21 AM
  2. Prism2 USB driver
    By Splood in forum Hardware & Booting
    Replies: 2
    Last Post: 04-13-2005, 11:34 AM
  3. Cant use CD rom device "not a valid block device"
    By YuXeL in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 12-08-2003, 01:48 AM
  4. Prism2 Wireless Support
    By opel70 in forum Hardware & Booting
    Replies: 12
    Last Post: 06-29-2003, 05:13 AM
  5. How to get D-Link 650 (or other Prism2 cards) working
    By nzou in forum Hardware & Booting
    Replies: 6
    Last Post: 02-24-2003, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory picture

Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory

$16.29



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture

8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A

$12.00



TeamGroup 16GB PC4 2666 PC4 21300 DDR4 2666MHz 1.2V CL19 Desktop RAM Memory picture

TeamGroup 16GB PC4 2666 PC4 21300 DDR4 2666MHz 1.2V CL19 Desktop RAM Memory

$27.95



A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM picture

A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM

$87.96



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96