LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-27-2004, 02:35 PM   #1
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Rep: Reputation: 15
Instructions for installing Nvidia driver on FC3


I had one heck of a time installing the NVidia drivers on my system, so I thought I would post the steps that worked for me, so ohters could be spared the pain. I got these instructions from several sources. For the record, these instructions worked on a GeForce 4 MX440 and a GeForce FX5200. They were performed on a clean install of FC 3, and all actions were performed as root. The latest NVidia driver(NVIDIA-Linux-x86-1.0-6629-pkg1.run) was used. I have an AMD Sempron 2600. These instructions will not work unless you have the development packages installed. It has been reported that these instructions do not work on TNT2 cards. However, I have heard there is a work around, but I'm not sure what it is.
Do not type the quotes around the command line commands. These are only there to seperate what is to be typed from the rest of the instructions.

READ AND PRINT OUT THIS PAGE BEFORE STARTING

1)Download the latest NVidia drivers to a directory of your choice

2)Edit the /etc/inittab manually using a text editor. Change the line that reads "id:5:initdefault:" to read "id:3:initdefault:" . Certain tutorials will instruct you to use the telinit 3, init 3, or even runinit 3 command. These commands didn't work for me, though. However, they may work for other people.

3)Reboot your system. You will end up in a command prompt environment. DO NOT PANIC. This is what it is supposed to do. Use the "cd" command to move to the directory you downloaded the driver to. For example, if you downloaded the driver to the /root/ folder, then run the command "cd /root/".

4)Now type "sh NVIDIA-Linux-x86-1.0-6629-pkg1.run".

5)Accept the license agreement. Now it will probably say that it could not find the kernel source. You can allow the installation program to look for the source online, but it won't work unless the servers are updated. Now it will say that it needs to compile its own kernel. Please allow it to do so. This is the part of the installation were the development tools are required.

6)Now run the command "cd /etc/X11"

7)Next type "vim xorg.conf". This opens the text editor. Use the arrow keys to move the cursor. Press the Insert key, and on the bottom, either "INSERT" or "REPLACE" will be shown. If INSERT is selected, then when you type the text you types will be inserted before the selected character. If replace is selected, then what you type will replace the selected character(s). Look for a line that reads "Driver "nv"", or "Driver "vega"". Change it to read "Driver "nvidia"". Now go scroll up until you get to "Section "Module"". Make sure that one of the lines between"Section "Module"" and "EndSection" says "Load "glx"". If the lines "Load "dri"" or "Load "GLcore" are present, then comment them out by placing a # at the begining of the line.

8) To exit and save changes, push esc. Now type ":wq" and hit enter. If you mess up you can quit without saving by hitting esc and then typing ":q!".

9)Now that you are back to command prompt, type "rpm -e --nodeps xorg-x11-Mesa-libGL"
NOTE: If you update "xorg-x11" package with up2date or yum, you will have to do the abouve command again.

10)Now run "modprobe nvidia"

11)Now run "cp -a /dev/nvidia* /etc/udev/devices
Allow it to overwrite what is there.

12)Now run "chown root.root /etc/udev/devices/nvidia*"

13) Almost there, all that's left is to edit /etc/inittab back to what it was. To do this, type "cd /etc/". Now type "vim inittab" . Change the "3" back to a "5".

14)Reboot by hitting ctl-alt-delete

15)You're done!!!

I hope this helps alot of people, feedback and more information is certainly welcome.
A special thanks to perfect_circle for helping me wih this. Also, parts of this tutorial were taken from http://www.fedoraforum.org/forum/showthread.php?t=26260
I have been informed that these instructions are not needed anymore, but I have not tested nor used the instructions in the following link. I am sure they work though. Instructions for installing nvidia drivers through yum

-Sean

Last edited by sdat1333; 02-06-2005 at 02:30 PM.
 
Old 11-27-2004, 08:40 PM   #2
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
was this helpful for anyone? did anyone have any problems with it?
Feedback Please
 
Old 11-27-2004, 09:34 PM   #3
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
I haven't read the whole article as my nvidia carded machine running X uses Gentoo...but I would recommend for any type of noob howto you have them use nano or pico to edit files instead of vim. Even though I think everyone should use VI it does tend to scare away some noobs. Just a recommendation....after that LEARN HOW TO USE VIM.

Also as root (su -) you can just type init 3 to change to runlevel 3..thus not needing to change anything in inittab and not needing a reboot.

