Archive for October, 2009|Monthly archive page

ListGarden RSS Feed Generator

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

Looking for an rss / podcast feed generator? This is a good one. It’s more predictable than the feed generator built into wordpress. More control.
I’m looking for and alternate feed for a podcast that I participate in. The Juiced Penguin. The feed that the wordpress plugin produces also includes posts that don’t have a podcast associated with it. I want a feed that is purely a podcast feed. I think ListGarden is it.
First we need to download the program.
ListGarden : The download is at the bottom of the page I linked to.
There are 3 versions to choose from. A Windows, Mac and generic perl version. Since we’re using Debian, we want the generic perl version (listgarden-1-3-1.tar).
I downloaded the tar file to my home folder. Now you can right click the (listgarden-1-3-1.tar) file and select Extract Here.
Or we can do it from the command line:
**************************************
Open a terminal window.
Application > Accessories > Terminal
Navigate to where you saved the list garden file (listgarden-1-3-1.tar).
When you open the terminal, you should be there if you saved it in your home directory. Type:
$ ls
And you should see the listgarden-1-3-1.tar file. Once your there, type:
$ tar -xvf listgarden-1-3-1.tar
**************************************

Either way should leave you with a listgarden folder in your home folder loaded with goodies.
Alright, now what? Start up the program.
The only way I’ve been able to start this thing up is from the command line. You have to open a terminal and navigate to where it is installed. In the home directory, in the listgarden folder. Type:
$ perl listgarden.pl
You should get this notice: To access UI, display in browser: http://127.0.0.1:6555/
Go to that address in your web browser and you’re in business.
I’m not going to explain how to use it but I do know that to save or use this program with saved rss feeds on another computer, all you do is save and move the listgarden folder. It’s that easy.

How to use ListGarden

Advertisements

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.

COMMAND LINE ADVENTURES: Linphone

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

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.

linphone1

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

linphonec> call sip:*318613@ekiga.net

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:
home/user_name/.linphonec
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.
Rebooted.
Now to test this out, I tried to connect to a radio station with mplayer:
$ mplayer http://citadelcc-wls-am.wm.llnwd.net/citadelcc_WLS_AM
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.
alsamixer1

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.
alsamixer2
Hit Escape and try my station again:
$ mplayer http://citadelcc-wls-am.wm.llnwd.net/citadelcc_WLS_AM
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.
alsamixer3
So now I run:
mplayer http://citadelcc-wls-am.wm.llnwd.net/citadelcc_WLS_AM
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. 192.168.1.68

The file you need is located at
etc/network/interfaces.

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
address 192.168.1.68
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

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!

Screenshot-file-roller

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.

Screenshot-huludesktop

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/libflashplayer.so

To find the location of your flash install, open a terminal and type:
$ locate libflashplayer.so
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

Screenshot

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
Under ROOT ALL=(ALL) ALL
I added myself so it looks like this:
ROOT ALL=(ALL) ALL
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 http://debian.uchicago.edu/debian/ lenny main
deb-src http://debian.uchicago.edu/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’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