HOWTO: Multicast Irish Freeview (Saorview)

If you’re in Ireland and you’ve been watching TV, you probably know about Saorview and the migration to Digital Terrestrial TV.

Being a geek, I decided that using a TV to view TV wasn’t really the way to do things.
So instead, I decided to find a way of viewing Saorview on my PC.

So the easy way, is to get a DVB-T receiver for a PC, and tune to the channel you want to view. I’m not going to show you how to do this, because the guys at mpeg4ireland already have.

I’m going to show you how to receive every Saorview channel at the same time.
Although I’m sure you’re not going to be able to watch them all at the same time…

Continue reading HOWTO: Multicast Irish Freeview (Saorview)

mini-guide: Basic OpenVPN Server

This post is especially for Rommel. He saw my last mini-guides on OpenVPN on RouterOS, and wanted to know how to set up an OpenVPN Server on Linux that operates the same as the OpenVPN Server in RouterOS.

So, this one will be short and simple, as there are a thousand different ways to do an OpenVPN Server on linux, but this way will make it work the same way its configured in my mini-guide.

Continue reading mini-guide: Basic OpenVPN Server

Monster VPN Project – Installing OpenVPN

The next part of this project, is to install OpenVPN. Again, in Debian, this is pretty simple. So make sure you’re logged in as root, and run the following:

  apt-get install openvpn

See, I said it was easy. Now there’s a little more of a complex part, where we setup the CA and utilities needed for generating Certificates for the Server and all the Clients.

Continue reading Monster VPN Project – Installing OpenVPN

Monster VPN Project – Installing MySQL

As with all projects, you have to start by laying the basic blocks to build the interesting parts on.

So this is where we will begin the Monster VPN Project

I’m assuming you’ve already got Debian installed. I’m not going into this, as its been documented all over the place, and isn’t that much of a problem. (And in all honesty, if you struggle with this, you might want to reconsider continueing this project) 

The best place to start on this project, is to install MySQL. Since its going to be the database that stores all the data for the VPN’s, its best to have this in place before you start with the rest of it.

Continue reading Monster VPN Project – Installing MySQL

Monster VPN Project

I’ve decided to try my hand at creating a Virtual Network service.

The idea is to have a simple web interface where I can add/remove/edit user accounts, Generate Certificates for endpoints and check users usage.

RADIUS is a fantastic AAA (Accounting Authentication And Authorization) protocol, which is used for almost everything ISP related (dial-up, dsl, wimax, wifi hotspots), so it seems only fitting that I use it for this application. It also means I can integrate other things into it, without serious modification (since its a standard). I may even start using it for building my own Hotspot controller for Mikrotik RouterOS based hotspots.

Continue reading Monster VPN Project

Nifty Bash Complete for SSH known_hosts

Just came across this today… Really useful, since 90% of my job requires SSHing off to remote hosts…

From drawohara:

Stick this in your ~/.bashrc

SSH_COMPLETE=( $(cat ~/.ssh/known_hosts | \
cut -f 1 -d ‘ ’ | \
sed -e s/,.*//g | \
uniq | \
egrep -v [0123456789]) )
complete -o default -W "${SSH_COMPLETE[*]}" ssh

This does a lookup for all the hosts in your ~/.ssh/known_hosts file, as a source for the autocompletion.

Getting the Rip DVD part of MythVideo to work

One of the nicest features of MythVideo, is being able to store your collection of DVD’s on your hardrive.
From there, its a simple task of selecting the Video from the Video Gallery, and hitting play.

You can fetch all the Movie’s details from IMDB, including poster art and movie ratings.
This makes it much more convenient, and more useful than having to fetch the DVD from your collection to watch it.

The only downside that I can see, is that you’ll start to run out of disk space very quickly, as each movie will take up between 4GB and 8GB.

I faced a few challenges in getting this working, and I’m going to try shed as much light on this as possible. Continue reading Getting the Rip DVD part of MythVideo to work

MythTV on NTL Analogue in Ireland

I’m about to submit my MythTV for its WAF rating, before being put into full use in the house.
So to make things nice and easy to use, and to also assist in finding all the favourite episodes for recording, I’ve put every NTL Analogue channel into the channel database, with mythfilldatabase working 100% fetching all the scheduling information.

So for everyone that has been trying to get this working, I’ll dump all the necessary configs here, so you can get yours going too. Continue reading MythTV on NTL Analogue in Ireland

How to automatically login to MythTV on boot

In my last 2 MythTV posts, I explained how to get mythbackend running on boot, and how to get mythfrontend started automatically when you start X.

Now I’m going to explain how to get X to startup and login on boot.
This essentially makes your MythTV setup completely operational from powerup, without user intervention.
Definate WAF in that…

This is how I did it on my Debian machine.

I’m running my MythTV as the user ‘mythtv’ on my machine.

First, you’ll need rungetty installed

apt-get install rungetty

Then open your inittab config in your favourite editor

vi /etc/inittab

Look for the line that starts all your getty’s. It looks something like this

1:2345:respawn:/sbin/getty 38400 tty1

You’ll have to change it to this

1:2345:respawn:/sbin/rungetty tty1 --autologin mythtv

That’ll make it automatically log in to the mythtv user on tty1

Now, you’ll want to automatically start X whenever the mythtv user logs in to tty1
Its nice to constrain it to run, when the user logs in on tty1 only. That way, you can change tty’s and login without having X trying to start up automatically.

Edit your .profile for your mythtv user

vi /home/mythtv/.profile

Put the following in it

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
while [ 1 == 1 ]
                sleep 10

That’ll start up X as soon as the mythtv user logs in, and if X dies, it’ll wait 10 seconds and then restart it.