This guide is how I manage to install and afterwards having a running MythTV Mediecenter on a Arch 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 ArchLinux - Direct link are here:
Latest i686 image
latest x86_64 image
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:
And mount the last 3 harddisc in the most demanding directory's for myth - so added these lines in /etc/fstab:
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:
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 default ArchLinux installation. So:
You sometimes needing to run this twice (Caurse of updating pacman - the package database manager in ArchLinux) 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 - HWD - 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)
UPDATED130609: After the latest updates from ArchLinux - several services are renamed. Portmap is now called rpcbind and NFS has changed in the Daemons name: nfslock becomes nfs-common and nfsd becomes nfs-server!
Now we're ready to setup our networksharing - since all my system are running on Linux machines I choosed NFSA instead of samba - which makes it quite easy to share the data - just edit the /etc/exports to look like this:
You'll also have to check that the file /etc/conf.d/nfs has this line - if not - write it in there:
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:
As you can see here, all my hardware is detected - if not update the list over the different hardware - with this command:
Which is a command that will update all hardware information, ans list the newest one. As you can see from the hardware list - I have a Happauge PVR500 Tunercard in my system, so I'm needed to install the IVTV which is the driver+firmware for most Hauppauge cards. So:
Edit the /etc/rc.conf and add ivtv to the list of MODULE=" xxxxxxxx ivtv " and at the same time add sshd and mysqld to the list of DAEMONS
**NOTE - DVB-S Install is quite different - Installguide here **
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:
Now we need to setup MySQL, so we have the rigth permission and access to the Database. So start up the MySQL database:
Start by setting the administrator password to the database:
Now edit the configuration file for MySQL placed in /etc/my.cnf - make sure these 2 lines are exactly like this:
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:
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/pacman.conf - and remove the # in front of the line:
And also uncomment the lines from the different mirrors where you want to get your updates from. The next part is downloading all packages:
Those packages are only for use at the Backend - since this is the only machine that should handle the WEBGUI for MythTV, allthough the frontends should have almost the same packages - but not mythweb. The last part you'll need to configure is your Xorg server - In my case I don't need the xorg running on the backend - but still for being able to setup MythTV - I'd to have a xorg server running - so to configure the x-server do:
It'll ask you if you want to safe the file as /etc/X11/xorg.conf - and you should agree on that! to test if it's working - type
and fix the errors that migth be here (normally none)
Afterwards you're ready to setup MythTV!
----------------------------------------------------------------------------------------------------------
MythTV - From SVN - trunk:
If you want the newest of the newest, you can use MythTV-SVN version, and on ArchLinux its pretty simple to setup. There are packages in AUR and the packages you should use are here: Packages.
Since the problem each time are the update of the different packages to get the same version on each setup(different frontends/backends etc) becaurse you SHALL run with same version number og MythTV and Mythplugins. So instead of manual building and installing the package, I made this script to handle this. Allthough it has 2requirement:
- All AUR packages are downloaded and extracted somewhere ( My senario = /root/MYTHTV )
- All requirements are fullfilled and installed on the machine!
This will delete all old packages, afterwards update from SVN and install the packages automatickly. Easy nice and quit.