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 11-19-2007, 02:13 PM   #1
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 15
How do I install an Nvidia driver?


So far everything I've read, nothings worked! Sudo, sh, synaptic manager thingy, nothings worked! I have the package downloaded to my desktop (NVIDIA-Linux-x86_64-100.14.19-pkg2.run) and I've tried
'sh NVIDIA-Linux-x86_64-100.14.19-pkg2'
- says cannot run
'sudo apt-get install linux-restricted-modules-generic'
-went though the steps but it didnt work
and all the sudo install combinations I've seen on numerous sites, and nothings worked! And I'm tired of switching over to vista to surf the net since my screen can't be any larger than 640x480 with half my desktop off my monitor. I need help! >.<
 
Old 11-19-2007, 02:23 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
The reason it cannot run is that you can't run that script while you're inside of X, and you also have to run that as root (or use sudo, i.e. sudo sh NVIDIA-blahblahblah). From things you've typed, I assume you're trying to use Ubuntu. To kill X, hit CTRL+ALT+F1. Then login as your user. Then run sudo /etc/init.d/gdm stop to kill X. Then you can navigate to your desktop (cd ~, then ls (list contents), then cd desktop (or whatever name the desktop is given). Then run the sh command with sudo.

You also might need to install kernel headers or build-essential.
 
Old 11-19-2007, 03:08 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
if it's just basic nvidia drivers you need, you could always do it the Ubuntu way..

http://ubuntuguide.org/wiki/Ubuntu:F...rivers_in_7.04
 
Old 11-19-2007, 04:57 PM   #4
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by farslayer View Post
if it's just basic nvidia drivers you need, you could always do it the Ubuntu way..

http://ubuntuguide.org/wiki/Ubuntu:F...rivers_in_7.04
didnt work...and when i try sudo sh i get this,

'greg@ubuntu:~$ sudo sh NVIDIA-Linux-x86-100.14.19-pkg1.run
Password:
sh: Can't open NVIDIA-Linux-x86-100.14.19-pkg1.run'

im on ubuntu right now so if anyone has some helpful info...this 640x480 is getting to me though
 
Old 11-19-2007, 05:03 PM   #5
Jayla
Member
 
Registered: Nov 2005
Location: Suffolk, UK
Distribution: kubuntu 9.04
Posts: 188

Rep: Reputation: 30
Hi

will need someone with more experience to verify this, but from what I remember of how I dealt with this,

go into the synaptic package manager, search for nvidia, and install the "new" driver

Drop out to the command line, run sudo dpkg-reconfigure -phigh xserver-xorg

RESTART (What is this? windows? try it, worked for me)

also, if in doubt, take backups of the xorg.conf from /etc/X11/

Regards
 
Old 11-19-2007, 05:32 PM   #6
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
@pljvaldex
'greg@ubuntu:~$ sudo ect/init.d/gdm stop
Password:
sudo: ect/init.d/gdm: command not found'

@jayla
ive tried that and it just doesnt work.

i can get it to start unpacking it but this is what happens...
'greg@ubuntu:~$ sudo sh /home/greg/Desktop/NVIDIA-Linux-x86-100.14.19-pkg1.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 100.14.19........................................................................................... .................................................................................................... .......................................................................................

ERROR: You appear to be running an X server; please exit X before
installing. For further details, please see the section
INSTALLING THE NVIDIA DRIVER in the README available on the Linux
driver download page at www.nvidia.com.
'
How do i exit X?
 
Old 11-19-2007, 05:47 PM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,887

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
First things first. The nvidia driver file should not be executable until you make it executable. System security thing.

As root, give the command to make it executable:
chmod +x NVIDIA-Linux-x86-100.14.19-pkg1.run

Then try to run the installation.

To exit X to run the installation, as root, give the command:
init 3

to drop down to runlevel three (text mode).

When it's done installing and you get your shell prompt back, init 5 or startx to get back to GUI mode.

You may have to re-configure your graphics card to use the new driver.

Last edited by bigrigdriver; 11-19-2007 at 05:49 PM.
 
Old 11-19-2007, 05:51 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by ItsTimeToMoveOn View Post
@pljvaldex
'greg@ubuntu:~$ sudo ect/init.d/gdm stop
Password:
sudo: ect/init.d/gdm: command not found'
It's "etc" not "ect". And if you're using Kubuntu, it's kdm instead of gdm. You can always do cd /etc/init.d then ls
to see which one is installed...
 
Old 11-19-2007, 05:54 PM   #9
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
This is a long way of doing it, but it should work.

Open your terminal.

Type

Code:
su -c vim\ /etc/inittab
Find the line

Quote:
id:5:initdefault:
You need to change this line to

Quote:
id:3:initdefault:
To save and exit, type

Code:
:wq!
The 'w' means 'write', the 'q' means 'quit', and the '!' ignores any fuss given by vim.

Then, restart your computer. Once it reboots, you should be in text mode. Login as your user. Then follow the instructions for installing the nVidia drivers (should be something like 'su -c sh\ nvidia-blahblahnumbersetc')

Once that's finished and you've run the nvidia-xconfig (I believe) script, you'll need to open inittab again and reverse what you've just done. That is, change the runlevel to 5 instead of 3. Then simply type

Code:
startx
and you'll be good to go.

EDIT:

I didn't see that you had typed 'ect' instead of 'etc'. Two totally different things (mostly because one doesn't exist). Try the methods of the posters before me. If they still don't work, try what I suggested.

