Archive for the ‘Debian’ Category

Speeding up Iceweasel

This is being done on Iceweasel 3.5.16,
which is what comes with Debian 6 (Squeeze)
Open Iceweasel and type about:config in the address bar and press Enter.
Promise that you’ll be careful.
Change the following preferences to the new values shown.
Change a setting by double clicking it.

browser.display.show_image_placeholders: false
network.prefetch-next: false
network.http.max-persistent-connections-per-server: 8
network.http.pipelining: true
network.http.pipelining.maxrequests: 8
network.dns.disableIPv6: true

That should do it.

Installing Urban Terror 4.11 on Debian Squeeze (64 bit)

I upgraded to Squeeze 64 bit, carried over the UT folder, started UrbanTerror and Crash! For some reason It would not run. I was running UT 4.1 on Debian Lenny (32 bit). Yes I did start the 64 bit launcher… Crashed! So I downloaded UT 4.11. Still crashed. It seems to be a bug, but I did find a fix.
Here > Optimized executable; builds of ioq3 engine for urt
I’ll reproduce it here in case that one goes away. I just merged the UT folder and the optimized folder. oq3-urt is the launcher.

I pretty much followed my old instructions here. I just had to merge in a few optimized files in the install folder.

The file below will download as ioq3-1807-urt-251210-linux64-tar.odt. After it is downloaded, rename it to ioq3-1807-urt-251210-linux64-tar.bz2

I had to change the extension to get it on the server.

Or just download it from here without having to change the file name:

Extract ioq3-1807-urt-251210-linux64-tar.bz2 into urt’s executable binary directory (tar jxpvf in console or with a file manager).

run ./ioq3-urt (if it’s not executable, chmod +x)
ioq3-urt now starts the game.
You should be in business. I fixed my install.

Thanks again to for the help.

Installing Debian 6 (Squeeze)

I just installed Debian squeeze on 2 of my machines. I’ve documented the process the best that I could. I started to document the process since 5 (Lenny) came out so install would be a no brainer. I’ve decide to put it out there/here in pdf and odt format. Why? Because I think it’s easier to read… plus with the odt, you can save and change the process to fit your situation. Ayway there they are. Use any pdf reader to view the pdf and use LibreOffice to view the odt.

Debian_Squeeze _Setup.odt
Debian_Squeeze _Setup.pdf

OK, I copy and pasted the document below. I would still open one of the above documents on go off of that. It looks the way I want it to in the above documents. If I make any major changes to the document, I’ll make another post.
I actually did the 2nd machine/install with the netinstall from a usb stick. The process is the same.

Like I’ve always said, this site is mainly notes for myself.
My notes are your notes…

Debian Squeeze Setup
November 9th 2011

I will be installing Debian Squeeze with the 1st installation DVD. The first one is all I need for
my needs. It gives me the basic Gnome desktop install and I’ll add the rest later. Lets start.
Put DVD in drive and boot/reboot machine. I choose the “install” option. There is a “Graphical
install” but I prefer the old one. It’s pretty looks the same but I prefer the old one. A few screens with
Select a language: English
Select your location: United States
Select a keyboard layout: American English
Configure the network:
Hostname: debiandesktop
I put debian desktop because this machine will me my main desktop. Command prompt will
look like this terry@debiandesktop . Put whatever you want.
Domain name: ___________
I leave this one blank.
Set up users and passwords:
Root password: ***********(use a good password)
Re-enter password to verify: ***********
Full name for new user: terry
Username for your account: terry
I t auto filled that one.
Choose a password for the new user: **********
Re-enter password to verify: **********
Select your time zone: Central
Partition Disks:
Partitioning method:
“Guided – use entire disk” (my choice)
Select disk partition:
“select the partition”
Partitioning scheme:
“All files in one partition” (recommended for new users) (my choice)
This screen has the partitioning overview. If everything looks good, Select:
“Finish partitioning and write changes to disk.”
Write changes to disk?:
Base system is installed/installing (Installing base system)

Configure the package manager
Your CD or DVD has been scanned: “More CD/DVD scanning options. We only have 1 DVD”
Scan another CD or DVD now?:
Use a mirror?:
Debian archive mirror country:
“United States”
Debian archive mirror:

HTTP proxy information (blank for none):
Configuring popularity contest: “no”
Software selection:
*Graphical desktop environment
*SSH Server
*Standard system utilities

45mins later…

Install the GRUB boot loader on a hard disk
Install the GRUB boot loader to the master boot record?:
Finish installation (disk is ejected)
System Reboots

Log in!

Debian Squeeze setup

First thing I do is open up Iceweasle and install xmarks. I use it to sync bookmarks.

**Add myself to the sudoers list.
Open up a terminal and type:
Then enter the root password.
Now in the terminal, type:
Now add your username to the list.
root ALL=(ALL) ALL
terry ALL=(ALL) ALL
It should look like this:
root ALL=(ALL) ALL
terry ALL=(ALL) ALL
Now press Ctrl +x and when prompted to save, press y. Then press Enter.

**Add Repositories
In a terminal type:
cd /etc/apt
Then type:
sudo gedit sources.list
Type your password.
Your sources.list file should look something like this:

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-
15:11]/ squeeze contrib main

deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-15:11]/
squeeze contrib main

deb squeeze main
deb-src squeeze main

deb squeeze/updates main contrib
deb-src squeeze/updates main contrib

# squeeze-updates, previously known as ‘volatile’
deb squeeze-updates main contrib
deb-src squeeze-updates main contrib

Change them to look like this:

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-
15:11]/ squeeze contrib main

#deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ – Official i386 DVD Binary-1 20110322-15:11]/
squeeze contrib main

deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

# squeeze-updates, previously known as ‘volatile’
deb squeeze-updates main contrib non-free
deb-src squeeze-updates main contrib non-free

# I added multimedia repo below
deb squeeze main non-free

I put a # in front of the 2nd deb cdrom entry. We will not be updating from the CD/DVD rom drives. I
also added “contrib non-free” to the end of all of the existing entries. I also added a multimedia repo.
Check out this page
There’s one more step after the update.
Now hit “save” and close the document. Open a terminal and type:
sudo aptitude update
It complained about a key. In a terminal type:
sudo aptitude install debian-multimedia-keyring
When asked, type the word “yes”

**Install flash
In a terminal type:
sudo aptitude install flashplugin-nonfree
Done! Freedom hater!

Install DVD playback packages:
sudo aptitude install libdvdcss2 w32codecs gstreamer0.10-lame gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly vlc

These are the individual packages in the previous string. Some might already be installed.
I added a few extra that I like.


I’m now showing 15 updates available in the upper right notification area. I’ll go ahead and let it do it’s
thing. More in a bit.

Video Driver Installation (64 bit)
nvidia GeForce 7300 GT / 7600 GS

I’m installing the 195.36.31…. driver because that’s what’s available in the repos.
Using Synaptic Package Manager I installed:

nvidia-kernel-2.6.32-5-amd64 195.36.31+2+4+2.6.32-24 NVIDIA binary kernel module
for Linux
nvidia-kernel-common 20100522+1 NVIDIA binary module support files

Then from a terminal I ran:
sudo nvidia-xconfig

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 usually get the NVIDIA splash screen during the boot. I didn’t this time but I did verify that the driver is installed and working.

Now from Synaptic Package Manager I installed:
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.

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 lenny main
Mine looks like this.

Now to install the keyring. Open a terminal window and type this:
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.


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
$ sudo apt-get install vlc
Just for good measure.


Debian 5 (Lenny)
Linux kernel: 2.6.26-2-486

For some reason I wanted to make a VoIP call with my base lenny install since I got the sound working a few days ago. I decide on Linphone because it’s in the repo’s. Let’s install the command line version.

$ sudo aptitude install linphone-nox

Ok, let’s run it.

$ linphonec
I get a warning that video is disabled but… I already knew that.


OK, so now were ready to make a test call. This is an echo test from somewhere in Australia.

linphonec> call sip:*

You should hear a womans voice explaining what’s going on. You should also be able to hear yourself when you speak into your mic. For some reason everything was muted in alsamixer. I had to unmute the sound and mic.

The configuration file is located at:
It’s a hidden file.
I’m not sure how to configure this yet but I’ll update this post as I get it.

That’s it. Yer good…..Call someone.

Also check out the man page.
$ man linphonec

COMMAND LINE ADVENTURES: Debian Lenny Sound Install

Debian 5 (Lenny)
Linux kernel: 2.6.26-2-486

I decided that I want to stream online radio stations through my Debian Lenny server (No GUI).I say server loosely because I have openssh-server installed. I use it for irssi and bashpodder. But now it will stream online music. Lets get started.

First thing I did was install mplayer:
$ sudo aptitude install mplayer
Since sound was not installed during the base install, I have to install sound…. or alsa should I say. This is the short story.
alsa install:
$ sudo aptitude install alsa-base alsa-utils
Those 2 packages should do it. I logged in as root and ran:
# alsaconf
Looks like the on-board sound is not even detected. I had an old PCI sound card laying around, so I shut it down, installed the card and reboot. Again, as root I ran:
# alsaconf
Went through the configuration screens where I picked my card and alsa configured the driver.
Now to test this out, I tried to connect to a radio station with mplayer:
$ mplayer
Nothing. I know this works because I can listen to this on my other full Debian install. Something must not be configured right. I run alsamixer:
$ alsamixer.
This is what I see.

Great, it looks like the master volume/volumes are all the way down. So I turn them up. I use my left and right arrow keys to make my selection. Then the up and down keys to raise or lower the volumes.
Hit Escape and try my station again:
$ mplayer
Damn it! Still no sound. Open alsamixer again:
$ alsamixer
I notice the little “MM” in the boxes under each component. I arrow over to the master volume and hit the M key. The “MM” was replaced with “00”. The “MM” means muted. Well I finally came up with this configuration. The Master volume and PCM unmuted.
So now I run:
and I hear voices……and the radio. 😉

COMMAND LINE ADVENTURES: Debian Lenny Static IP Address

Debian 5 (Lenny)
Linux kernel: 2.6.26-2-486

Back to my Debian Lenny Base install. I will mostly be accessing this box via ssh, so it needs a static ip address. How the hell do I do that? This box has no GUI. After a few days of searching the inter-webs, I wrote down what I thought I needed to do. I did all of this via ssh, all except the reboot part that is. This is what happened.

I just want to see what my ip address is now:
$ sudo ifconfig
Nice! I’ll use it.

The file you need is located at

Alright, lets open that file:
$ sudo nano etc/network/interfaces

You should be looking at something like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Now I changed mine to look like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
allow-hotplug eth0
iface eth0 inet static

Made the changes and saved.
I’m still not sure what a few of these address’s are. The network and broadcast address’s. I lined them up the best I could compairing my files with other examples on the net….and it worked. I saw on a few sites that you can apply these without rebooting with this command:
$ sudo etc/init.d/networking restart
It didn’t work for me. I had to reboot the machine. Everything came back up fine with the correct assigned ip address.
Have fun! Damn it!

Hulu Desktop and Debian Lenny

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

I heard this morning that the Hulu Desktop is officially supporting Linux. So lets give it a shot.I went here to download the software. They show 4 versions. Two Fedora files, 32 and 64 bit. Two Ubuntu files, 32 and 64 bit. Since I’m running Debian 32 bit, I opted for the Ubuntu 32 bit file. It’s a deb file so it should work just fine. I downloaded the file and gave it a quick double click and I get an error. DAMN!


Could not open “huludesktop_i386.deb” Archive type not supported!

What to do now? Install it a different wany of course. Open a terminal. Navigate to where you saved the install file (huludesktop_i386.deb). Now at the command prompt type:
$ sudo dpkg -i huludesktop_i386.deb

It should install now. It did for me.

Go to APPLICATIONS > SOUND & VIDEO > Hulu Desktop.


Still no joy. It doesn’t know where flash is. Yes, you must have flash installed for this to work. I covered the flash install in my Debian Lenny setup post. Now open the .huludesktop file in your home folder. It’s a hidden file so you’ll have to show hidden files in nautilus. Open nautilus, then go to VIEW. Then check the Show hidden files box. Or open it from the command line with nano or whatever you use. This is what it looks like. Click on the pic below, it gets bigger.

Screenshot-.huludesktop (~) - gedit

In the .huludesktop file, you’ll see an entry that says:

flash_location = (null)

You need to change this so that it points to where you have flash installed. Mine looks like this.

