LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-03-2008, 05:23 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
A very very ultra easy way to apt-get to install nvidia glx with Debian ?


Hello,
Is there a way so that in 1minutes, reboot, the glx is workign with the video nvidia, just by means of apt-get and nothgin else to do?

thanks

my Xorg.conf is already ok:
Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
#	FontPath	"/usr/share/X11/fonts/CID"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
#########	FontPath        "/usr/share/fonts/ttf"
        # paths to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
#	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
#	Load	"GLcore"
	Load	"bitmap"
	Load	"ddc"
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "InputDevice"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizScrollDelta"	"0"
EndSection


Section "InputDevice"
  Identifier      "Acrox USB & PS/2 Mouse"
  Driver          "evdev"
  Option          "Name" "Acrox USB & PS/2 Mouse"
  Option          "CorePointer"
EndSection



Section "Device"
	Identifier	"Generic Video Card"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
    Identifier	"Generic Monitor"
    HorizSync    28.0 - 96.0
    VertRefresh  50.0 - 86.0
    Modeline "1280x800@70" 101.92 1280 1312 1696 1728 800 816 825 841
EndSection



Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"

	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes		"1280x800" "1024x768" "800x600" "640x480"
	EndSubSection

	SubSection "Display"
		Depth		24
		Modes		"1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	InputDevice	"Synaptics Touchpad"
	InputDevice  	"Acrox USB & PS/2 Mouse" "CorePointer"
EndSection

Section "DRI"
	Mode	0666
EndSection


Section "Extensions"
Option "Composite" "Enable"
EndSection
 
Old 02-03-2008, 09:03 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Try this, the Debian Nvidia Wiki. It should tell you everything you need to do. There are several different options, but I don't think any of them are "one minute" ones.
 
Old 02-03-2008, 09:20 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
It's a one minute process for me, running Sid, but I'm not sure about Etch.
 
Old 02-03-2008, 10:03 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Thanks

http://wiki.debian.org/NvidiaGraphicsDrivers
well, all of that. Looks lot of fun. I will try in one or two weekend, maybe, when I have half day or 1-2 days free for such complicated things.

thx
Greetings
 
Old 02-04-2008, 04:32 PM   #5
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Rep: Reputation: 15
How hard is it?

Do once.

Code:
apt-get install gcc module-assistant nevidia-kernel-common nvidia-glx
Then, and each time your kenel is updated.

Code:
m-a update
m-a prepare
m-a auto-install nvidia
modprobe nvidia
 
Old 02-04-2008, 06:41 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
similar to what I do.. but you left out killing X and restarting it, which some people new to Debian might not know...


Prepare the environment, you only need to do this the first time. the nvidia source, kernel source, etc.. will be downloaded automatically by module-assistant.

aptitude update
aptitude install module assistant build-essential


once that's done

/etc/init.d/gdm stop
m-a update
m-a prepare
m-a a-i nvidia
aptitude install nvidia-glx
modprobe nvidia
/etc/init.d/gdm start


Yep takes about a minute or less each time you need to do this..
 
Old 02-08-2008, 11:46 PM   #7
bluesdog
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
You can even automagically reconfigure your /etc/X11/xorg.conf, if you install nvidia-xconfig, and run it after the nvidia module and nvidia-glx install.

Your procedure would then resemble:

aptitude update
aptitude install module assistant build-essential

/etc/init.d/gdm stop
m-a update
m-a prepare
m-a a-i nvidia
aptitude install nvidia-glx nvidia-xconfig
nvidia-xconfig
modprobe nvidia
/etc/init.d/gdm start


Just a wee bit more typing, but you get a working nvidia-powered xorg.conf right away!


btw, if a user is running Etch/stable, with a stock kernel, wouldn't the easiest, fastest way of getting nvidia be by installing the pre-packaged nvidia-module to match their kernel?

aptitude update
aptitude install nvidia-kernel-$(uname -r) nvidia-glx nvidia-xconfig
/etc/init.d/gdm stop
nvidia-xconfig
modprobe nvidia
/etc/init.d/dgm start

Last edited by bluesdog; 02-08-2008 at 11:47 PM.
 
Old 02-09-2008, 12:13 AM   #8
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by hepburnenthorpe View Post
How hard is it?

Do once.

Code:
apt-get install gcc module-assistant nevidia-kernel-common nvidia-glx
Then, and each time your kenel is updated.

Code:
m-a update
m-a prepare
m-a auto-install nvidia
modprobe nvidia
It worked amazing !! You're a genius !!
Thanks 1000000000 times. that was so easy, ... when you know it. I thought that kernel compiling was the only way.

