Pegon Revival

Old gateway’s disks crashed, after some eight years of operation; an 450Mh Compaq Pressario. I’ve had disk crashes before, but have always had problems reinserting new ones.  Number one — it takes me a whole day to open the cabinet.

A new one was set up. This time with redundancy in mind, that is RADI1 and RADI5 (and LVM). The computer as it was assembled:

  • Gigabyte GA-MA770-UD3
  • Dual core AMD 8850
  • 4GB ram memory
  • Three 640 GB disks
Posted in Home Net

Zolo (2004-2009)

My dear Zolo suddenly left me, an early Friday 2009-04-17. He was a dear friend and



someone always lightening my day. RIP.

Posted in Life

Regular Expressions – Repository

  • Validate email address:
Posted in Programming, Standards

DFS – loopback

Had some problems with my DFS setup, not making it possible for my Windows XP machine to utilize the DFS share on my local machine. Som googling and the answer:

Windows Registry Editor Version 5.00

Posted in Computers, Home Net, Windows

System Updated

My old computer had problem decoding HD-material. I could decode 720, but 1080 was not fun. One day I decided to upgrade my existing system, so here it is:

  • GA-MA770-UD3 (rev. 1.0)
    I wanted a simple, relatively new, single PCI-e 16x slot, and supporting optical S/PDIF connection.
  • AMD 9850 Quad Core
    OK performance to decode 1080p material; actually I can without lack of performance deocde at least 7 streams simultaneously.
  • Head sink, NOCTUA NH-U9B.
  • Reuse of my previous ATI 3870 GPU.
  • Power Supply, Corsair PowerSupply (PSU) 550W VX ATX.
  • Resue of my old Antec chassi.

Main operating system is Windows XP. Media Portal as HTPC software. Video output to a Samung A656 LCD panel.  Sound reproduced by H /K 5500.

Posted in Computers, Home Net

New GFX Card

A HD3780, silent. Heatpipe. Need a new mother board to be able to taka advantage of all its features.

Posted in Computers, Home Net

Local Network – TODO

Things planned to be done in home net.

  1. Replace my locally compiled packages to those from the distribution:
    Rationale: Using the package systems makes it easier to keep software up to date, and makes it easier to handle dependencies. All in all, making it easier for the system to grow.
  • Fix (correct) startup scripts for
    • lirc
    • firewall
  • Bind (√ 2008-02-20)
  • DHCP (√ 2008-02-20)
  • Apache2 (√ 2008-02-20)
  • OpenLDAP (√ 2008-02-20)
  • PHP5 (√ 2008-02-20)
  • MySQL 5(√ 2009-05-05)
  • Samba
  • Subversion (√ 2008-02-20)
  • Use new local IP subnet (√ 2008-??-??)
    • Servers:
    • Workstations:
    • Reserved:
      • Gateway:
      • Wireless Access point:
      • WTC Server:

Install the distribution’s package and remove the locally compiled files from /usr/local/bin, /usr/local/bin, usr/local/man, etc. That is, I keep my locally handcrafted configuration files, usually stored in /etc, or /usr/local/etc, which is copied/merged to the distribution package’s configuration area.

To make sure I wipe out all my locally installed files, under /usr/local/, the following script was used:

[sniplet dpkg-clean-local-dir]

  1. Installation of VPN solution, with capability on hosting LAN reachable from Internet.
Posted in Home Net

Hard drive failure

There goes another drive, a Maxtor 6B200P0 (203 GB) ATA.Hard Drives

Just bought a new spare… a Samsung HD501LJ (500 GB). Too bad I never buy enough drives to set up a RAID-system :|

I used R-Studio NTFS to save a whole lot from the old disk. My apps folder (unzipped tools and programs), my Cygwin installation, and a number of media files. I unfortunately lost a number of good DVD concerts, there among Pink Floyd – Pulse :(

I actually was able to reinititate the faulty drive. A chkdsk may indicate the actual health.

Ok, a chkdsk and the disk is actually up…

Posted in Annoyances, Home Net Tagged with:

Lirc, Zoom Player and EventGhost

Some year ago I built my own Lirc device, a home brew transceiver, which I attached to my Linux machine in my hall. Using a somewhat long telephone cable I could place the receiver and transmitter in the living room. The cable is somewhat hidden, so I’m kind of pleased with the installation.

With the infrastructure in place it was time to utilize software. I first just used the terminal to easily send IR-codes, via irsend. No automation there! I realized I needed an OK remote to be able to control the whole HTPC environment. By using a remote controller having ordinary navigational operations and also the play and record buttons was enough to control all devices accordingly. This is my setup:

+-------+                   .--------|(
|       |                  /     IR Receiver                   +-------------
|       |RS232            /                                \   |
|       +----------------+                                -- ( | IR Remote
|       |                 \                                /   |
|       |LAN               \     IR Transmitter                +-------------
|       +------.            `--------|)
+-------+       \
Linux Box        \
                  \                                   +---------------------+
                   \                    H/K 5500      | .---------------. o |
                  +--------+          +----------+    | |               | o |
                  |        |TV-out    |  ||||    |    | |               | o |
                  |        +--------->|  - - - O |--->| |               |   |
                  |        |          +----------+    | `---------------´   |
                  +--------+                   |      +---------------------+
                  HTPC Computer                |             Television
                                           5+1 Audio System
Linux Box

The Linux box is where the LIRC device is attached. This box must be configured to receive and transmit IR signals. With a correct LIRC configuration, see below, this can be accomplished.

HTPC Computer

I usually use Zoom Player for playing media files, because of its nifty full screen file navigator. So my primary target is to control this application

Zoom Player needs to be started when when a certain button on the remote controller is pressed. To achieve this a special agent is used–EventGhost. EventGhost can actually be used to connect to a LIRC server, and controlling Zoom Player, using a downloadable plug-in. Though, I’ve chosen to not use EventGhost as my logic controller. Instead the Linux box will be used as orchestrian, sending commands to desired places, i.e. a push approach, when certain input stimulus (IR signals) is received.

The Television

A Phillips PW3818 acts as video display, recieiving the video signal via S-Video.

H/K 5500

A The AVR Receiver, H/K 5500, on which the volume and surround emulation must be chosen. Sound is delivered to a 5+1 loudspeaker system.

The Remote Controller

A Logitech Harmony 525 is used as my only remote. I added the XBox360 device to the Harmony. This device will act as the HTPC controller. It has functions for playing as well as recording, and also navigation buttons. More than needed. And it won’t interfere with my existing devices, that is, I don’t own a XBox!

LIRC Configuration

The Xbox360 configuration was added to my lircd.conf. The controller was included in the big remotes.tar.gz file. I did have some problom using the the signals sent from the virtual XBox360. It was solved by adding

toggle_bit 22

to lircd.conf and the XBox360 device.

My lirc.conf also includes the configurations for my television and my AVR. With this configuration I should be able to recieive signals as well as react and trigger transmitting of signals.

The solution is quite elegant. A simple bash script is used to send commands to Zoom Player, via its remote interface. This happens via a FIFO and a a netcat process, which is run in the background. In case netcat needs to be started/respawned, it does this automatically. Netcat running as a background process is needed, to let Zoom Player send back responses, on a not closed connection. (If not Zoom Players generates errors.)

Now I only needed to map the XBox commands to call the script with relevant commands, which is done via lircrc, for example:

remote = Microsoft_Xbox360
button = UpArrow
repeat = 2
prog = irexec
config = /usr/local/sbin/zprpc VK_UP

(More to come)

Posted in Computers, Home Net


I just is in the startup of using ASP.NET (and Ajax). To ease my understanding these links will help through the day:

Posted in .NET, Programming