Last edited by LinuxCrayon; 11-19-2007 at 05:57 PM. Reason: Missed something...
 
Old 11-19-2007, 05:56 PM   #10
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
greg@ubuntu:~$ su -c vim\ /etc/inittab
Password:
su: Authentication failure
Sorry.

PWs right...any ideas?
 
Old 11-19-2007, 06:00 PM   #11
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
Are you absolutely positive the password is correct? Did you just try it once, or did you try multiple times, slowly pressing each character as applicable? And I probably don't need to say this, but remember that it is case-sensitive. If you're positive it fails, you might have a serious problem. However, seeing as how 'sudo' didn't fail to authenticate, I'd wager you didn't enter the password correctly. If you're sure you did, try what I told you to do, but with 'sudo' instead.
 
Old 11-19-2007, 06:10 PM   #12
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by LinuxCrayon View Post
Are you absolutely positive the password is correct? Did you just try it once, or did you try multiple times, slowly pressing each character as applicable? And I probably don't need to say this, but remember that it is case-sensitive. If you're positive it fails, you might have a serious problem. However, seeing as how 'sudo' didn't fail to authenticate, I'd wager you didn't enter the password correctly. If you're sure you did, try what I told you to do, but with 'sudo' instead.
my PWs 1 letter so yes im sure

@pljvaldez heres what i get now

'sudo /etc/init.d/gdm stop
OK
sudo sh /home/greg/Desktop/NVIDIA-Linux-x86-100.14.19-pkg1.run
(the little accept/do not accept terms thing pops up)
Accept
No precompiled kernel interface was found to match your kernel;
would you like the installer to attempt to download a kernel interface
for your kernel from the nvidia ftp site?
Yes/No
Yes
No matching kernel, this means the installer will need to compile
a kernel interface for your kernel.
Ok
Error: you do not appear to have libc header files installed on your
system. Please install your distro's libc development package.
Ok'

goes back to the beginning...and saying No does the exact same thing.
Any ideas?
 
Old 11-19-2007, 06:12 PM   #13
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
Quote:
Originally Posted by ItsTimeToMoveOn View Post
Error: you do not appear to have libc header files installed on your
system. Please install your distro's libc development package.
Open your package manager and install your libc package? Also (again I don't recall...been a while since I installed nVidia drivers) you might need to have the kernel source.
 
Old 11-19-2007, 06:14 PM   #14
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
sudo aptitude install build-essential
 
Old 11-19-2007, 06:25 PM   #15
ItsTimeToMoveOn
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: 15
Success! It's installed...now to figure out to switch it to my 22" WS monitor and not my 17" LCD...I see where I'd go about doing that but I can't hit the apply button...it's below the little bar at the bottom and it won't let me move the window up past the top bar! >.< Thanks for all your help guys!
 
  


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
Nvidia Problem: can't install nvidia driver for FC6 Chuong Linux - Software 7 10-30-2006 04:43 AM
NVidia Driver Install damoncf Debian 6 01-06-2005 11:13 PM
Nvidia Driver Install - rivafb driver conflicts rjcmi Debian 5 10-10-2004 11:58 PM
Nvidia Driver Install?! 3r4t!k Linux - Newbie 6 04-18-2004 07:10 PM
nvidia driver wont install (suse 8.2_ftp install) splintah Linux - Newbie 1 10-06-2003 03:03 PM


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