Sunday, May 21, 2006

Addressing the heat problem with grumpy

Grumpy, my MythTV box, is running continously. The PVR-500 is running hot, the NVidia graphics card (fanless) is running hot, the CPU is running hot, the northbridge isn't exactly cool either, neither is the hard-drive.

When I first put this together, I used only the single fan that came with the case (Antec Overture). It's temperature controlled and with all the heat was quickly running at full speed after I closed the case, along with the associated noise. Even though it is a silent fan, it's not the most quiet around. I like the Coolermaster SAF-S84-E1. Virtually quiet.

I installed a fan next to the PVR-500 that blows air out of the case through the open expansion card slots. However, it didn't get enough air flow. So, I built another Coolermaster ultra-quiet fan in the 5 1/4" expansion slots:





Sunday, May 07, 2006

Piggy-backing off SpeakEasy's mail rejector

I'm running postfix with spamassassin and procmail on chef. The system works quite well. The amount of spam we see in our mailboxes has come down dramatically compared to a few months ago. I'm using SpeakEasy as default relay to work around a deficiency in SpeakEasy's domain sender verfication.

Patricia is forwarding her mail to a gmail account for easier and faster searching. SpeakEasy's sender domain checks are more stringent occasionally than what I use (and the spam checks on chef are performed on user delivery, not when I accept mail and forward it on to gmail.com). So I regularly end up with entries in my mail queue that are rejected by SpeakEasy (and I have softfail enabled).


