LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-24-2010, 01:07 PM   #1
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Rep: Reputation: 0
Instal D-link DWA 125 Wireless adaptor on Slackware 13.1


I am attempting to install this wireless adaptor on my machine runnign slackware 13.1.

I found an article http://www.cyberciti.biz/tips/linux-...s-adapter.html which is for installing on Ubantu and tried to follow the steps

Skipped Step 2 because apt-get does not appear to work on Slackware. Step 3 worked up to the Update isb.ids. When I tried to copy the existing ids to back up I got the message "cannot stat '/var/lib/usbutils/usb.ids' no such file or directory"
 
Old 11-24-2010, 01:35 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hello adtf01,

you'd be better of to post this in the Slackwareforum (I reported this).
To your Questions: Step 2 is not necessary with Slackware since this packages already installed in Slackware.
And the directory /var/lib/usbutils does not exist.
If you did "make install" I'd recommend to restart the computer in order to get the kernel recognize the new module (the driver). After restarting please use the following command:
Code:
lsmod | grep rt2800usb
if you get no output you'll have to load the module like described for Ubuntu.
Code:
modprobe rt2800usb
Then please execute
Code:
iwconfig
and post the output here. Please post any errormessages as well.

Markus

Last edited by markush; 11-25-2010 at 01:47 AM. Reason: typo, with the bold text it is correct
 
Old 11-24-2010, 10:33 PM   #3
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
Hi Markus

Thank you

Since I blacklisted the rt2800 I used rt2870 in your instructions

lsmod rt2870usb returned "Isage: lsmod"
lsmod returned a list and in that list was a line "rt2870sta 413659 0"

modprob rt2870usb returned "FATAL: Modlue rt2870usb not found"

iwconfig returned
"l0 no wireless extensions

wlan0 Ralink STA ESSID:"" Nickname:""
Link Quality: 10/100 Signal level: 0dBn Noise level: -143 dBn
RX invalid nwid: 0 RX invalid crypt: 0 Rx invalid frag: 0
Ta excessive retries : 0 Invalid miscs : 0 Missed Beacons : 0

eth0 no wireless extensions"
 
Old 11-25-2010, 02:04 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hi,

sorry, I made a mistake, to find out if a module is loaded you'll have to execute the command:
Code:
lsmod | grep nameofthemodule
I've changed this in my above post.

Your errormessages show, that the apropriate driver isn't still loaded. I'm not sure if this wlan0 is the D-link DWA 125 device. Could you please post the output of
Code:
lsusb
(the D-Link must be pluged in). From where did you get the information, that the Ralink driver will work for you D-link device?
And another question: for me the output of iwconfig looks like you have a wireless device in your machine (Ralink), why don't you use it? please post the output of
Code:
lspci
Markus
 
Old 11-25-2010, 06:08 AM   #5
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
lsmod | grep rt2870usb returns no result
lsmod | grep rt2870sta returns "rt2870sta 413659 0"
lsusb returns
"Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0761:3c0d D-Link Systems DWA-125 150 USB Adaptor"

lspci returns a lot of things including the Ethernet adaptor, but no wireless adaptor.

I got the information that the DWA has the ralink chipset from various sources on the internet, including the article that I used to try and install the device, - most indicating it is the rt2870, one indicating it is the rt3070
 
Old 11-25-2010, 06:42 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by adtf01 View Post
I got the information that the DWA has the ralink chipset from various sources on the internet, including the article that I used to try and install the device, - most indicating it is the rt2870, one indicating it is the rt3070
ok, I looked at the windows-drivers, they are 2870 for this device, so you're right.
Please (with the D-link device pluged in) execute the command:
Code:
ifconfig wlan0 up
Post the errormessages. Which encryption do you use for your wireless network? I do normaly use wpa_supplicant for the authentication at the accesspoint, but I'm not sure which programs are installed on your system.
I've looked into the kernelsources, there is a driver for your adapter in "staging drivers". Could you please post the output of
Code:
uname -a
so that we can look if your kernel is recent enough?

Markus
 
Old 11-25-2010, 06:50 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Well, I looked into my own slackware installation, the module is there! I think you will only have to uninstall the downloaded driver or maybe
Code:
rmmod rt2870sta
works and unloads the module, if so, then execute
Code:
modprobe rt2870
if this works please try the command
Code:
/etc/rc.d/rc.inet1 wlan0_restart
and post all errormessages.

Markus
 
Old 11-25-2010, 10:22 PM   #8
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
ifconfig wlan0 up returned "operation not permitted"
uname -a returned "Linus cajj 2.6.33.4-smp Wed May 12 22:47:36 CDT 2010 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux"
rmmode rt2870sta removed the module (lsmod |grep rt2870sta now returns nothing)
modprobe rt2870 returned "FATAL: Module rt2870 not found"

Thank you for all your help - I would really like to get this going!

I use wap2 security on the network.

