Archive for the ‘repositories’ Tag

DVD Playback on Debian Lenny

Debian 5 (Lenny)
Linux kernel: 2.6.26-2-686
Gnome: 2.22.3

I’m looking for commercial dvd playback on my Debian lenny desktop. Let’s see if this works.
First thing is to add the Debian Multimedia repositories to the sources.list
Open a terminal window and type this:

$ sudo nano /etc/apt/sources.list

At the end of the sources list, add this:
deb http://www.debian-multimedia.org lenny main
Mine looks like this.
sources_list_dvd

Now to install the keyring. Open a terminal window and type this:
$wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb
The above command is one long command with no spaces. This wordpress page puts it on 2 lines…….it’s only one command.
Now type this:
$ sudo dpkg -i debian-multimedia-keyring_2008.10.16_all.deb
And now this:
$ sudo apt-get update

Now you can keep your terminal open and Type:
$ sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-lame libdvdcss2
Once again, that is one long command. Or, if you would rather install these through synaptic, You can close the terminal and add these through the synaptic GUI program. They both will work.

gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
gstreamer0.10-lame
libdvdcss2

The install went good, no errors……until.
The Debian update manager(GUI) gave me a smart upgrade option because of some new dependencies for some new applications or newer versions of existing dependencies. I opted for the smart upgrade.
During the smart upgrade I got a notification that the mplayer.conf file would be replaced with a new conf file. I was asked if I wanted to keep the old one or write the new one. I choose to write the new one.
Try a few dvd’s
It works. Nice. Well…It didn’t work on a new release (Transformers 2), but It did work on dvd’s that were a little bit older. Probably encryption issues.

I also added:
$ sudo apt-get install w32codecs
and
$ sudo apt-get install vlc
Just for good measure.

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

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.