-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
473825800 3908 Sat May 6 00:24:50 abcdf@0451.com
(host mail.speakeasy.net[69.17.117.59] said: 553 sorry, your mail was administratively denied. (#5.7.1) (in reply to MAIL FROM command))
_______@gmail.com

3EAED52BF 5611 Thu May 4 23:34:11 huneycu@alma.net
(host mail.speakeasy.net[69.17.117.59] said: 554 refused mailfrom because return MX does not exist (in reply to MAIL FROM command))
_______@gmail.com

60D3E53FF 3900 Sat May 6 00:22:11 dage3@0451.com
(host mail.speakeasy.net[69.17.117.59] said: 553 sorry, your mail was administratively denied. (#5.7.1) (in reply to MAIL FROM command))
_______@gmail.com

DC5E752C3 3303 Wed May 3 23:31:49 czj@0451.com
(host mail.speakeasy.net[69.17.117.59] said: 553 sorry, your mail was administratively denied. (#5.7.1) (in reply to MAIL FROM command))
_______@gmail.com

A579A537C 1538 Fri May 5 14:54:49 awawa@0451.com
(host mail.speakeasy.net[69.17.117.59] said: 553 sorry, your mail was administratively denied. (#5.7.1) (in reply to MAIL FROM command))
_______@gmail.com

-- 18 Kbytes in 5 Requests.


I added the following to /etc/postfix/main.cf:


smtpd_sender_restrictions =
reject_unknown_sender_domain
reject_unverified_sender


The first test will do a DNS lookup on the sender domain and make sure there is either a MX or an A record returned. The second test will actually try to initiate sending an email to the sender ("email callout"). Since I'm smart hosting through SpeakEasy, I'm actually not hitting the destination mail server (and won't participate in e.g. JoeJobbing aol.com). Instead, this just asks SpeakEasy's mail server whether it would allow an email from that domain to go through later when it'll be forwarded to gmail.com after it finally got accepted on chef.

Here's an example SMTP session with this feature enabled:


$ telnet mail.goodcoffee.net 25
Trying 216.27.180.215...
Connected to dsl027-180-215.sfo1.dsl.speakeasy.net (216.27.180.215).
Escape character is '^]'.
220 chef.goodcoffee.net ESMTP Postfix
MAIL FROM:
250 Ok
RCPT TO:
450 : Sender address rejected: undeliverable address:
host mail.speakeasy.net[69.17.117.59] said: 554 refused mailfrom because
return MX does not exist (in reply to MAIL FROM command)
quit
221 Bye
Connection closed by foreign host.


Note how chef responds with the error message from mail.speakeasy.net. The respective maillog entries nicely show how the verify(8) server is calling out to speakeasy.net while the incoming connection is still open.

Oh yes, the MX entry for alma.net is kinda amusing:


$ dig mx alma.net

; <<>> DiG 9.2.4 <<>> mx alma.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6518
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;alma.net. IN MX

;; ANSWER SECTION:
alma.net. 7200 IN MX 0 dev.null.

;; AUTHORITY SECTION:
alma.net. 7195 IN NS ns.buydomains.com.
alma.net. 7195 IN NS this-domain-for-sale.com.

;; ADDITIONAL SECTION:
ns.buydomains.com. 172795 IN A 208.254.3.177

;; Query time: 87 msec
;; SERVER: 192.168.200.1#53(192.168.200.1)
;; WHEN: Sun May 7 09:43:16 2006
;; MSG SIZE rcvd: 132



(Of course, I could just disable the softfail feature of postfix and the annoying entries in my mail queue would go away, but that wouldn't be so interesting...)

Update:
So, that ended up being a really stupid idea. Apparently, the mail check on SpeakEasy's server
failed 95% of the time and all legit mail was blocked (amusingly, spam still got through...). I took this out again. Doesn't seem to work the way I expected.

Saturday, May 06, 2006

Getting ShiftTV segments to grumpy

We have over 35GB of content downloaded from ShiftTV. In the one week MythTV is running here it already filled up 40+GB with MPEG2 material from the cable broadcasts.

So, we copy on demand:
- I added an icon Patricia's desktop to open up a sftp kio slave to grumpy with ssh authorized_keys login (URL: sftp://mythtv@grumpy/opt/movies/)
- copy over the move to that folder
- Media Library -> Watch Videos

Getting overscan to work properly

The nvidia package comes with a nice X tool called nvidia-settings. It controls all aspects of the graphics chip. I feel like being on Windows. When you exit the tool it saves all settings to ~/.nvidia-settings-rc. It even has a helpful --load-config-only option that will suck in and apply the values from the rc file. You can put that e.g. into the KDE autostart folder.

The only catch: The graphics chip doesn't care.

When I open the tool, overscan is not adjusted at all. Only once I move the overscan slider even only one notch the setting gets applied to the output properly. However, the setting does get adjusted properly when I use the --assign option of nvidia-settings.

Oh well, here is the script I use to configure TVout:


#!/bin/sh

nvidia-settings -a 0/TVOverScan[TV-0]=14
nvidia-settings -a 0/TVSaturation[TV-0]=130
nvidia-settings -a 0/TVHue[TV-0]=10
nvidia-settings -a 0/TVFlickerFilter[TV-0]=153
nvidia-settings -a 0/DigitalVibrance[TV-0]=7
nvidia-settings -a 0/ImageSharpening[TV-0]=0


The values are copied from nvidia-settings-rc after I was happy with the picture. It does need a little bit more fine-tuning for the greens, but looks pretty good already.

Thursday, May 04, 2006

success!!!

MythTV is now running for almost a week.

Stuff I have working:
- Debian 3.1 Testing base install
- wintv pvr-500 with dual tuners recording hardware encoded mpeg2 streams using the ivtv drivers
- computer in nice case (Antec Overture) and hooked up to TV
- mythvideo, so I can play back German TV segments downloaded from shiftTV using mplayer
- automatic login and start of mythfrontend
- manual commercial skipping (well, ok, that's a mythtv feature, but it's cool. Not as cool as the automatic skip of ReplayTV, though)

Basically, the whole system is usable. Decent video quality, too (especially considering that I'm feeding this via composite TVout to a 10 year old 26" TV). I'm excited!


Stuff I need to work on:

- no remote, still using keyboard
Patricia won't use this unless there is a remote. It is asking a bit much to remember all the relevant key strokes (although, she is getting curious ... slowly). I'm planning to build or buy a cheapo IR receiver for the serial port and re-use one of the dozen IR remotes I have laying around. The ReplayTV one is particularly interesting ("Commercial Skip" button is already properly labeled...)

- TVout borders/overscan
The Nvidia TVout signal leaves an ugly border around the picture. I didn't bother yet with experimenting how to get rid of this, aside from enabling the TV overscan setting in xorg.conf which had zero effect. Maybe need a special ModeLine? Or investigate http://sf.net/projects/nv-tv-out

- cooling issues
The Antec Overture is a *very* nice case, given the footprint. 3U, so regular expansion cards fit without the need for riser cards. The case is huge, but the case doesn't look bulky. 380W True Power power supply, temperature regulated 9cm fan in the back. The only catch is that the PVR-500, the FX5200 and the CPU generate quite a bit of heat and the airflow is not optimal so that the fan can get the hot air out of the case. It runs at full speed, but the inside of the case still gets very hot. Actually, the case around the PVR-500 feels warm from the outside...
I turned around the airflow of the case fan, so it blows air into the case straight on the hard drive, and installed another fan on the inside that blows air over the PVR-500 and the video card out through the PCI slot holes. Doesn't help much, though. For now, I opened the front expansion slots, so that warm air exits the case through the front.

- scheduled shutdown/boot to save power
Yet another computer sucking up power in the house. MythTV supports putting the computer to sleep after recordings are done and waking it up before the next recording. Need to see what my motherboard supports and how this is all configured.

Saturday, April 29, 2006

The state of TV out on ATI cards in Linux...

... is just sad. The GATOS stuff doesn't really look that maintained, TVout is only supported in the CVS version, the proprietary ATI drivers only support Radeon 8500 and up (tough luck if you happen to have a Radeon 7500 with RV200), xorg7.0 is supposed to support TVout using the GATOS code, but doesn't really exist yet.
*sigh*
I caved and picked up a Nvidia FX5200 card with TV out.

pvr500 with ivtv

Followed the generic distribution howto for my 2.6.15 kernel. Installed ivtv 0.4.4, copied firmware to /usr/lib/hotplug/firmware, kick out the old modules, /sbin/modprobe ivtv and get in dmesg:


ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.4.4 (tagged release) loading
ivtv: Linux version: 2.6.15-1-k7 K7 gcc-4.0
ivtv: In case of problems please include the debug info between
ivtv: the START INIT IVTV and END INIT IVTV lines, along with
ivtv: any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected WinTV PVR 150 card (cx23416 based)
ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom: Second (radio) tuner idx 101
tveeprom: ivtv version
tveeprom: Hauppauge: model = 23552, rev = D492, serial# = 9492586
tveeprom: tuner = Philips FQ1236A MK4 (idx = 92, type = 57)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio processor = CX25843 (type = 25)
tveeprom: decoder processor = CX25843 (type = 1e)
ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
ivtv0: This is the first unit of a PVR500
tuner (ivtv): chip found at addr 0xc0 i2c-bus ivtv i2c driver #0
TEA5767 detected.
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=60]
tuner: type set to 62 (Philips TEA5767HN FM Radio) by autodetect
type set to 62 (Philips TEA5767HN FM Radio)
tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
cx25840 1-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
ivtv0: i2c attach to card #0 ok [client=cx25840, addr=44]
wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=wm8775, addr=1b]
tda9887 1-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #0)
ivtv0: i2c attach to card #0 ok [client=tda9887, addr=43]
ivtv0: Detected a TEA5767 radio tuner. Enabling radio support.
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02050032
ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
ivtv0: Create encoder radio stream
tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #0
cx25840 1-0044: 0x0000 is not a valid video input!
ivtv0: Initialized WinTV PVR 500 (unit #1), card #0
ivtv: ====================== NEXT CARD ======================
ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
ACPI: PCI Interrupt 0000:02:09.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
ivtv1: Unreasonably low latency timer, setting to 64 (was 32)
tveeprom: Second (radio) tuner idx 101
tveeprom: ivtv version
tveeprom: Hauppauge: model = 23552, rev = D492, serial# = 9492586
tveeprom: tuner = Philips FQ1236A MK4 (idx = 92, type = 57)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio processor = CX25843 (type = 25)
tveeprom: decoder processor = CX25843 (type = 1e)
ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
tuner (ivtv): chip found at addr 0xc2 i2c-bus ivtv i2c driver #1
ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
cx25840 2-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
cx25840 2-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #1)
ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
tda9887 2-0043: (ivtv) chip found @ 0x86 (ivtv i2c driver #1)
ivtv1: i2c attach to card #1 ok [client=tda9887, addr=43]
ivtv1: This is the second unit of a PVR500
ivtv1: Correcting tveeprom data: no radio present on second unit
ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
ivtv1: Encoder revision: 0x02050032
ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv1: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
ivtv1: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #1
cx25840 2-0044: 0x0000 is not a valid video input!
ivtv1: Initialized WinTV PVR 500 (unit #2), card #1
ivtv: ==================== END INIT IVTV ====================


Tune a channel and get an mpeg stream:

ivtvctl -c 2
cat /dev/video0 > test.mpg


Plays back in xine with no problem. Nice quality, too, but no de-interlace. We'll get to that, if needed.

MythTV recognizes the card no problem at all. Sweet! I programmed two shows in parallel, and they were recorded just fine. This is GREAT.

Friday, April 21, 2006

Joschka Fischer

I went to a talk by Joschka Fischer today. I was really curious about seeing the man that took the oath for German foreign minister in jeans and sneakers. As you can see these days he dresses a little bit more conservative. He had nice words for the audience, "you remind me more of university, than a successful tech company."

Either way, it was very interesting. He gave a quick introduction on his history in the German government, his positions on a variety of issues ranging from a nuclear Iran, the Iraq war, the rise of China and India, over global warming to renewable energies. He cautioned, "I'm not an expert on Internet technologies, but I am for foreign relations and issues affecting the environment." Then he opened it up for questions. A lot of issues were covered in detail, particularly the nuclear program in Iran, Fischer's fear of an arms race in the Middle East and the impact on the region, if Iran were to acquire the bomb. Scary stuff. He disagreed several times on various subjects with the policies set in Washington, DC, and had very harsh words about the Iraq war, "bad idea, poorly planned, bad execution". He outright dismissed claims by the Iranian government that their nuclear program is for civilian use, "Why do they need a closed fuel cycle? Why highly enriched Uranium? The Iranian program looks very similar to the existing Indian and Pakistani programs." Airstrikes on iranian nuclear facilities "with very high likelyhood are not going to be sufficient to destroy the program". And then there is Israel, and the rethoric of the Iranian government. Fischer managed to explain these issues concisely in terms and ways that were easy to follow and even though I'm following the news from the region, it was nice to have all the issues presented together and how they interact.

On renewable energies he considered a program started by the SPD/Greens government an economic success, "Germany is a leader in the field of solar technologies now, as well as wind energy". He talked about how all humans have the same right to fulfill their dreams as everyone in the industrialized nations.

"The developed world can't tell countries like China or India to cut back when their people are trying to go after their dreams", and then looped it back to renewable energies and cooperative world politic as the only solution for long-term prosperity. "In Europe war was the driver of change. My father went to war, my grand-father did, and his father did. War is terrible, but it's also change. You burry the dead, attend to the wounded, and then rebuild. You know where to spend the money and concentrate your efforts on the build-up. However, with the weapons available in the 21st century and the way the world-economy is interconnected, war is no longer an appropriate way to deal with the problems. "Diplomacy and cooperation between countries is the only way."

Immigration and the expansion of the European Union came up as well, particularly admitting Turkey into the EU. Fisher felt compelled to explain to his american audience (which by rough observation consisted of about 2/3 non-Americans, half of them Germans) what such a move would mean, "imagine Mexico, the Central American countries, as well as Columbia, in talks with the US to join the union. Think about the uproar this would create, what people would say".
Fischer compared immigration policy in the US to the Europe. A fairly open policy as it exists in the US would never work in countries like Germany. He explained that with the difference in attitude towards the poor. "The poor in the US are basically ignored and forgotten. If European countries had such a substantial amount of poor people as the US, they would quickly organize into a group with extremist tendencies (left or right) that could not be ignored by the government". This reminds me of the riots in France a couple months ago. It is already happening there. Probably just a matter of time until it happens in Germany.

Overall, I'm very happy I had the chance to listen to Joschka Fischer and meet him in person. This was not as impressive as seeing Michail Gorbatshev last year (or shaking his hand). However, Fischer was much more intellectually stimulating.

Shortly after the talk, the building began to rumble and shake. I went outside and saw 3 Blackhawk helicopters fly by accompanying this rather big military transport helicopter. Oh yes, President Bush is in town today, Airforce One was parked at Moffet Field, Bush probably was on his way to an invited guests only event somewhere on the Peninsula to dispense his usual nonsense. The contrast couldn't have been stronger.

Thursday, April 20, 2006

Hauppauge PVR-500

The new capture card is on its way. The PVR-500 has dual-tuner support (so we can record both Lost and Bones at the same time). It has hardware MPEG2 encoders, and is supposed to be fully supported by MythTV. This will be nice... I hope.

apcupsd

Rebuild the OpenBSD kernel, exclude uhiddev, ums, wsmouse, wskbd, ukbd, uhid, include ugen. install kernel and reboot.

Follow the instructions in the manual at www.apcupsd.org. Very straightforward:


./configure --enable-usb --with-upstype=usb --with-upscable=usb --prefix=/usr/local --with-cgi-bin=/var/www/cgi-bin/ --enable-cgi --with-css-dir=/var/www/htdocs/local/css --with-log-dir=/var/log/apcupsd
make
sudo make install


Don't turn on pthreads support. Bad idea on OpenBSD.

I went through the testing steps just up to the simulated shutdown. Nice:


Thu Apr 20 23:08:57 PDT 2006 apcupsd 3.12.2 (18 January 2006) openbsd startup succeeded
Thu Apr 20 23:14:16 PDT 2006 Communications with UPS lost.
Thu Apr 20 23:14:28 PDT 2006 Communications with UPS restored.
Thu Apr 20 23:16:29 PDT 2006 Power failure.
Thu Apr 20 23:16:35 PDT 2006 Running on UPS batteries.
Thu Apr 20 23:16:53 PDT 2006 Mains returned. No longer on UPS batteries.
Thu Apr 20 23:16:53 PDT 2006 Power is back. UPS running on mains.


Works like a charm so far.

Monday, April 17, 2006

One time too often...

... did Patricia blow the fuse on the circuit that powers the computers downstairs with the vacuum.

I got a APC BackUPS 900 RS at Central. It's supported by NUT using the hidups driver. And as I read more documentation I realize the hidups driver is for Linux only, OpenBSD ports only have NUT 2.0.0 and the generic newhidups is not built by default. Yay, let's build NUT 2.0.3 ourselves using the settings from the OpenBSD package.


./configure --sysconfdir=/etc/nut --datadir=/usr/local/share/ups --with-statepath=/var/db/nut --with-user=_ups --with-ssl --enable-strip --with-cgi --with-cgipath=/var/www/cgi-bin/nut '--with-gd-libs=-L/usr/local/lib -lgd -lpng -lz -ljpeg -lttf -lm' --with-gd-includes=-I/usr/local/include --prefix=/usr/local


Hmmm, that works, but doesn't build the newhidups driver. Appending --drivers=newhidups yields


gcc -I../include -O -Wall -Wsign-compare -s -c newhidups.c
In file included from newhidups.c:25:
libhid.h:35:17: usb.h: No such file or directory


Uh oh, trouble ahead. Revisions since 2.0.0 mostly deal with newhidups. Is this not working on OpenBSD? Great.

apcupsd to the rescue: This page explicitly mentions the BackUPS RS series. This requires a kernel rebuild and I will loose my USB keyboard. Sub-optimal, but I can live with that. Ok. It's late enough to go to bed now. I try this some other evening.

Wednesday, April 12, 2006

capture card

I have a KWorld/V-Stream TV883DVR-Pro which I picked up at Fry's last year. So far used it only for straight video in from the camera. For MythTV I need the tuner working.

Installed Debian, switched to testing, got kernel 2.6.15 and the v4l-dvb snapshot from 01162006.
Added a new card definition based on my experiments from last year and a little bit wiggle here and there:


[CX88_BOARD_VSTREAM_883_DVRPRO_TV] = {
.name = "V-Stream 883DVR Pro TV",
.tuner_type = 39,
.radio_type = UNSET,
.tda9887_conf = TDA9887_PRESENT,
.tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET,
.blackbird = 1,
.input = {{
.type = CX88_VMUX_TELEVISION,
.vmux = 0,
.gpio0 = 0x000004ff,
},{
.type = CX88_VMUX_COMPOSITE1,
.vmux = 1,
.gpio0 = 0x000007fa,
},{
.type = CX88_VMUX_SVIDEO,
.vmux = 2,
.gpio0 = 0x000007fa,
},{
.type = CX88_VMUX_CABLE,
.vmux = 3,
.gpio0 = 0x000007f8,
}},
},


I'm not sure if this is really a blackbird card, but it sure would be nice. The colors in tvtime are not 100% right yet, but it's much better than my experiments with the video4linux snapshot last year.

The card is working great with tvtime. No sound, though. However, in MythTV I can't get video buffers filled. whatever that means: "NVP: Timed out waiting for free video buffers." *sigh* It's getting late...

Update:
Looks like my card doesn't have a hardware MPEG2 encoder. Too bad.

Monday, April 10, 2006

MythTV?

Let's get this MythTV thing set up on grumpy and see how far I'm getting. I'm hoping I can get the MPEG2 encoder in my CX88 card up and running.

Some links:
Linux TV CX88 Wiki
mythtv.org

Add the following to /etc/apt/sources.list:


deb-src ftp://ftp.nerim.net/debian-marillat/ etch main
deb ftp://ftp.nerim.net/debian-marillat/ etch main


Following simple instructions...


apt-get install mythtv

Thursday, April 06, 2006

The Replay is dead!

Our ReplayTV 5080 is stuck at the "Please wait..." screen. Internet research indicates this means the OS image can't be read from the hard drive. Great. There are still 3 episodes of Prision Break on that hard drive that we need to watch...

l9ter's ReplayTV Upgrade Site was very helpful in finding a new software image. RTVPatch is a program to copy the image to a new hard drive. Just running RTVPatch on my Debian 3.1 system doesn't list any hard drives.

Update:
It's not the drive. I re-imaged to another drive after booting from the live CD from the rtvpatch site. Put that back into the ReplayTV, no dice. I noticed a LOT of dust in the cooling vents of the ReplayTV, so looks like we fried some part of the motherboard. Great.

On the upside, I was playing with MythTV over the weekend. My CX88 based capture card was at least partially recognized. I used it for capturing video via line-in from our camera for quite some time, but never bothered setting up the tuner. I'm going to put Debian 3.1 stable with the latest kernel in this box and see if the card gets recognized better. According to the cvs log there were lots of CX88 related V4L fixes in the last year. Also have to take a close look at my card, might be lucky and have a blackbird design in there. I seem to remember that this card is supposed to be able to do MPEG2 capture.

... and it would be kinda cool to play with MythTV more.

Update:
The drive is at least partially bad, when I tried to get the recorded episodes off the video partition, the whole system hung eventually.

Wednesday, April 05, 2006

Sunday, March 19, 2006

The "new" AT&T - but who do I call?

I loved SpeakEasy at our old place, great support, fast connection, no issues. When we moved into this place the only affordable "broadband" option available was IDSL (144/144) via Covad's Business unit. San Jose's cable network was still owned by AT&T broadband at the time and not comcastic. Not even PacBell/SBC offered DSL in this southern end of San Jose. So we ordered IDSL and got it installed, since going back to modem was just too painful. The installation basically put ISDN on the second phone line and combined the 3 IDSN channels into a single 144kBit pipe. Not great, but bearable.

A year later we got a call from SpeakEasy offering free upgrade to 1.5/768 ADSL using a "remote terminal" SBC had installed in our neighborhood. Not only was this faster, but even cheaper. I didn't have to do the PPPoE nonsense, could continue to use my two static IPs and run servers from home. That connection rides on the regular SBC phone line like most other ADSL lines, but uses SpeakEasy's backhaul from the central office. So far, so good.

Fast forward to a few weeks ago.

DSL is down. Phone is dead. Patricia calls me, I tell her to find the customer service number on the last phone bill, report the problem and have someone come out. She did, a technician showed up the next day, tested the line, and eventually found the culprit: One of the connectors had slipped off. Funny how that happened only a few hours after Patricia saw someone from SBC working on the phone closet in the neighborhood.

Fast forward again. SBC is now the "new" AT&T.

DSL is down. Phone is dead. I can't listen to my favorite Internet radio station. I pull out the last phone bill and look for customer service. Hmmm. Nothing on the front. Only, very prominently, www.att.com.
Lots of fine print on the back. Phone numbers of the PUC, the FCC, complaints addresses, but no phone number at AT&T to call in case of a problem. This is the phone company!

Finally, I go back to an older SBC bill, look on the back and indeed they have a customer service number in the fine print: 1-800-310-2355 (i.e. 1-800-PAC-BELL).
Call em up on my cell phone. "We're sorry, our offices are now closed". At least they let me connect to their 24 hour repair service. I get the ticket in. The whole process with their automated system takes "only" 15 minutes. "The next available time slot is Tuesday, March 21st" . Arrrgh. That's two days from now! They expect me to be without phone service for two days? I'm angry and annoyed.

Magically, everything starts working again just fine early in the afternoon. I'm guessing someone came out and slipped the connector back on...

Saturday, March 11, 2006

Wow! Dust and temperature...

chef was running in its new location behind the CD shelf since end of December. Yesterday evening I took it out to look at the fan configuration. Boy, that box was DUSTY!
Removed dust coating from hard drives, and cleaned the fins of the CPU heatsink. The impact is pretty impressive:

Chef disks temperature

Chef case temperature

Chef fan speeds


Note, how the CPU fan speeds up after the cleaning, as well as how the temperature of the hard drives drops as there is no more dust to insulate them from the cooling wind of the fan mounted in front of them.

Sunday, March 05, 2006

GMX and SPF

So, I finally ran into my first rejected mail due to SPF:


mail:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B79A65361 1886 Sat Mar 4 16:20:14 bbeck@lostentry.org
(host mx0.gmx.net[213.165.64.100] said: 550-5.7.1 {mx020} The recipient does not
accept mails from 'lostentry.org' over foreign mailservers.
550-5.7.1 According to the domain's SPF record your host '216.27.180.188' is not
a designated sender. 550 5.7.1 ( http://www.gmx.net/serverrules ) (in reply to RCPT TO command))
Dino-@ist-einmalig.de


lostentry.org is still hosted on SpeakEasy's DNS servers (I didn't get around yet to change that to ns.goodcoffee.net and run secondary on ns1/2.rollernet.us).
SpeakEasy doesn't expose SPF records to their DNS customers. According to check-auth@verifier.port25.com the SPF record


v=spf1 ip4:216.254.0.0/24 ip4:69.17.110.0/24 ip4:69.17.116.0/24 ip4:69.17.117.0/24 mx ptr ~all


as published by SpeakEasy results in a "softfail" condition for SPF. In other words GMX refuses mail on softfail. Niiiice...

The remedy is easy:
Add relayhost=[mail.speakeasy.net] in /etc/postfix/main.cf, restart postfix, done.

Sunday, February 26, 2006

The new Winnie, the Pooh, ride in Disneyland - bah

[ok, maybe not so new anymore...]
... but what a shame. In place of a nice meadow where kids could greet and meet Winnie, the Pooh and his friends, Disney, in their infinite wisdom, installed a "Winnie the Pooh" ride.
Fine, I can live with adding more rides (in the end this *is* an amusement park), but why in the world did they have to make it this scary?
It starts out with a pretty scene in Pooh's house, then slips into a pitch-black dark tunnel with a rotating Pooh image running round the walls (apparently we are now transferred into his dream land), and ride through a ridiculous scene with funky patterns, lots of honey and ... oh, even more honey.

What bothers me is that this ride is most likely used by little children, and fans of Winnie, the Pooh (of all ages). Most of the ride is spent in this weird dream, that has barely anything to do with Pooh (aside from his image and lots of honey). It would have been so nice to build a ride that celebrates virtues that regularly come up in the books and movies, like friendship or adventure.

This one, though, is rather disappointingly flat.

The only positive thing was the very short wait time... (5 mins, compared to 65 minutes at Splash Mountain on the other side of the way).

Solaris 10, dhcp and hostname

Solaris 10 relies on dhcpd to pass it a valid hostname. If that doesn't happen the hostname is set to "unkown".

Fix: Set the host-name option in dhcpd.conf when using isc-dhcpd.

host dopey {
hardware ethernet 08:00:20:c1:95:e8;
fixed-address 192.168.200.14;
option host-name "dopey";
}


Alternatives are either hacking the init scripts (basically replace "unknown" with the hostname you want), or writing a custom init script.