Last edited by frenchn00b; 02-09-2008 at 12:14 AM.
 
Old 02-10-2008, 12:19 PM   #9
Phiebie
Member
 
Registered: Oct 2004
Location: Austria
Distribution: Debian testing
Posts: 114

Rep: Reputation: 17
Quote:
Originally Posted by farslayer View Post
aptitude install nvidia-glx
Please be careful in what you write, so as not to ruin your excellent reputation as 'guru' within Debian.
I switched 6 weeks ago to pure 64-bit CPU and motherboard and a NVidia-PCIe-card thereupon.
Aptitude then did, what it was supposed to do and installed as much as available applications with the extension "..amd-64"
I followed then the WIKI-suggestion, which you repeated, to get nvidia-glx. But how often I tried and whatever I did, a nvidia-glx is nowhere available anymore in the testing-branch, even 5 minutes ago!
Two possibilities:
- your knowledge on this is too old
- stable has a module, that is not proliferated to testing anymore
- in 64-bit there's not (yet) a nvidia-glx available.
I fear, that the middle-one in combination with the last-one is most probably the case. See Firefox vs. Iceweasel as an example, why something is not acceptable anymore.

No harsh feelings please on what I've written above, just a hint, that 32-bit and 64-bit are seemingly not handled on the same basis in Debian.
 
Old 02-10-2008, 01:24 PM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
...nvidia-glx is nowhere available anymore in the testing-branch...
The OP was using Etch. IMO, Lenny users are best advised to keep kernels and the associated modules up to date from the Unstable branch. Updating a few elements of your Lenny system from Sid is relatively safe, and not really unlike the normal flow of applications from Unstable to Testing.

Last edited by rickh; 02-10-2008 at 01:28 PM.
 
Old 02-10-2008, 01:30 PM   #11
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by rickh View Post
The OP was using Etch. IMO, Lenny users are best advised to keep kernels and the associated modules up to date from the Unstable branch. Updating a few elements of your Lenny system from Sid is relatively safe, and not really unlike the normal flow of applications from Unstable to Testing.
readign this and I am already lost in technical words...
It worked and thnaks again !
 
Old 02-10-2008, 10:17 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Phiebie View Post
Please be careful in what you write
Two possibilities:
- your knowledge on this is too old
- stable has a module, that is not proliferated to testing anymore
- in 64-bit there's not (yet) a nvidia-glx available.

No harsh feelings please on what I've written above, just a hint, that 32-bit and 64-bit are seemingly not handled on the same basis in Debian.
The directions I gave are valid for Debian Stable (Etch) which was the focus of this thread.

If you intend to run the testing or unstable branch, you should have a background in Debian that is technical enough to watch for changes, missing packages, alternate methods of doing things. Testing and Unstable are not for the un-initiated Debian user, or for someone who expects things to just work all the time. Packages appear and disappear in the testing and unstable branches, the package names change, parts go missing.

I take no offense to your comments, or opinion, but as pointed out the OP was using Debian Stable(etch), and as such the response was correct. had the OP been using Testing or Unstable the response may have been different.

With testing or unstable I typically install the nvidia driver with the package from nVidias website, rather than the Debian module-assistant method. while still using module-assistant to handle getting the build environment configured and up to date quickly.


A quick search of the testing repository shows that there is no nvidia-glx package currently available for any architecture

as for 64 bit, again that was not part of the OP's original question, nor would I attempt to authoritatively answer a specific question about an architecture I don't run.

If you have specific question about testing or unstable on the 64 bit architecture and a forum search doesn't find a solution then you should really start a separate thread for your question, rather than try to point out that valid information for other branches of Debian are incorrect.

Best of luck to you, and I don't worry about being referred to as a guru.. I'm just another guy trying to help out.
 
  


Reply



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
Can't load the nvidia glx (may be lacking \etc\rc.d\init.d\nvidia-glx) Starchild Fedora 1 07-27-2007 06:44 AM
Debian Business card to install NVIDIA nForce 570 Ultra MCP LingLIng7 Linux - Newbie 1 01-06-2007 04:20 PM
nvidia glx acceleration won't work in kde on debian sillyd Linux - Hardware 4 01-29-2005 08:18 AM
problem with glx q3a on debian (nvidia) meisterlampe Linux - Games 1 03-31-2004 09:18 AM

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

All times are GMT -5. The time now is 10:52 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
Open Source Consulting | Domain Registration