Only time my machines get rebooted are...
1. Power failures (and UPS doesn't hold up)
2. Kernel upgrades
3. Hardware upgrades
4. Changing distros which kinda falls under kernel upgrades aswell because I'm changing something really major, so number 4 doesn't really count.
 
Old 11-30-2004, 09:26 AM   #4
eaddie
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
thanks sdat1333

It works on my FC3 with kernel-2.6.9-1.681_FC3

thank you
 
Old 11-30-2004, 08:29 PM   #5
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
No problem, just be sure to reply, or else this post will get buried in the forum and no one will find it.
 
Old 12-05-2004, 10:33 AM   #6
shipwright
LQ Newbie
 
Registered: Dec 2004
Location: Ashford, Kent, UK
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
Thumbs up

Many thanks Sean, just what I needed. I was about to give up on Fedora and go back to mandrake.
I had one problem when I tried rpm -e --nodeps xorg........... I got the following error xorg-x11-Mesa-libGL specifies multiple packages.
My system boots into X with nvidia no problem but I get errors from the GL screen savers but I note there is FAQ about this in the Nvidia docs so will investigate.

Once again thanks for the info I have printed it and saved in a safe place.
I am using Kernel 2.6.9-1.681-FC3 amd64.
Dave

Last edited by shipwright; 12-05-2004 at 10:35 AM.
 
Old 12-05-2004, 11:35 AM   #7
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
Glad to see this help somebody. I too, was about to give up on Fedora and go back to mandrake(I used Mandrake but the main thing I didnt like was that they push you to join a club you have to pay for). Like I said, I had a really hard time getting those drivers installed.
 
Old 12-06-2004, 01:22 AM   #8
paulhoop
LQ Newbie
 
Registered: Nov 2004
Location: Tennessee
Distribution: Fedora 9
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by sdat1333
was this helpful for anyone? did anyone have any problems with it?
Feedback Please
Worked like a champ for me.

NOOB to Linux here. I had tried to do this upgrade several times and never did the copyfile step...

Thanks,
Paul
 
Old 12-06-2004, 05:30 AM   #9
CSenior
LQ Newbie
 
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
Worked perfect.. Zero problems!!! Great Write-up!!!

Senor
AMD XP 2600+ 512 Meg RAM Gainward Ti-4200 Kernel 2.6.9-1.681-FC3
 
Old 12-06-2004, 09:14 AM   #10
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
In the future, save yourself some trouble and time by paying a visite to fedorafaq
 
Old 12-06-2004, 10:22 AM   #11
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
2)Edit the /etc/inittab manually using a text editor. Change the line that reads "id:5:initdefault:" to read "id:3:initdefault:" . Certain tutorials will instruct you to use the telinit 3, init 3, or even runinit 3 command. These commands didn't work for me, though. However, they may work for other people.
Using "init 3" (after pressing Ctrl-Alt-F3 and loggin in as root) is faster.
I also noticed it seems to hang at first after typing "init 3".
No Idea what's causing this, but it's easy to fix.
Just press Ctrl-Alt-F3 again it will continue...

The "rpm -e --nodeps xorg-x11-Mesa-libGL"
is in most cases not needed.

Also, if you already did the 'modprobe', why also 'chroot' ?

I take you din't use a kernel tree...?
 
Old 12-06-2004, 10:32 AM   #12
acidblue
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: 15
Nice going sdat1333, but i have one question
I got an error when I tried: rpm -e --nodeps xorg-x11-Mesa-libGL
"Not installed" or to the effect.

Last edited by acidblue; 12-06-2004 at 12:00 PM.
 
Old 12-06-2004, 06:57 PM   #13
sdat1333
Member
 
Registered: Nov 2004
Location: North Carolina, USA
Distribution: None right now :(
Posts: 149

Original Poster
Rep: Reputation: 15
That command is just to remove a pakcage that will conflict with the driver. If it is not installed then there is no problem. I just have that in there in case people do have the package installed.
 
Old 12-06-2004, 10:33 PM   #14
JiggaJerry
Member
 
Registered: Sep 2004
Distribution: Fedora Core 3
Posts: 45

Rep: Reputation: 15
in RH9 all i used to do was

telinit 3

go to where the file is and type something like sh NVIDIA.run

follow the directions and when its done

telinit 5

then edit the xorg.conf file

seems alot more simple than what you have...I would've done it in FC3 already but it seems to hang when you type telinit 3...but I guess there is a way around that as stated above.
 
Old 12-06-2004, 10:53 PM   #15
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Actually, it's now even easier.
You don't even need a kernel tree anymore.

As for the commands you mentioned:
just add /sbin/ before them and they'll still work.(only needed in X)
 
  


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
FC3 NVIDIA driver prob jse Fedora 6 03-27-2005 12:24 AM
can't start x after installing nvidia driver in FC3 dr_zayus69 Linux - Software 10 01-14-2005 09:20 PM
nvidia driver problem on FC3 greg108 Fedora 3 12-14-2004 11:56 AM
FC3 and Nvidia driver.... justin_p Fedora 3 11-18-2004 09:39 PM
NVidia driver installation instructions! Impaler Linux - Software 1 05-23-2004 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:11 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