Last edited by adtf01; 11-25-2010 at 10:23 PM.
 
Old 11-26-2010, 12:25 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Well, I've again looked into the kernel-sources, the name of the kernelmodule is rt2870sta (the same like that in the Ubuntu forum).
This means you'll have to uninstall the kernel which you've downloaded in order to get the module from the original Slackware-kernel to load. I'm running Slackware-13.1 as well and I'm using the same kernel, The module is there.
If this doesn't work for you, please open a new thread in the Slackwareforum of LQ http://www.linuxquestions.org/questions/slackware-14/ there you will find more help and the guys there are more experienced than me. You may also post a link to this thread for clarification.
If the module is working for your adapter, you'll have to edit "/etc/wap_supplicant.conf" in order to configure the authentication at you wireless network.

Markus
 
Old 12-01-2010, 02:56 PM   #10
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 548

Rep: Reputation: 74
your issue might be related to how I had to get my usb-wireless stick going:

lsmod returns for me now:

rt2870sta 434975 1
rt2800usb 8292 0
rt2800lib 22221 1 rt2800usb
rt2x00usb 7957 2 rt2800usb,rt2800lib
rt2x00lib 26467 2 rt2800lib,rt2x00usb

I got it going by putting below code in my /etc/rc.local:
Code:
# load wireless rt2870
echo -n "Starting rt2870 driver..."
/sbin/modprobe rt2800usb
/sbin/modprobe rt2870sta
/etc/rc.d/rc.inet1 wlan0_restart
echo " OK."
this is in /etc/rc.d/rc.inet1
Code:
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
and this is my /etc/wpa_supplicant.conf; change where needed and remove the <--- part :-)

Code:
# See /usr/doc/wpa_supplicant-0.6.10/wpa_supplicant.conf.sample
# for many more options that you can use in this file.

# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
#country=US

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=0
  ssid="my_ssid" <---- change this to your own ssid
  proto=WPA RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  psk="my_password" <--- change this to your own password
  priority=10
}

# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
  key_mgmt=NONE
  priority=0
}

make sure you have your wireless router on 2.4GHz, I had big time issues running above that.

Hope this helps
 
Old 12-13-2010, 12:21 PM   #11
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
Hi Ramurd

I have been away and only ow back trying to get this thing going.

Thank you for this suggestion. I am however still stuck when I try and open the rc.local by typing emacs /etc/rc.local all I open is a new file. Is this correct?

Last edited by adtf01; 12-13-2010 at 12:23 PM.
 
Old 12-13-2010, 12:36 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by adtf01 View Post
...when I try and open the rc.local by typing emacs /etc/rc.local all I open is a new file. Is this correct?
Yes, in Slackware rc.local is reserved for the user (root) to make his/her own settings.

Markus
 
Old 12-13-2010, 01:39 PM   #13
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
Yes, in Slackware rc.local is reserved for the user (root) to make his/her own settings.

Markus
Thanks Markus

Next question

The /etc/rc.d/rc.inet1 has a lot in it. Where do I add the script? Secondly I do not have dhcp, so do I put the ip address and netmask within the quotes and change the yes to no?
 
Old 12-13-2010, 01:48 PM   #14
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
What do you want to do with rc.inet1? leave it as it is!

rc.inet1 is started in the rc.M script which manages runlevel 3.

for the configuration you'll have to edit rc.inet1.conf. As Ramurd wrote you may use wpa_supplicant, look at Ramurd's post. In order to use wpa_supplicant you'll have to delete the commentcharacter ( # ) before the wpa_supplicant line in rc.inet1.conf. Further configuration is done in /etc/wpa_supplicant.conf
Quote:
...I do not have dhcp, so do I put the ip address and netmask within the quotes and change the yes to no?
The IP-settings can be configured in rc.inet1.conf as well, the file is documented very well.

Markus

Last edited by markush; 12-13-2010 at 01:49 PM.
 
Old 12-13-2010, 10:15 PM   #15
adtf01
LQ Newbie
 
Registered: Oct 2010
Location: Gweru, Zimbabwe
Posts: 29

Original Poster
Rep: Reputation: 0
Thanks - from Ramurd's post above about rc.inet1 above I assumed I needed to edit it. Will work on the rest now and let you know how I go
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install D-Link DWA-125 on laptop running Slackware 13 adtf01 Linux - Newbie 6 12-18-2010 02:52 PM
Help with installing D-Link DWA-130 Wireless N Adapter aod43254 Linux - Hardware 11 08-27-2010 01:59 PM
USB Wifi adapter D-Link DWA-125 (Ralink 2870) friendly distro? janimalia Linux - Wireless Networking 3 01-25-2010 02:30 PM
D-Link DWA-620 Wireless Driver for Linux - Help Need Trogloditus Linux - Hardware 2 01-15-2010 11:06 AM
How to install D-LINK DWA-543 wireless card fernandojob1 Fedora 0 08-09-2007 09:34 PM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration