LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-27-2006, 09:51 AM   #1
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
How do I install hardware?


Sometimes I feel like I ask the dumbest questions, but how do I install hardware on Linux? Windows's autodetects it and then I basically just pop in the CD. Say I want to install my Belkin Wireless G Notebook Card or my Lexmark X1270 printer, where do I go?

Thanks for any help.
 
Old 08-27-2006, 09:59 AM   #2
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Sorry, I forgot. I'm running Debian Linux 3.1.
 
Old 08-27-2006, 01:02 PM   #3
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
If anyone can help me with this it would be much appreciated. Thanks.
 
Old 08-27-2006, 01:24 PM   #4
J3ph_42
LQ Newbie
 
Registered: Sep 2005
Distribution: FreeBSD 6.0 x86, FreeBSD 6.0 AMD64
Posts: 14

Rep: Reputation: 0
Check to see if the hardware has drivers available.
Physcially install hardware.
Install drivers, if they were not included in your distro.
 
Old 08-27-2006, 01:33 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by LonelyTraveler
Sometimes I feel like I ask the dumbest questions, but how do I install hardware on Linux? Windows's autodetects it and then I basically just pop in the CD. Say I want to install my Belkin Wireless G Notebook Card or my Lexmark X1270 printer, where do I go?

Thanks for any help.
According to this page on the www.linuxprinting.org website the printer in not going to work. For the wifi this post here on the site has a HowTo on installing the driver. It is for Fedora so you will need to change different file locations most likely use uname -r to show us the kernel you are running.
 
Old 08-27-2006, 01:47 PM   #6
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Kernel 2.4.27-2-386
 
Old 08-27-2006, 02:56 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by LonelyTraveler
Kernel 2.4.27-2-386
Ok then where it tells you to edit the module.conf you would need to edit the file /etc/modutils/aliases and put the alias line in there then run update-modules to have the information entered correctly into the module.conf. If you edit the modules.conf directly in Debian the changes made will be lost next time the update-modules gets run. Where it talks about the ifup ra0 you would most likely need to add a section to the /etc/network/interfaces file so it looked something like this.

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ra0

iface ra0 inet dhcp
Then use /etc/init.d/networking restart to have the netwroking restarted using the new setting. Now when installing the wpasupplicant use dpkg -L wpasupplicant after having installed to see where Debian put the files needed to be edited. For setting the SSID you will need to read the docs that came with the package as I have never setup a wireless card so am not certain where that should be done. Although it looks like there is a Graphical interface available to do this so the procedure might be the same as described in the HowTo.

Code:
>$ apt-cache search wpa_supplicant
wpagui - GUI for wpa_supplicant
Some other related packages.

Code:
>$ apt-cache search supplicant
kwlan - wpasupplicant frontend for KDE
wpagui - GUI for wpa_supplicant
wpasupplicant - Client support for WPA and WPA2 (IEEE 802.11i)
xsupplicant - 802.1x and 802.11i supplicant (client)
Just did a couple of more searches and it seems you should be able to get most of what you need done using the module-assistant package.

Code:
>$ apt-cache search madwifi
hostapd - user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
madwifi-doc - documentation for the Multiband Atheros Driver for WiFi
madwifi-source - source for the Multiband Atheros Driver for WiFi

>$ apt-cache search rt2500
rt2500 - configuration tool for wireless RT2500 network cards
rt2500-source - RT2500 wireless network drivers source
rt2x00-source - RT2x00 wireless network drivers source
Install the packages build-essential and module-assistant then at the command line module-assistant and select the PREPARE option this should get everything needed to compile module for the system. Once done use the SELECT option and go through the list with the up/down arrows and select the madwifi and rt2x00 or rt2500 module (use spacebar when highlighted to select) choose Ok once done selecting. Use the BUILD option now in this next screen to build the modules for your kernel and then the INSTALL option to install the modules you just built. Then you would go through the configuration parts I mentioned above and hopefully your not totally confused at this point as to what you need to do.

Edit: Before building the modules yourself use apt-cache search 2.4.27-2-386 madwifi and rt2500 or rt2x00 to see if there are pre-built modules for you kernel Debian does pre-build a lot of these as packages you can install using the normal tools apt-get, aptitude, dpkg ...

Last edited by HappyTux; 08-27-2006 at 03:11 PM.
 
Old 08-27-2006, 03:09 PM   #8
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
I'm sorry HappyTux, but where what tells me to edit the module.conf?
 
Old 08-27-2006, 04:05 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by LonelyTraveler
I'm sorry HappyTux, but where what tells me to edit the module.conf?
I had a typo there modules.conf on this page I refer too in my first post.

http://www.linuxquestions.org/questi....php?p=2347207
 
Old 08-31-2006, 10:36 AM   #10
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
I am trying to follow the stuff on the HowTo page, but it tells me to enable the livna repository and gives a link, but the link does not exist anymore.
 
