Linux notes | my old linux notes | HTPC notes | | | Write a comment
My personal notes collected while messing with Ubuntu 6.06 (server) on my Mini-itx M10000 Nehemiah based server (with the OS running of a 2GB CF card, and a Hauppauge PVR-350 for experimental reasons), Ubuntu 7.04 on my IBM ThinkPad T23 and Ubuntu 7.10 on my T40p.
All entries here:
2008-12-15 03:49:41
Turn the display off (and on) remotely
2008-10-01 01:47:53
WD My Book Studio Edition 1TB
2008-07-25 17:37:13
Newcs cardserver
2008-07-19 18:12:09
Batch rename
2008-07-04 20:29:31
ThinkLight Gmail checker bash script
2008-06-28 23:54:42
Pinnacle DVB-T nano stick (PCTV 73e)
2008-06-21 19:21:20
Play video as ASCII in the console with VLC and mplayer
2008-04-30 19:35:23
Quite random short notes
2008-04-27 22:03:04
Drawing graphs with PHP
2008-04-20 19:01:48
Eggdrop IRC bot
2007-12-30 23:40:13
Apple Bluetooth Keyboard in Ubuntu
2007-12-30 23:28:50
Schedule a recording from the Hauppauge PVR-350
2007-12-30 23:23:50
Network streaming from a Hauppauge PVR-350
2007-12-30 23:09:12
System backup
2007-12-30 23:05:01
Apache2 - Restart
2007-12-30 23:03:41
Apache2 - Reverse Proxy
2007-12-30 22:03:39
Select input on Hauppauge PVR-350
2007-12-30 22:03:39
Capture pictures / screen shots from Hauppauge PVR-350
2007-12-30 21:36:13
Video playback through the tv-out on Hauppauge PVR-150

Eggdrop IRC bot
I wanted to run a bot that could provide live stats from an IRC channel on a web site.

First we need to install Eggdrop:

sudo apt-get install eggdrop

Then we need to edit the /etc/eggdrop.conf file, it takes some time to work your way through it, but it needs to be done :)

At the bottom I added:

source /usr/share/eggdrop/scripts/stolpaaosdk-nicklist.tcl

That hooks up Eggdrop to the file stolpaaosdk-nicklist.tcl, this is based on Write Channel Nicklist 2 File by SpOoK, that can be downloaded from

I think the only things I changed were the dump file and channel:

set dumpfile "/home/nicolai/web/stolpaaosdk-nicklist.txt"
set channel ""

The dumpfile is then read by a simple php script:

$lines = file ('/home/nicolai/web/stolpaaosdk-nicklist.txt');

foreach ($lines as $line_num => $line) {
echo ($line) . "<br>\n";

This script outputs here: stolpaaosdk.php, and it's then included on

To make it easier to start Eggdrop we make /etc/eggdrop.conf executable:

cd /etc/
sudo chmod +x eggdrop.conf

Then when you want to run Eggdrop you just need to type ./eggdrop.conf (or make it start with the computer).

2008-04-20 19:01:48