View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Wireless USB Connection
PostPosted: Sun Feb 29, 2004 10:16 am 
I have no direct internet connection at my home. I split the cost of high speed internet with my neighbor (he has the wired connection). I use MN-510 Microsoft USB access points for all computing devices in my home. How do I install a driver that will work with this version of Knoppmyth? I looked online and found the following file (kernel-wlan-ng-usb-0.2.1-pre14.i686.rpm), but it was on a page that was talking about RedHat 9.0 (http://prism2.unixguru.raleigh.nc.us/v21-rh9-index.html). Will this file work? Will it change the firmware of the device and redner it useless for Windows boxes? If it will work, how do I install such a file (what are the command lines to type in?). I am so new to linux and am completely lost here. My MythTV works great with the installed KnoppMyth, but I am looking to attain all of its features such as news, weather, and program listings updates via the web. Is there a different file or way to install this hardware onto this Myth box?


Top
  
 
 Post subject:
PostPosted: Sun Feb 29, 2004 1:00 pm 
Offline
Joined: Fri Nov 14, 2003 4:02 pm
Posts: 68
Location: Edmonton, Alberta, Canada
it looks like the prism2 drivers. I think they are included in r4v2. Just hook it up to the usb port and it might get recognized on a reboot. There might possibly be a script you have to run or something..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 29, 2004 1:09 pm 
Offline
Joined: Wed Feb 11, 2004 7:36 am
Posts: 15
Location: Germany, Pforzheim
Have a look at my post in

http://mysettopbox.tv/phpBB2/viewtopic.php?t=705

If the linux-wlan-ng drivers will work with your card,
check on website, then just go and compile them.

_________________
cu,
dev


Top
 Profile  
 
PostPosted: Sun Feb 29, 2004 7:49 pm 
Dear Friend,

It looks like you are the one with the solution to my problem, but I guess I am so new to Linux that I have no clue what some of the stuff you said means in normal language. For example:

download it from here ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/

I went to the webpage you said and I saw my USB adapter is on the list so I think I'm all good to continue. I can handle the downloading it and burning it let's say, to a CD-RW and putting that into the DVD-ROM of my knoppmyth box. Literally, physically put it in. But I do not know hot to unpack it or know anything about what you say after unpacking it. I know how to exit Knoppmyth and get to the xtrace place where you can do command line types of things. So how do I unpack it or am I still in the wrong place to unpack and do whatever else you say to do?

What are the exact commands I need to enter (and in which order) and where?

- unpack it @ /usr/src/modules
- cd /usr/src/modules/linux-wlan-ng....
- while [ $U != "got it" ];do vi README;done
- make config; make all; make install
- adjust /etc/modutils/linux-wlan-ng

don't forget update-modules! (how in the world do I do this?)

- adjust /etc/network/interfaces, /etc/wlan/wlan.conf
and /etc/wlan/wlancfg-*
- link /etc/init.d/wlan into the rc?.d dirs


I see another reply from billytwowilly that says I can just plug it in and reboot the machine. I will try this and let you know how it works. Maybe I don't have to do all of this command line stuff above?!!??! Question--where can I enter in a WEP encryption code?

THAK YOU EVERYONE!!!!!!!!!!


Top
  
 
 Post subject:
PostPosted: Sun Feb 29, 2004 11:54 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
well to enter a wep encryption code you will have to get a little dirty at the command line. you need to edit the /etc/network/interfaces file.

you may want to run vimtutor to learn how to use vi then once you know enough to modify files just do

vi /etc/network/interfaces

and change the wlan0 to look like this

Code:
auto wlan0
iface wlan0 inet dhcp
   wireless_essid yourssid
   wireless_mod  managed
   wireless_key thisisthereallylongannoyingkey

This should work, but some have said this method doesn't work for them. let's hope it works for you cause the other methods are more painful. Also not that the key you use in that file has to be the actual key not a password that generates the key like some access points use. it will be about a 26 digit hex code. you may be able to leave off the first two wireless commands, but won't hurt to put them in.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 5:56 am 
Offline
Joined: Wed Feb 11, 2004 7:36 am
Posts: 15
Location: Germany, Pforzheim
Hi Jacanlas:

first read this:
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README

It is the same README you find in the archive and it contains detailed
explanations how to use that driver.
Try to understand what's written in there. This is essential!
Nearly everything I'm writing here is in that README already described.

Login to your box as root.

cd /usr/src/modules

if that doesn't exist

mkdir /usr/src/modules

first.


If you have any chance to connect your myth box with the internet:

wget ftp://ftp.linux-wlan.org/pub/linux-wlan ... e20.tar.gz

or whatever is newer

or download it on some other system, burn a CD, put the CD in
your box

mount /cdrom
cp /cdrom/linux-wlan-ng-0.2.1-pre20.tar.gz .

the dot at the end means cp to the local directory, as you should be already in /usr/src/modules.

umount /cdrom; eject

Now lets continue:

tar xvzf linux-wlan-ng-0.2.1-pre20.tar.gz
cd linux-wlan-ng-0.2.1-pre20
make config

answer the questions explained in the README
you only need to answer "yes" to the fourth question where
you are asked for the prism2_usb driver
the first three questions answer with no
the rest leave on default

make all; make install

Now edit /etc/modutils/linux-wlan-ng
it should look like this

To edit a file on Linux use vi, nano or whatever you feel more
comfortable with, but that's beyond the scope of this document. 8)

Code:
# Aliases to tell insmod/modprobe which module to use when bringing up the
# wlan0 interface.

# Uncomment the line corresponding to the type of prism2 device you have.
#alias wlan0 prism2_pci
alias wlan0 prism2_usb
#alias wlan0 prism2_cs
#alias wlan0 prism2_plx


Then you need to adjust /etc/network/interfaces
I've only the wlan adapter active on my system, that's why
eth0 is commented out. Insert something what works on
your site as IP-address.

Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


#iface eth0 inet static
        #address 192.168.nnn.nnn
        #netmask 255.255.255.0
        #network 192.168.nnn.0
        #broadcast 192.168.nnn.255
        #gateway 192.168.nnn.nnn

iface wlan0 inet static
        address 192.168.nnn.nnn
        netmask 255.255.255.0
        network 192.168.nnn.0
        broadcast 192.168.nnn.255
        gateway 192.168.nnn.nnn


And last, but not least you need to modify the files /etc/wlan.conf.
Look for:
Code:
SSID_wlan0="enter your SSID here"
ENABLE_wlan0=y


And /etc/wlan/wlancfg-your-SSID-from-wlan.conf
cp wlancfg-DEFAULT
/etc/wlan/wlancfg-your-SSID-from-wlan.conf


The only thing to modify in the example below should be dot11WEPDefaultKey0

Quote:
#=======USER MIB SETTINGS=============================
# You can add the assignments for various MIB items
# of your choosing to this variable, separated by
# whitespace. The wlan-ng script will then set each one.
# Just uncomment the variable and set the assignments
# the way you want them.

#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed"

#=======WEP===========================================
# [Dis/En]able WEP. Settings only matter if PrivacyInvoked is true
lnxreq_hostWEPEncrypt=true # true|false
lnxreq_hostWEPDecrypt=true # true|false
dot11PrivacyInvoked=true # true|false
dot11WEPDefaultKeyID=0 # 0|1|2|3
dot11ExcludeUnencrypted=true # true|false, in AP this means WEP is required.

# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate
# keys (just a convenience)
# add-ons/ in the tarball contains other key generators.
PRIV_GENERATOR=/sbin/nwepgen # nwepgen, Neesus compatible
PRIV_KEY128=true # keylength to generate
PRIV_GENSTR=""

# or set them explicitly. Set genstr or keys, not both.
dot11WEPDefaultKey0=xx:xx:xx:xx:xx # format: xx:xx:xx:xx:xx or
dot11WEPDefaultKey1= # xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
dot11WEPDefaultKey2= # e.g. 01:20:03:40:05 or
dot11WEPDefaultKey3= # 01:02:03:04:05:06:07:08:09:0a:0b:0c:0d
#=======SELECT STATION MODE===================
IS_ADHOC=n # y|n, y - adhoc, n - infrastructure

#======= INFRASTRUCTURE STATION ===================
# What kind of authentication?
AuthType="opensystem" # opensystem | sharedkey (requires WEP)

#======= ADHOC STATION ============================
BCNINT=100 # Beacon interval (in Kus)
CHANNEL=6 # DS channel for BSS (1-14, depends
# on regulatory domain)
BASICRATES="2 4" # Rates for mgmt&ctl frames (in 500Kb/s)
OPRATES="2 4 11 22" # Supported rates in BSS (in 500Kb/s)


To test the whole thing

/etc/init.d/wlan start

Look in /var/log/messages for any errors.

And if everything is fine you want to have this as an autostart everytime you reboot.

cd /etc/rc5.d
ln -s ../init.d/wlan S90wlan
cd /etc/rc2.d
ln -s ../init.d/wlan S90wlan
cd /etc/rc3.d
ln -s ../init.d/wlan S90wlan


Good luck!

_________________
cu,
dev


Top
 Profile  
 
 Post subject: stumped
PostPosted: Mon Mar 08, 2004 10:23 pm 
Hello Dev! You are so smart! I have completed what you told me to do step by step. The only correction I would give on your instructions is at the end, where you say:

cp wlancfg-DEFAULT /etc/wlan/wlancfg-yourSSID-from-wlan.conf

It was a little confusing. I entered the following:

cp wlancfg-DEFAULT /etc/wlan/wlancfg-linksys-wlan.conf

and

cp wlancfg-DEFAULT /etc/wlan/wlancfg-linksys.conf

and finally,

cp wlancfg-DEFAULT /etc/wlan/wlancfg-linksys

This last one worked ok I THINK. After I ran the command line:

/etc/init.d/wlan start

it said the following:

[bStarting WLAN Devices: message=dot11req_mibset
mibattribute=dot11PrivacyINvoked=false
resultcode=success
message=dot11req_mibset
mibattribute=dot11ExcludeUnecrypted=false
resultcode=success[/b]

What in the world does this mean? I checked the var/log/messages and it says, "CONNECTED." But I cannot connect to the internet. I checked the ifconfig file and it says that I have the IP address I entered into the network/interfaces file. I assume that everything is ok. I even entered the commands for it to start automatically when I reboot the machine and it says when it boots:


prism 2card sn \x00\x00\x00\x00 (a bunch of times more--literally x00's. The x does not represent a real letter, nor the 00's numbers. it literally says a bunch of times, "\x00" like 13 times or so)
eth0 Media link Off
linkstatus CONNECTED

Any idea of what I can do more to make it work? I was so excited because EVERYTHING went according to what you said it would! I am just amazed that I got as far as you said to. My only problem is--its still not working. : ( PLEASE HELP ME DEV!!!!!


Top
  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 3:25 pm 
Offline
Joined: Wed Feb 11, 2004 7:36 am
Posts: 15
Location: Germany, Pforzheim
Quote:
Hello Dev! You are so smart!

<scnr> finally, somebody recognized! ;-) After all these years. </scnr>
Thanks, you're welcome.

Quote:
cp wlancfg-DEFAULT /etc/wlan/wlancfg-yourSSID-from-wlan.conf


I meant you should replace DEFAULT with what you've entered as SSID in wlan.conf.

Therefore
Quote:
cp wlancfg-DEFAULT /etc/wlan/wlancfg-linksys

should be the right thing for you.

In my /var/log/messages I get this on reboot

Code:
Feb 29 12:27:48 mythtv kernel: Prism2 card SN: \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
Feb 29 12:27:53 mythtv wlan.agent[449]: WLAN wlan0 brought up successfully.
Feb 29 12:27:53 mythtv wlan.agent[449]: WLAN bringing up layer 3+ with /sbin/ifup
Feb 29 12:27:54 mythtv kernel: linkstatus=CONNECTED



If the wland is up and running there could be something with
your general IP configuration.

Is a ping <ip-address of your access-point working?
If yes, is DNS resolving fine?

_________________
cu,
dev


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 100 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu