Easy Nvidia Driver Install for Wheezy

Share your own howto's etc. Not for support questions!

Easy Nvidia Driver Install for Wheezy

Postby THC Butterz » 2012-08-27 14:42

After days of looking for a simpler way to install the nvidia drivers other than shutting down the x-server and trying to remove or blacklist nouveau...etc. I got together a script, if used correctly, it will add the repository, disable nouveau (apon reboot), and fully install the latest nvidia drivers for wheezy (at least the latest ones in the repo) including the x-server, kernel, settings...etc
so download the script and run it using the following commands.

download here: http://www.4shared.com/file/zesUfwmh/wheezy-nv-install.html?

Code: Select all
sudo chmod +x wheezy-nv-install.sh


Code: Select all
sudo ./wheezy-nv-install.sh


pay attention and answer "y" and press enter when nesasary,

when complete reboot

if you boot into a terminal instead of a gui, login, and run this command, followed by a reboot

Code: Select all
nvidia-xconfig
THC Butterz
 
Posts: 5
Joined: 2012-08-27 14:10

Re: Easy Nvidia Driver Install for Wheezy

Postby THC Butterz » 2012-08-27 14:53

alternatively here's the script, just place it in your favorite text editor and save it as
"wheezy-nv-install.sh"
then run the 2 commands

Code: Select all
if [ $USER != root ]; then
echo "¡Is necessary be root!"
exit 0
fi
echo "[Add Repository] [Please Wait]"
sleep 2
echo "deb http://ftp.debian.org/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list
echo "[Update Repository]"
sleep 2
aptitude update
aptitude safe-upgrade
echo "[Installing Nvidia-Kernel-Module]"
sleep 2
VERSION=`uname -r`
aptitude install nvidia-kernel-$VERSION nvidia-glx
aptitude install nvidia-xconfig
nvidia-xconfig
echo "[Installing Nvidia-Settings]"
sleep 2
aptitude install nvidia-settings
nvidia-xconfig
echo "[Is necessary reboot to apply the changes]"
echo -n "[Do you want reboot now {y/n}]: " ; read var
case $var in
y)
reboot
;;
n)
exit
THC Butterz
 
Posts: 5
Joined: 2012-08-27 14:10

Re: Easy Nvidia Driver Install for Wheezy

Postby dilberts_left_nut » 2012-08-27 15:15

No, you really don't want to use this script.

This.
http://wiki.debian.org/NvidiaGraphicsDrivers/#Use_DKMS
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4902
Joined: 2009-10-05 07:54
Location: enzed

Re: Easy Nvidia Driver Install for Wheezy

Postby dasein » 2012-08-27 15:18

dilberts_left_nut wrote:No, you really don't want to use this script.

This.
http://wiki.debian.org/NvidiaGraphicsDrivers/#Use_DKMS

+1 on both counts
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Easy Nvidia Driver Install for Wheezy

Postby julian516 » 2012-08-27 20:18

Hate to sound silly but I use sgfxi and it works every time without fuss. It comes along with the smxi suite, which can be downloaded and installed from smxi.org. DKMS from the Debian wiki will work as well. If THC Butterz has a better mouse-trap so be it!
julian516
 
Posts: 311
Joined: 2010-03-18 20:10
Location: Loveland, CO

Re: Easy Nvidia Driver Install for Wheezy

Postby craigevil » 2012-08-27 20:33

Gotta love the newbies that join just to show everyone the better way of doing things.

2 posts in the same thread with a magical script.

Stick with the Debian wiki it works and works well, or h2's smxi/sgfxi at least it has been around for a few years.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Easy Nvidia Driver Install for Wheezy

Postby THC Butterz » 2012-08-28 00:54

if you read the script, you would see its not magical in any way, its just the debian way in a script for convienence so that the drivers can be installled in minutes rather than spending an hour or more going step by step
THC Butterz
 
Posts: 5
Joined: 2012-08-27 14:10

Re: Easy Nvidia Driver Install for Wheezy

Postby dilberts_left_nut » 2012-08-28 08:58

It certainly isn't.

It will duplicate entries in sources.list.
It will only work if there is a precompiled kernel module available for the running kernel.
And the system will still break whenever the kernel is updated.
Meaning you then run it again - further borking your sources.list and very probably failing to find a new precompiled module.

Don't get me wrong, scripting can be fun and helpful, but there are several MUCH better AND easier AND more permanent ways to install the proprietary nvidia driver.

Basically, if you are intent on reinventing the wheel, at least make a round one ... :)
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4902
Joined: 2009-10-05 07:54
Location: enzed

Re: Easy Nvidia Driver Install for Wheezy

Postby nadir » 2012-08-28 20:07

Come'on ...
a script doesn't need to be run, it can also be used as a reminder...
If it does the job or not is beyond me: I don't use nvidia, mainly cause i can't spell it.
Wouldn't sed be a solution for sources.list?

I agree that the script might be enhanced, but as i know nothing about nothing myself ... i like to try things (be the result good or bad, at least one has tried).
Indentation would be a start (intend and indentation, now that is a hard one ...).

Did that make sense?
If not let it put me less friendly: This probably belongs in the programming section as a question. Or, again more friendly, that is what i would have done.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: Easy Nvidia Driver Install for Wheezy

Postby debil » 2012-08-28 20:36

nadir wrote:Come'on ...
a script doesn't need to be run, it can also be used as a reminder...

As a reminder for what? To take a 2 second nap every few lines while reading it? As already pointed out, there are way better ways to do it. Using this way is taking yet another little step towards broken system.
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
User avatar
debil
 
Posts: 1338
Joined: 2008-05-11 08:55
Location: Mazes of Menace, surrounded by brown puddings

Re: Easy Nvidia Driver Install for Wheezy

Postby kepik » 2013-05-08 17:14

I just wanted to thank you =) keep up the good work!
kepik
 
Posts: 2
Joined: 2013-05-08 17:12

Re: Easy Nvidia Driver Install for Wheezy

Postby MisterJones » 2013-05-08 18:39

I just always install the nvidia drivers from the repo, apt-get install nvidia-glx and yadda yadda, not sure why everyone is always wanting to download and install these drivers for themselves. Now I will get 2 years or more of good graphics, and good gaming experience. Oh well to each his own I guess.
MisterJones
 
Posts: 7
Joined: 2012-03-06 22:53

Re: Easy Nvidia Driver Install for Wheezy

Postby commandline » 2013-05-28 12:25

Here is the original script that was created for suqeeze (but not by you THC Butterz).

http://www.unixmen.com/script-to-install-nividia-driver-in-debian-squeeze-with-one-click/
The similarities are quite compelling :D

changing "squeeze" to "wheezy" isnt something to be proud of. Sorry for Gravedigging, but credit where credit is due (Im not the creator of the script, just bothered by copycats)
commandline
 
Posts: 1
Joined: 2013-05-28 12:20

Re: Easy Nvidia Driver Install for Wheezy

Postby cynwulf » 2013-05-28 12:40

A trained monkey can install the nvidia proprietary driver these days as it's handled by DKMS both in the Debianised packages and in the NVIDIA*.run installers. No need for third party scripts.
cynwulf
 
Posts: 2396
Joined: 2008-09-25 08:49

Re: Easy Nvidia Driver Install for Wheezy

Postby bobbiescap » 2013-08-28 11:22

I give full kudos to the author of this script as I had borked my install trying to put on the Nvidia driver too late at night and the script got me up and going quicker than I could have otherwise, I will sort out the rest later.

I am sure that with a little encouragement the script could be improved to help new comers to Debian, too many negative comments in my opinion, if a person has 50 mediocre ideas and the 51st is a pearler the mediocre ones are forgotten very quickly.

Good on you and thanks for sharing.
bobbiescap
 
Posts: 4
Joined: 2013-08-22 10:18

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable