This guide is how I manage to install and afterwards having a running MythTV Mediecenter on a Debian Linux. This is a really great tool to have in the house - and use all around to end up with a really smart system - that even children kan use without problems. So this guide describes the install of the machines ( or Core and frontends ) in a chapter by it selv. For a short explanation for what is what - look at the setup for more info. A good idea is to put all hardworking ressources into the CORE server - so the more power in the CORE the better result in the end.
CORE: The server that holds the MySQL, Storage, tunercards, etc etc - so put all your money in this machine!!!!
Frontends: Recieve the signal from the CORE server using 1000mbs Network - but also getting the last details - such as sound etc ( Stereo, 5.1, 7.1 etc) and also which kind of TV-signal you'll put into your TV. But not processing the hard part!
But the default install of ArchLinux and packages are allmost the same thing. But you need to start with downloading the latest image from Debian Mirrorlist here.
Download the image that fit your machines needs. Then you need to make a default install - as described here. I don't want to do that - carse then this guide will be way to long. but this will get you up and running with only the smallest default install, which is all you need. Afterwards the default install - You're ready to go. In my case the CORE server holds 4Harddrive with each 500GB - called sda, sdb, sdc, sdd. For making a lot of things easier, I have made a directory called /storage og 4 subdirectory's - all that are made with these commands:
|
$ mkdir -p /storage/music |
And mount the shares fron NAS in the most demanding directory's for myth - so added these lines in /etc/fstab:
|
################################################################ |
On Frontends you allso need the recorded Directory, which lies on the MBE.
Now your discs will be mountet and usefull allready from boot. Since I had decidet to make my system a "Under the stairs" solution, I need a user to make all this happend the rigth way. So making the user:
|
$ useradd myth (you'll be asked some information - fill out these info - Groups = wheel,optical,audioo,video) |
Now we have the different directory's that we're needing for sharing MythTV across a local network. Now we're ready to install the different packages - starting ouyt with updating the defaultDebian installation. So:
|
$ apt-get update |
Afterwards the standard installation are updated, we can now begin to install the packages for beeing able to run MythTV Backend on the server. What we need here is:
NFS - PORTMAP - MYSQL - OPENSSH - APACHE - PHP (evt DHCP - if not in router - or you want to use diskless frontends)
So we need to install those packages on the machine running Masterbackend ( in my case CORE)
|
$ apt-get install fglrx-driver libdrm-dev libdrm-radeon1 libdrm2 libkms1 git build-essential |
Now we're ready to share the directory where we store all our recorded programs:
|
#################################################### |
You'll also have to check that the file /etc/conf.d/nfs has this line - if not - write it in there:
|
STATD_OPTS="-no-notify" |
That's all needed for sharing our network for now. You'll also have to configure your Apache/php to work together. so the php5 module should be loaded. Set up the ntp(timeserver) for being sure that the recording are started at the rigth time,
After installing all these packages, we need to check the hardware out - to be sure that all hardware are detected correctly? Do this:
|
$ lspci |
As you can see here, all my hardware is detected - if not update the list over the different hardware - with this command:
|
$ update-pciids |
These are the daemons that are startet at boottime! So since I placed my CORE in the garage - ssh access is a wonderfull thing these days. And at the same time add this line to /etc/hosts.allow, which are the connections we're allowing on our system:
|
sshd: ALL |
Now we need to setup MySQL, so we have the rigth permission and access to the Database. So start up the MySQL database:
|
$ /etc/rc.d/mysqld start |
Start by setting the administrator password to the database:
|
mysqladmin -u root password |
Now edit the configuration file for MySQL placed in /etc/my.cnf - make sure these 2 lines are exactly like this:
|
# skip-networking (important with the # in front = ignored |
Now you're ready to reboot the machine for the first time - and access it through SSH! After rebooting the machine and logging into the shell - you could run a dmesg to see if your Tunercard is loaded properly:
|
Linux video capture interface: v2.00 |
When you got that one loaded - you're now ready to install all the packages for MythTV installation. For getting the lastest release of MythTV - you need to edit /etc/apt/sources.list - and add the multimedia archive for debian
|
deb http://www.debian-multimedia.org stable main non-free |
And the download the deb-key and install it - so you'll don't get any errors while updating your system:
|
$ dpkg -i debian-multimedia-keyring_2010.12.26_all.deb |
This upgrades the normal packages for all archives, so now we'll install the mythtv-backend - so we'll get all the required packages for mythjtv
|
$ apt-get install mythtv-backend |
This will install mythtv latest stable release, but since I'm running the latest gitversion, you can see the scripts etc further down! But using the default mythtv-backend package from multimedia, gives us all the depencies for running stable version, allthough you'll need many more packages for running latest git-version.
Afterwards you're ready to setup MythTV!
----------------------------------------------------------------------------------------------------------
If you want the newest of the newest, you can use MythTV-git version, but this gives some extra packages etc to install
Since you have to rebuild the package each time there's a new version in mythtv git, but here's how I did it.
| $ git clone git://github.com/MythTV/mythtv.git $ git clone git://github.com/MythTV/mythweb.git |
This downloades the latest MythTV version, and now we're ready to use our script depending on which type of machine it is - different CPU's etc - but here's the default script :
|
# Go to dir # Build MythTV |
This will delete all old packages, afterwards update from TRUNK and install the packages automatickly. Easy nice and quit.