LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2009, 04:24 AM   #1
SpawnyBloke
LQ Newbie
 
Registered: May 2009
Location: Spain
Distribution: Centos
Posts: 3

Rep: Reputation: 0
Installing NIC drivers


Ok, i'm a complete and utter Linux noob, i mean i can spell it... thats where it ends Thank Mr Gates for that!

Anyway, i'm taking the plunge (forced to really workwise) and trying to go in at the deep end without GUI's and stuff and set up a Linux box on our domain to play around with.

First problem is the network card (Realtek RTL 8168C) is not supported by the out of the box centos 5.1 i'm using. I have downloaded the drivers but nada, zip zilch. Could anyone please either give me a step by step for installing these drivers properly or point me to a resource please?

Thanks in advance...
 
Old 05-14-2009, 06:53 AM   #2
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
I think you will most likely find the linux kernel already supports your nic. As Linux supports most common network nics. So first of all you should find out wether its there or not, so become root by using su - then type ifconfig. If you see something like eth0 your in business and you can start your nic by using static or dhcp. dhcp for the most part is a lot easier because all you need to do is type something dhcpcd eth0. wait a few seconds and hey presto everything works. If you don't see a nic and only have a lo then your going to need add suport in the kernel.

To do this you simply as root go to /usr/src/. They will be a directory there called linux or kernel or redhat. something along those lines anyway so go into that directory and then type make menuconfig. You will get presented with a menu with lots of options. Ignore most of them unless you really know what your doing. Go to Device Drivers->Network Device support. Further down you will see option for Ethernets so go into them and you will see all the nics the kernel currently supports. select the ones which closely match what you need be either pressing y for yes I want this driver compiled into the kernel or M for I want this driver as a external module.Exit everything then type make && make modules_install && make install. Restart and hopefully you should have your nic

Chances are though you don't need to do any of that stuff and it will have your nic but just in case
 
Old 05-14-2009, 07:52 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Welcome to LQ!

I would suggest that you use 'ifconfig -a' as this option will show all recognized network devices.

Quote:
excerpt from 'man ifconfig';

-a display all interfaces which are currently available, even if down
If the device has been recognized then it's just the matter of setting up your network configuration.
 
Old 05-14-2009, 08:08 AM   #4
SpawnyBloke
LQ Newbie
 
Registered: May 2009
Location: Spain
Distribution: Centos
Posts: 3

Original Poster
Rep: Reputation: 0
I should have been a little more explicit with my first post - hey i'm old and my brains a little addled

This particular NIC is not supported, only an older version. So it's not showing at all using the ifconfig -a line. I actually downloaded the driver set I need and have them sitting in a directory but have not even the slightest clue where to go from there. Most of the resources I have checked get a)very complicated and b) don't actually address just basic driver installs from the command line (really don't want to use the GUI just yet).

Help and patience is much appreciated
 
Old 05-14-2009, 02:58 PM   #5
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
Ok looking at the linux kernel and the web it seems that the realtek 8169 driver is your best option to go for. So before we go any further are you sure you have tried this making sure you have pci- express fully supported.

If your sure you have then it depends on what you have dowlonaded but if you have a windows driver. It wont work unless you use ndiswrapper and it supports it otherwise its probably just a matter of building and installing it
 
Old 05-14-2009, 03:17 PM   #6
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
SpawnyBloke,

You either have a very old kernel or you will find your card is supported by the r8169 kernel module, which should be build for you but it may not be loaded.

Become root then execute
Code:
modprobe r8169
ifconfig -a
if eth0 is there now, you need to arrange for the r8169 module to load on boot. Thats distro specific.

With eth0 present, you can configure the interface, either statically or using dhcp.

Last edited by NeddySeagoon; 05-14-2009 at 03:19 PM.
 
Old 05-15-2009, 08:39 AM   #7
SpawnyBloke
LQ Newbie
 
Registered: May 2009
Location: Spain
Distribution: Centos
Posts: 3

Original Poster
Rep: Reputation: 0
ok, according to the readme file that came with the driver set this is what I should be doing:

unpack tarball (done ok)
Change to dir

#make clean modules
#make install
#depmod -a
#modprobe r8168

Don't get past the first one. error includes the following:

entering an unknown directory
*** /lib/modules/2.6.18-53.e15/build: No Such File or Directory Stop
Make [1] *** [Modules] Error 2

Tried to use the embedded 8169 drivers but it doesn't see the hardware.

I think i might just save everyone a headache and go get a non built in NIC for a tenner.
 
Old 05-15-2009, 08:52 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Make sure you have the kernel sources installed.
 
Old 05-17-2009, 01:34 PM   #9
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
SpawnyBloke,

Is that kernel version for real (2.6.18-53.e15? ?
Its well over a year old.

Upgrade your kernel and your NIC will justwork(tm)
Also, that kernel is of an age where it may have the well publicised vmsplice local root exploit.
 
  


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
installing nic drivers shaik parveez Linux - Hardware 1 06-27-2007 03:54 AM
need some guidance on Lilo and help with ati drivers and my nic drivers agentc0re Slackware 11 04-07-2007 12:05 AM
Need som help installing drivers for nic kaldenord Fedora 6 02-08-2005 11:11 AM
Newbie Needs help installing Nic Drivers Cedtech23 Linux - Networking 1 02-22-2004 02:08 AM
installing nic drivers mindseye Linux - Newbie 1 10-12-2003 02:36 PM


All times are GMT -5. The time now is 10: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration