Archive for the ‘Command Line’ Category

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

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!

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