Old 08-31-2006, 11:40 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by LonelyTraveler
I am trying to follow the stuff on the HowTo page, but it tells me to enable the livna repository and gives a link, but the link does not exist anymore.
Most/all of what you need can be gotten from Debian itself the information on that page it is a general guide that shows you the steps involved. Did you use the apt-cache search I suggested above to see if pre-built modules for your kernel exist? If they are available then install them otherwise use the module-assistant method I suggest to build them from source. Once this is done install the module packages, edit the aliases file I mention and run the update-modules then see if the module for the card loads and you get the ra0 interface that can be configured with IP now you would install the wpasupplicant package and try to configure the interface to get an IP.
 
Old 08-31-2006, 02:26 PM   #12
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
Okay... I'm going to have to take a step back here. What alias are you talking about what line do I have to put in?

This is my alias file:


Code:
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off            # Unix
# alias net-pf-2 off            # IPv4
# alias net-pf-3 off            # Amateur Radio AX.25
# alias net-pf-4 off            # IPX
# alias net-pf-5 off            # DDP / appletalk
# alias net-pf-6 off            # Amateur Radio NET/ROM
# alias net-pf-9 off            # X.25
# alias net-pf-10 off           # IPv6
# alias net-pf-11 off           # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off           # Acorn Econet
alias net-pf-24 pppoe

alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81     bttv
alias char-major-108    ppp_generic
alias /dev/ppp          ppp_generic
alias tty-ldisc-3       ppp_async
alias tty-ldisc-14      ppp_synctty
alias ppp-compress-21   bsd_comp
alias ppp-compress-24   ppp_deflate
alias ppp-compress-26   ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0   loop_gen
alias loop-xfer-3       loop_fish2
alias loop-xfer-gen-10  loop_gen
alias cipher-2          des
alias cipher-3          fish2
alias cipher-4          blowfish
alias cipher-6          idea
alias cipher-7          serp6f
alias cipher-8          mars6
alias cipher-11         rc62
alias cipher-15         dfc2
alias cipher-16         rijndael
alias cipher-17         rc5
 
Old 08-31-2006, 02:38 PM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
You would put it on a line by itself in that file at the bottom of the file then run the update-modules to have the information entered into the /etc/modules.conf file.

Code:
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off            # Unix
# alias net-pf-2 off            # IPv4
# alias net-pf-3 off            # Amateur Radio AX.25
# alias net-pf-4 off            # IPX
# alias net-pf-5 off            # DDP / appletalk
# alias net-pf-6 off            # Amateur Radio NET/ROM
# alias net-pf-9 off            # X.25
# alias net-pf-10 off           # IPv6
# alias net-pf-11 off           # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off           # Acorn Econet
alias net-pf-24 pppoe

alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81     bttv
alias char-major-108    ppp_generic
alias /dev/ppp          ppp_generic
alias tty-ldisc-3       ppp_async
alias tty-ldisc-14      ppp_synctty
alias ppp-compress-21   bsd_comp
alias ppp-compress-24   ppp_deflate
alias ppp-compress-26   ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0   loop_gen
alias loop-xfer-3       loop_fish2
alias loop-xfer-gen-10  loop_gen
alias cipher-2          des
alias cipher-3          fish2
alias cipher-4          blowfish
alias cipher-6          idea
alias cipher-7          serp6f
alias cipher-8          mars6
alias cipher-11         rc62
alias cipher-15         dfc2
alias cipher-16         rijndael
alias cipher-17         rc5

## Added by me for wireless net card
alias ra0 rt2500
 
Old 08-31-2006, 02:49 PM   #14
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
This is the return I got when running /etc/init.d/networking restart:

C
Code:
onrad:/home/conradtheart# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...Ignoring unknown interface eth0=eth0.
ifup: interface lo already configured
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

ra0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
exiting.
Failed to bring up ra0.
done.
This is after I changed the eth0 in the interfaces file to ra0. I just want to make sure that this output is correct before I proceed.
 
Old 08-31-2006, 03:09 PM   #15
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,892

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by LonelyTraveler
This is the return I got when running /etc/init.d/networking restart:

C
Code:
onrad:/home/conradtheart# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...Ignoring unknown interface eth0=eth0.
ifup: interface lo already configured
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

ra0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
exiting.
Failed to bring up ra0.
done.
This is after I changed the eth0 in the interfaces file to ra0. I just want to make sure that this output is correct before I proceed.
Oh yeah that is what you should get without the proper module loaded/alias for the module being ra0 its not there so no chance to use it.
 
  


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
New install - then new hardware matelot Linux - Newbie 5 05-05-2006 05:59 PM
How to install new hardware azazello Linux - Hardware 2 01-21-2006 03:04 PM
how do i install my hardware mandrakelinux Slackware 1 11-22-2005 05:46 PM
How can i install a new hardware? Ronnie85 Slackware 2 04-22-2005 01:46 AM
configure hardware before install OR install elo touchscreen drivers ahnree General 2 06-28-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:54 PM.

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