Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Easy Nvidia Driver Install for Wheezy

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
THC Butterz
Posts: 5
Joined: 2012-08-27 14:10

Easy Nvidia Driver Install for Wheezy

#1 Post by THC Butterz »

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/wh ... tall.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

#2 Post by THC Butterz »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Easy Nvidia Driver Install for Wheezy

#3 Post by dilberts_left_nut »

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
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Easy Nvidia Driver Install for Wheezy

#4 Post by dasein »

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

julian516
Posts: 311
Joined: 2010-03-18 20:10
Location: Loveland, CO

Re: Easy Nvidia Driver Install for Wheezy

#5 Post by julian516 »

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!

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Easy Nvidia Driver Install for Wheezy

#6 Post by craigevil »

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.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

THC Butterz
Posts: 5
Joined: 2012-08-27 14:10

Re: Easy Nvidia Driver Install for Wheezy

#7 Post by THC Butterz »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Easy Nvidia Driver Install for Wheezy

#8 Post by dilberts_left_nut »

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
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Easy Nvidia Driver Install for Wheezy

#9 Post by nadir »

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
debil
Posts: 1336
Joined: 2008-05-11 08:55
Location: Mazes of Menace, surrounded by brown puddings

Re: Easy Nvidia Driver Install for Wheezy

#10 Post by debil »

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.

kepik
Posts: 2
Joined: 2013-05-08 17:12

Re: Easy Nvidia Driver Install for Wheezy

#11 Post by kepik »

I just wanted to thank you =) keep up the good work!

MisterJones
Posts: 7
Joined: 2012-03-06 22:53

Re: Easy Nvidia Driver Install for Wheezy

#12 Post by MisterJones »

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.

commandline
Posts: 1
Joined: 2013-05-28 12:20

Re: Easy Nvidia Driver Install for Wheezy

#13 Post by commandline »

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

http://www.unixmen.com/script-to-instal ... 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)

cynwulf

Re: Easy Nvidia Driver Install for Wheezy

#14 Post by cynwulf »

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.

bobbiescap
Posts: 4
Joined: 2013-08-22 10:18

Re: Easy Nvidia Driver Install for Wheezy

#15 Post by bobbiescap »

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.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Easy Nvidia Driver Install for Wheezy

#16 Post by dasein »

bobbiescap wrote:...the script got me up and going quicker than I could have otherwise...
Until your next kernel change. And the one after that. And the one after that.

DKMS. Really.

User avatar
Tsunalugi
Posts: 60
Joined: 2014-01-17 05:31
Location: Oklahoma (The concealed Hollywood)

Re: Easy Nvidia Driver Install for Wheezy

#17 Post by Tsunalugi »

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

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

I'm curious, what does an individual do to remove the drivers at that page posteri having installed them?

Gracias.
Long time User of Linux.

With the publication of the Greek Pagan Deity Planet Names, society is more likely to reflect what's appropriate.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Easy Nvidia Driver Install for Wheezy

#18 Post by llivv »

Tsunalugi wrote: I'm curious, what does an individual do to remove the drivers at that page posteri having installed them?.
  1. remove the packages
  2. comment out nouveau blacklist
  3. move config file out of the way.
signed: monkey in training
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

hamiltino
Posts: 24
Joined: 2013-03-31 05:18

Re: Easy Nvidia Driver Install for Wheezy

#19 Post by hamiltino »

Thanks works!!

Screw the haters!

Post Reply