Easy install guide for nvidia

grumpy.biatch
Posts: 2
Joined: 12. Nov 2010, 15:55

Easy install guide for nvidia

Post by grumpy.biatch » 12. Nov 2010, 16:04

This in my opinion is the easiest way to install nvidia -

Code: Select all

# slapt-get -i kernel-source

Code: Select all

# wget http://uk.download.nvidia.com/XFree86/Linux-x86/260.19.21/NVIDIA-Linux-x86-260.19.21.run
check the latest nvidia driver and change its title

Code: Select all

# chmod a+x NVIDIA*.run

Code: Select all

# ./!$
its a . (dot)

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Easy install guide for nvidia

Post by zAchAry » 22. Nov 2010, 07:43

Can you, or anyone else, test an easier way to do it? For instance, combining slapt-get and slapt-src (click here to see an example).
These are the packages that available at SBo via the slapt-src command: SlackBuilds.org - Search Results for "nvidia"

I'm not using nvidia, therefor I won't write such post.
Image
Help to make Slackware easier Donate to Salix

User avatar
JRD
Salix Warrior
Posts: 949
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Easy install guide for nvidia

Post by JRD » 22. Nov 2010, 08:35

zAchAry wrote:Can you, or anyone else, test an easier way to do it?
There is not.

Even with slapt-src, you'll need kernel-source. So you won't save a command.
But, if you want, you can do it a bit shorter:

Code: Select all

$ export VER=260.19.21; gksu /usr/sbin/slapt-get -i kernel-source && wget http://uk.download.nvidia.com/XFree86/Linux-x86/$VER/NVIDIA-Linux-x86-$VER.run && gksu sh NVIDIA-Linux-x86-$VER.run; unset VER
Image

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Easy install guide for nvidia

Post by thenktor » 22. Nov 2010, 13:09

@JRD: This won't work. AFAIK you have to install the driver in init 3. ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

User avatar
gapan
Salix Wizard
Posts: 5528
Joined: 6. Jun 2009, 17:40

Re: Easy install guide for nvidia

Post by gapan » 22. Nov 2010, 14:31

zAchAry wrote:Can you, or anyone else, test an easier way to do it?
Easier than running 4 simple commands? Copy-paste them in a script and run one command (the script).
Image
Image

User avatar
JRD
Salix Warrior
Posts: 949
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Easy install guide for nvidia

Post by JRD » 22. Nov 2010, 20:57

thenktor wrote:@JRD: This won't work. AFAIK you have to install the driver in init 3. ;)
Oh yes you're partly right. Without option you can't. But you can add a simple option to force it to run even if X is running (after all it's just compiling and installing a driver. It's not related at all to a running X session) : --no-x-check
Image

grumpy.biatch
Posts: 2
Joined: 12. Nov 2010, 15:55

Re: Easy install guide for nvidia

Post by grumpy.biatch » 23. Nov 2010, 02:50

zAchAry wrote:Can you, or anyone else, test an easier way to do it? For instance, combining slapt-get and slapt-src (click here to see an example).
These are the packages that available at SBo via the slapt-src command: SlackBuilds.org - Search Results for "nvidia"

I'm not using nvidia, therefor I won't write such post.
You can get old build off slackbuild.org repo. Nvidia releases a lot of bug fix and enhancement every now and then. If you wish to install latest and greatest, you need to follow what I posted initially. In my opinion it wont get any easier otherwise.

User avatar
laprjns
Salix Warrior
Posts: 1036
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Easy install guide for nvidia

Post by laprjns » 23. Nov 2010, 12:00

grumpy.biatch wrote:In my opinion it wont get any easier otherwise.
Actually it does get easier to upgrade the driver after you installed it using your method. To install the latest driver, just run the installer of your current driver with the "--update" option.

Code: Select all

./NVIDIA-Linux-x86-260.19.21.run --upgrade
This downloads the latest (not beta) version and installs it.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

ikke
Posts: 258
Joined: 5. Feb 2010, 22:47

Re: Easy install guide for nvidia

Post by ikke » 26. Dec 2010, 11:26

grumpy.biatch wrote:This in my opinion is the easiest way to install nvidia -

Code: Select all

# slapt-get -i kernel-source

Code: Select all

# wget http://uk.download.nvidia.com/XFree86/Linux-x86/260.19.21/NVIDIA-Linux-x86-260.19.21.run
check the latest nvidia driver and change its title
Could you please also provide the url of the latest nvidia driver for x86_64. Or explain how I could find it.

Thank you.

User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: Easy install guide for nvidia

Post by pwatk » 26. Dec 2010, 11:49

1. Go to nvidia.com and select your OS, architecture and graphics card from the drop-down menus.
2. Save the installer to somewhere quickly accessible (/tmp is a good idea).
3. Open a terminal, login as root (su -) and swich to runlevel 3 (init 3).
4. At the prompt login as root again and execute the Nvidia installer (sh /tmp/NVIDIA-Linux-<arch>-<version>.run)
5. When the installation is complete switch back to runlevel 4 (init 4)

There isn't anything simpler, creating packages of this is far more work than it's worth undertaking.
Image

Post Reply