LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2010, 02:18 PM   #1
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Rep: Reputation: 0
How do i install a driver for a wireless usb adapter (debian)


Hi everyone. I am a complete novice when it comes to Linux. I have just installed Debian 5 and i would like to get the wireless adapter working. I have a Ralink RT2070 54Mbs Wireless USB Adapter and the driver disk.

What are the steps/commands i must follow to install the driver please?

Many thanks.

Neil.
 
Old 09-20-2010, 02:42 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Welcome to Debian. To install the drivers you don't need the driver disk, just follow the steps for Lenny on this site: http://wiki.debian.org/rt2870sta
In general, the Debian Wiki is a good place to look at if you have any questions.
 
Old 09-20-2010, 03:23 PM   #3
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Thanks for the link. i think i may be out of my depth here

to follow the instructions and add a repository would i not need to be online?

i cant connect via ethernet so would that be a problem?
 
Old 09-20-2010, 04:17 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Yes, you have to be online to follow those instructions, maybe you can visit an internet caffee and do the installation there.
 
Old 09-20-2010, 04:22 PM   #5
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Yes, you have to be online to follow those instructions, maybe you can visit an internet caffee and do the installation there.
I have found a long enough cable...took some doing but i have now got it connected to the old pc via ethernet. I have just updated the system and will now go back to following the link you posted for me.

Thanks.

Neil.
 
Old 09-20-2010, 07:14 PM   #6
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Ok i have tried to follow the link. The instructions are a little vague at times and were most definitely not written for newbies with no knowledge of linux like myself. But i have managed to struggle through and (after many errors) I think follow what to do.

So far i have added the debian backports, updated the packages and installed the 2.6.32 kernel image via 'aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,,') firmware-ralink wireless-tools'

Have i done this correct?

When i type ‘modprobe rt2500usb’ or ‘modprobe rt73usb’ then type ‘1wconfig’ i get the message:

lo no wireless extensions

eth0 no wireless extensions

And ‘ifconfig wlan0 up’ reports the wlan0: ERROR while getting interface flags: No such device.

‘dpkg –list | grep linux-image’ states that I have 2.6.32

Any idea what i have done wrong or were I have gone wrong?
 
Old 09-20-2010, 07:57 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Why didn't you do modprobe rt2870sta, as stated in the wiki? As far I can see that is the only mistake, everything else you have done looks OK.
 
Old 09-20-2010, 08:01 PM   #8
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
I had forgotten to install the lenny-backports/firmware-ralink and wireless-tools package

Although i have them downloaded I have no idea how to install them.

i tried to run synaptics package manager but i get an unable to get exclusive lock error
saying to close apt-get or aptitude.

The only method i could find was the killall method but this did not work

Last edited by neil2010; 09-20-2010 at 08:09 PM. Reason: spelling mistake
 
Old 09-20-2010, 08:06 PM   #9
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Why didn't you do modprobe rt2870sta, as stated in the wiki? As far I can see that is the only mistake, everything else you have done looks OK.
i have a ralink 802.11g adapter.

Ralink 802.11g USB devices are supported by the rt73usb and rt2500usb drivers
 
Old 09-20-2010, 08:20 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The rt2870sta-driver handles the device Ralink 2070 USB, as stated in the Supported Devices section in the wiki, otherwise i would have pointed you to the section for a different driver. Please do as stated in the wiki.

To install the firmware and wireless-tools just do aptitude -t lenny-backports install firmware-ralink wireless-tools.
 
Old 09-20-2010, 09:11 PM   #11
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
The rt2870sta-driver handles the device Ralink 2070 USB, as stated in the Supported Devices section in the wiki, otherwise i would have pointed you to the section for a different driver. Please do as stated in the wiki.

To install the firmware and wireless-tools just do aptitude -t lenny-backports install firmware-ralink wireless-tools.
I did follow wiki regarding the modprobe rt2860sta but I got an error from that saying
FATAL: module rt2860sta not found.
Then I read
Ralink 802.11n PCI devices are supported by the rt2860sta driver. Ralink 802.11g USB devices are supported by the rt73usb and rt2500usb drivers.
So I then tried both modprobe rt2500usb and rt73usb to see if they might work
On both occasions it went back to debian:/home/neil#
Then I realised I had not installed the lenny-backports/firmware-ralink and wireless-tools package.

The firmware will not install nor will synaptics package manager open
After a reboot I tried to access the Synaptic Package Manager.
After it accepted my password an error box came up saying:
E: dpkg was interrupted, you must manually run ‘dpkg --configure –a’ to correct the problem.
E: _cache->open() failed, please report

I have ran the command but I still get locked out.
This is when I referred to the killall command I used to try and end the process.

I have also tried aptitude -t lenny-backports install firmware-ralink wireless-tools but that failed as well.
This is my first go at anything Linux and I am trying as best I can, but as you can probably see I am not doing too well. :-<
So I think because I forgot to install the lenny-backports/firmware-ralink and wireless-tools package could be were the problem is? And if it is how do I correct the lock out I have created please?

Last edited by neil2010; 09-20-2010 at 09:16 PM. Reason: spelling!
 
Old 09-20-2010, 09:29 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Did you run dpkg --configure -a?n What was the output of that command?
I know that you are new to Linux and will try to keep that in mind. However, there are some general advices that I would recommend you to keep in mind. First, try to never interrupt dpkg, because that can leave your system in an inconsistent state. Second, please read any advices given to you carefully and type any commands exactly as given to you. The command to load the driver is not modprobe rt2860sta, but modprobe rt2870sta. Please try this. You have read that 802.11g-USB-devices are handled by different drivers, but the wiki says, that 802.11g-USB-devices with rt2500/rt2501-chipsets are handled by different drivers. If anything is unclear look through the whole documentation, the wiki mentions your chipset in the Supported Devices-Section:
Quote:
USB: 148F:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
 
Old 09-20-2010, 09:36 PM   #13
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
Sorry it was a typo error...i did type rt2870rta.

The error message with dpkg was:
status database area is locked by another process.
 
Old 09-20-2010, 09:54 PM   #14
neil2010
Member
 
Registered: Sep 2010
Location: The Lake District Cumbria England
Distribution: Debian 5
Posts: 32

Original Poster
Rep: Reputation: 0
I can get the dpkg etc command to run after a reboot and a package configuration page comes up with a configuring linux-base box regarding assigned uuid's or labels etc...i selected yes and it goes to another screen with ok at the end but no way to select it. Then if i try to open synaptics i get an unable to get exclusive lock message.

Thankyou for all the help and advice. I will check back tommorow as its quite late in the uk and i have taken up a lot of your time with my errors.

Peace.

Neil.

Last edited by neil2010; 09-20-2010 at 10:02 PM.
 
Old 09-21-2010, 08:59 AM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can't run two packagemanagers at the same time, therefore the "lock"-errors. To get to the "OK" use the Tab-key.
Quote:
its quite late in the uk and i have taken up a lot of your time with my errors.
Hey, its at least one hour later here in Germany.
 
  


Reply



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
usb device driver for wireless network adapter lordofring Programming 1 06-30-2005 03:28 AM
wireless USB network adapter in debian SCX Linux - Wireless Networking 1 08-30-2004 01:54 PM
wireless USB network adapter in debian SCX Linux - Wireless Networking 0 08-30-2004 11:11 AM
no driver for 54mbps sitecom usb wireless adapter orbitalistic Linux - Hardware 1 08-10-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration