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

Newcs cardserver
For my HTPC setup I have to read a smart-card to get the keys to decrypt the digital cable (DVB-C) signals. I desided to run this card server on my little server (currently running Ubuntu 6.06LTS on my T23).

Phoenix/Smartmouse interface with a Viaccess smartcard and Seriel to usb interface

The hardware (a Phoenix/Smartmouse cardreader) is connected through a USB to Serial interface, so it comes up as /dev/ttyUSB0 on my computer.

Most of the set-up is described on this site: Cardsharing Forums - Setting up a NewCS cardserver

But it's a bit different on my Ubuntu machine, so I'll try to run through it here.

In my distribution of newcs-1.50 I didn't get the newcs.x86 file, so I use newcs.i686 in stead, and it works just fine :o)

I placed Newcs in a directory under my home dir, but you can put it where you like.

You'll probably have to make a link to, which is in /usr/lib/, we need to make a link to it from /lib/:

ln /usr/lib/ /lib/

Newcs expects the config file to be /etc/newcs.xml

You can copy the file that comes with Newcs that's called newcs.xml.phoenix to that location.

The important parts to change in the file is <node>/dev/ttyUSB0</node>

And the of course enable the servers you need. I currently use the newcamdserver and connects to it with the Acamd multidec plugin in GB-PVR. Somehow I can't get the Yankse multidec plugin to connect to the Newcs server, which is strange, 'cos it worked when I ran it on a windows box, though, it doesn't matter as long as Newcs + ACamd works :o)

Now we can run the server, just go to the directory where the newcs.i686 file (which you may have to made executable with chmod 777 newcs.i686) is (in my case it's in /home/USER/newcs-1.50/bin

While we're testing the server, just run it with ./newcs.i686 this will show you what the server is doing while it's running. Hopefully it'll show you that it has found the smart card, that it's adding the keys, and that it's starting the servers you've chosen. When the multidec plugin asks the server for keys you should see messages about that too.

When the server is running as it's suppose to, you'll probably want to redirect those messages to somewhere else (which could be /dev/null if you don't want them at all), I direct them to a log file so I have a chance of seeing if anything has failed, so I start Newcs with this command:

./newcs.i686 &> /home/USER/newcs-log.txt &

This will start the Newcs server and redirect any output that would otherwise have been displayed in the terminal to the file /home/USER/newcs-log.txt

2008-07-25 17:37:13