flash_location = /usr/lib/flashplugin-nonfree/

To find the location of your flash install, open a terminal and type:
$ locate
Make the change then save the file and your done.

Go to APPLICATIONS > SOUND & VIDEO > Hulu Desktop.

Or from the command prompt, type:
$ huludesktop
have fun


COMMAND LINE ADVENTURES: Debian Lenny Base Install Setup

Debian 5 (Lenny)
Linux kernel: 2.6.26-2-486

I was given and old Compaq Presario and I wasn’t sure what I should do with it. I mean old. The CPU is a 500mhz AMD K6 and it’s also sporting about 256MB of ram. Nice. First I installed Debian 5 (Lenny) with Gnome, but it was impossibly slow. I even installed the LXDE desktop. Still miserable. Puppy linux ran ok but it wasn’t quit what I was looking for. I’ve always wanted to use the command line more so I figured that this was my chance. What better distro to learn on than Debian. I’ve heard of the irssi, screen and ssh combo but I’ve never done or even seen it. So I figured I’d set up a base install of Debian Lenny, Install irssi and screen and ssh into it from my other machines. That way I can stay logged into IRC at all times. Lets give it a shot.
I used the same net install cd that I have used on the other install. Only thing is, I’m not installing a desktop.
That’s right, no GUI.
First thing I did was install sudo
I need super user rights first.
$ su
# aptitude install sudo
Then I added myself to the sudoers list:
Still with super user rights I typed:
# visudo
I added myself so it looks like this:
user_name ALL=(ALL) ALL
Then ctrl+x and press Y when prompted to save.
Then press enter.

My sources.list looks like this:

deb lenny main
deb-src lenny main

deb lenny/updates main
deb-src lenny/updates main

deb lenny/volatile main
deb-src lenny/volatile main

I’m still not sure what the volatile repo’s are for.
I’ll leave my sources list as they are for now.

Next I installed a weather utility
$ sudo aptitude install weather-util
the command for my area would be:
$ weather -f -i kvpz -c valparaiso -s in
This gives me the current conditions and a 2 day forcast.
(kvpz is the code for the weather station near me. Find yours here)
Don’t forget to checkout the man page:
$ man weather

Next I installed screen
$ sudo aptitude install screen
It works well with irssi and ssh.
Start screen by typing :
$ screen

Next I installed the IRC Client irssi
$ sudo aptitude install irssi
A solid configurable IRC client. It took me some getting used to.

Next I installed Open SSH Server
$ sudo aptitude install openssh-server
Still trying to figure this whole thing out. I think ssh was installed,
but not the server.
From client to server:
$ ssh -l [username] [ssh server ip]
To end session type: logout

Installing Urban Terror 4.1 on Debian Lenny

Urban Terror Screenshot

Urban Terror Screenshot

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

Download the Urban Terror zip file (UrbanTerror_41_FULL) from here: Urban Terror Downloads

I put it in my home folder. Right click the file and choose Extract Here. That will put a folder named UrbanTerror in your home directory. Open that folder. I’m running Debian Lenny 32 bit so I will be using the ioUrbanTerror.1386 file. Right click that file. Choose Properties. Go to the Permissions tab. Put a check next to Allow executing file as program. Then close that panel. Now go back to the UrbanTerror folder in your home directory and double click ioUrbanTerror.i386 and you should be in business.

I need a shortcut on my desktop. Right click the desktop. Select Create Launcher. Type is Application. Where it say’s Name, type Urban Terror 4.1 . Command is the command used to launch Urban Terror. To find this, navigate to the Urban Terror folder in your home directory. Find the ioUrbanTerror.i386 file. Right click that file. Under the Basic tab, you will see Location. Highlight and copy the location.It will look something like this: /home/your_user_name/UrbanTerror. Now past that location in the command field in the Creat Launcher Panel. Then add ioUrbanTerror.i386 on the end of it. It should look something like this:

Command: /home/your_user_name/UrbanTerror/ioUrbanTerror.i386

Hit OK on the create launcher panel and you should be good. Double click on the Urban Terror shortcut you just made on your desktop and you should be on your way.

I had help from here: Review + Howto install Urban Terror on Linux , so check it out.

Next I think I’ll install Wolfenstein Enemy Territory. We’ll see.