Label removable disks under Linux

If you are using removable disks such as USB pendrives, USB harddisks or Firewire disks and would like to have them mounted under /media/drivename (which does happen automatically with Ubuntu), you might want to label them so they always show up with the same name instead of disk, disk-1 and so fourth.

If you label a drive it will always mount using the same name, which facilitates using them with scripts and the like. I use an external Firewire disk for my system backup using BackupPC.

I use an XFS filesystem on that disk. To label it you use the following commands (requires the xfstools package):

# xfs_admin -l <DEVICE>

This will list you the current label. To label the disk write

# xfs_admin -L <LABEL> <DEVICE>

You can verify using your operation with

# xfs_admin -l <DEVICE>

To label disks containing ext2, ext3 or ext4 you use the e2label program and the mtools package for FAT16/32 volumes. more information can be found here.

Silenced Server Rack from Plywood

Back in the days when I was running my Sun Netra T1 Server pizza box I needed a place to put that baby. As it also was incredibly noisy I designed a server rack that would double as a simple sideboard.

closed plywood server rack

Closed server rack

The basic idea was simple since the Netra drew in cool air in the front and exhausted warm air in the back. As I did not want the noise to have a straight path trough the rack I settled for a s-shaped air-sound path. on the back cool air was drawn into the case to the front. A wooden divider board basically made this act like a duct. In the front (where the rack rails are mounted, the divider ended with the rails. sunnetrat-1185373850-343 sunnetrat-1185373848-342 sunnetrat-1185373853-345

The gap between the divider and the door allowed the server to draw from this cool air eshausting it at the back where the principle is mirrored – warm air at the top goes trough a duct to the front of the cabinet where rubber seals effectively seal the door.

A plexi glass on the rails filling up the unused space made sure that warm and cool air did not mix. sunnetrat-1185373876-350

I installed a second door on the side for easy servicing. A separate shelf was installed as well.

Digital Devices Cine CT V6 and MythTV – DVB-C with UPC Cablecom

Since my first MythTV system I relied on analog PAL TV. When digital TV was introduced by UPC Cablecom in Switzerland it was mandatory to use their cable box, all channels were encrypted. Now of course it would have been possible to use an IR blaster to control that unit and digitize the output of the set-top box.  It took a few years but now FTA digital (and partly HD) TV is available in Switzerland on UPC Cablecom’s network.

As before I wanted a dual tuner card that would allow me to record one show while watching another. After a bit of research I found only Digital Devices Cine CT V6 Card would fit the bill. It is a PCIe 1x card that is downright tiny, about the size of a business card. Compared to my analog Hauppauge PVR-500 this is a nice development. The Cine CT V6 is a hybrid dual tuner card that either takes a DVB-C or DVB-T signal on either of its tuners that records straight into h.264. or MPEG2. yay!

The card can be upgrade with a DuoFlex CT card that adds another two tuners – all running off the same PCIe slot. And if that is not enough that system can yet be upgraded with an Octopus bridge bringing up to 8 tuners to one PCIe port.

There is even the possibility to include CI modules. It almost seems like the card we’ve all been waiting for.

And best of all, Linux driver support is there too.

I am currently running kernel 3.2.0. Driver support should be built into kernels for versions greater 3.6. So I guess the whole process will be easier once 14.04 is released. For the time being on my Mythbuntu 12.04 installation was straight forward.

The installation consists of two parts:

  • driver
  • firmware
[Edit]

As of today this will only work up to Ubuntu 14.04

Instead of building your own drivers, you can also just add the following to /etc/apt/sources list for your Mythbuntu 12.04 system:

# https://launchpad.net/~yavdr/+archive/main
# linux-media-dkms for digital devices cine ct v6 (ddbridge)
deb http://ppa.launchpad.net/yavdr/main/ubuntu precise main
deb-src http://ppa.launchpad.net/yavdr/main/ubuntu precise main

afterwards it is a simple run of

# apt-get update
# apt-get install linux-media-dkms

and you should be good to go!

The package linux-media-dkms takes care of everything. After rebooting or manually adding the needed kernel modules, you should see the adapters as

/dev/dvb/adapter0/frontend0
/dev/dvb/adapter1/frontend0

frontend0 is used for DVB-C whereas frontend1 would be used for DVB-T.  Switching between the two is done via software.

Now you simply modify your entries in mythbackend-setup for the new cards and input connections and make a full channel scan in MythTV.

Toastbrot

Toastbrot

  • 685 g Weissmehl (oder Dinkelmehl hell)
  • 15 g Salz
  • 33 g Hefe frisch
  • 3.5 dl Milch
  • 14 g Zucker
  • 60 g Butter
  1. Backofen auf 230 °C vorheizen.
  2. Alle Zutaten intensiv zu einem geschmeidigen Teig kneten. Dann nur 10 Minuten ruhen lassen. Beim Toastbrot möchte man eine feine Porung, deshalb muss der Teig schön warm sein (26-28°C).
  3. Den Teig nach der 4 Pieces oder der 10 Pieces Methode aufarbeiten und in eine gefettete Kastenform geben. Dann je nach Teigtemparatur 20-30 Minuten gären lassen.
  4. Bei 230 °C in den Ofen einschieben und die Temperatur sofort auf 200°C reduzieren. 30 Minuten fallend backen.

Lasagne Verde

Lasagne Verde

Lasagne wie beim Italiener, alternativ auch vegetarisch

Tomatensugo

  • 100 g Rindshackfleisch
  • 800 g Pelati
  • 1 Stk. Zwiebeln
  • 1 Stk. Knoblauchzehen
  • 1 EL Tomatenpüree

Béchamel Sauce

  • 70 g Butter
  • 70 g Weissmehl
  • 5 dl Milch

Lasagne

  • 12 Stk. Lasagneblätter
  • 50 g Parmesan
  • 150 g Büffelmozzarella
  1. Tomatensugo: Bratpfanne erhitzen und Rindshack mit etwas Olivenöl scharf anbraten für ein schönes Röstaroma. Sobald das Fleisch beginnt eine schöne Kruste zu entwickeln beginnt Hitze reduzieren und die klein gehackte Zwiebel, Knoblauch und Tomatenpüree hinzugeben und kurz mit anschwitzen. Wenn die Zwiebel glasig wird mit 1-2dl gutem Rotwein ablöschen. Pelati hinzugeben mit Salz, Pfeffer, etwas Zucker frischem Oregano und Basilikum würzen. Die Sauce einköcheln lassen. In den letzten 10min die Pepperoniwürfel hinzugeben.
  2. Béchamelsauce: Butter in einem Topf zergehen lassen und anschliessend das Mehl hinzufügen. Mit dem Schwingbesen mischen bis Butter und Mehl eine homogene Masse ergeben. Anschliessend die Milch hinzugeben und unter ständigem rühren köcheln, bis die Sauce bindet. Anschliessend mit Salz, Muskat und weissem Pfeffer würzen.
  3. Lasagne bauen: Nudelwasser aufsetzen mit ausreichend Salz und einem Tropfen Olivenöl. Eine Feuerfeste Form mit Butter ausstreichen. Die ersten 3 Lasagneblätter für 2min ins Wasser geben und darauf achten, dass sie nicht zusammen kleben. Die Blätter anschliessend direkt in die Form legen und mit einer Schicht Béchamelsauce bedecken. Béchamelsauce mit den nächsten 3 vorgekochten Blättern bedecken und eine Schicht Tomatensugo darüber verteilen. Tomatensugo mit etwas Parmesan bestreuen. In gleicher Weise die nächsten Schichten aufbauen, so dass am Ende eine Schicht Tomatensugo zu oberst ist. Diese mit dem restlichen Parmesan, dem Büffelmozarella und etwas Sahne bedecken. Die Lasagne in der Ofenmitte bei ca. 220 Grad während ca. 15min backen. Je nach Form und Ofen kann die Zeit etwas abweichen.
  4. Nicht alle Lasagneblätter verhalten sich genau gleich, hier ist vielleicht etwas ausprobieren nötig. Ich benutze gerne die Lasagne Con Spinaci Blätter von Barilla. Die Lasagne lässt sich relativ gut fertig vorbereiten, und erst unmittelbar vor dem Essen in den Ofen schieben. So kann man auch am Apéro teilhaben als Koch 🙂

Das Rindshack kann auch einfach weg gelassen werden und schon ist die Lasagne vegetarisch.