Archive for August, 2009|Monthly archive page

Debian Lenny: Installing the Nvidia Driver the Debian Way

nvidia settings

nvidia settings

Debian 5 (Lenny)
Video Card: Nvidia GeForce 7300 GT
Linux kernel: 2.6.26-2-686
Gnome: 2.22.3

The following was done after I set up Debian. See my previous post.

The Nvidia site says I need the 185.18.31 driver.
I’m installing an older 173.14.09…. driver because that’s what’s available in the repos. You can install the 185.18.31 driver the Nvidia way but that’s much more involved. If I’m unhappy with the 173, I’ll do the 185 by hand.

Using Synaptic Package Manager I installed:
nvidia-kernel-2.6.26-2-686 (version: 173.14.09+3+lenny1)
nvidia-glx (version: 173.14.09-5)
nvidia-kernel-common (version: 20080825+1)
nvidia-xconfig

Then from a terminal I ran:
$ sudo nvidia-xconfig

That produced this:

Using X configuration file: “/etc/X11/xorg.conf”.
VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
At least one Device section is required.
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’

I then rebooted. I got the NVIDIA splash screen during the boot.
Driver install done.

Now from Synaptic Package Manager I installed:
nvidia-settings
Your resolution should be set to auto which is the native resolution of the monitor. With the next command, you should be able to change that.

At a terminal type: $ sudo nvidia-settings to get to the NVIDIA X Server Settings window (GUI) to adjust settings. Everyones happy…. I hope.

Some problems I have had in the past:
A Monitor out of range error is a HorizSync VertRefresh issue.
If this happens, you will find yourself at an unusable
scrambled screen. Type: ctrl-alt-f1
Now fix it. Open etc/X11/nano xorg.conf and make the
adjustments…or you might have installed the wrong driver. Doh!
Adjust your HorizSync VertRefresh to:
HorizSync 31.5 – 57.0
VertRefresh 50.0 – 70.0

Advertisements

Debian Lenny setup

Screenshot
Ok. A fresh install of Debian Lenny. I used the net install. I started the install and let it do it’s thing. It took about an hour and a half with my connection. I went and watched Bourne Supremacy while it was installing. I’m not going to go over the install. There are a bunch of guides and examples on the net Here’s a link to a quick over view. Remember, you do want the base system and desktop environment installed.

Debian 5 (Lenny) Step-by-Step

First thing I want to do is add myself to the sudoers list. This is how.

Add user(me) to sudoers list. In a terminal type:
$ su
Then type in the root password.
Then type:
# visudo
Now you can add a username to the list.
Under: root ALL=(ALL) ALL
Add:Your_username ALL=(ALL) ALL
Now press Ctrl+X and press Y when prompted to save. Then press enter.
Now you should be on the sudo list.

ADDING REPOSITORIES.

In a terminal type:
$ su
Type in root password.
Then navigate to etc/apt
then type:
# nano sources.list

My sources list looked like this:

deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

I changed to to this:

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

Now press Ctrl+X and press Y when prompted to save. Then press enter.
At a terminal type:
$ sudo apt-get update
Done.

AUTO MOUNT USB STICKS.

In a terminal type:
$ sudo apt-get install ntfs-3g
This will also mount external hard drives formatted as NTFS.
Done

INSTALL FLASHPLAYER PLUGIN

To do this we must add backports. Here’s how.
In a terminal type:
$ su
Type in root password.
Then navigate to etc/apt
then type:
# nano sources.list
Add this to the source list.
deb http://www.backports.org/debian lenny-backports main contrib non-free
Now press Ctrl+X and press Y when prompted to save. Then press enter.
At a terminal type:
$ sudo apt-get update
Now from a terminal type:
$ sudo apt-get install debian-backports-keyring
Press y when asked.
Now the backports work. Lets install flash.
In a terminal Type:
$ sudo apt-get install flashplugin-nonfree
Press Y when prompted.
Done.
Now you are officially a freedom hater. Congratulations.
That’s enough for tonight.