Saturday, December 24, 2011

Installing MythTV on CentOS 6

Now that OS environment is ready and all of the drivers have been installed and working properly, it's time to install MythTV. As a recap, here's everything that was done to get to this point:


First thing is to install MySQL and start it up
[root@htpc ~]# yum install mysql mysql-server
[root@htpc ~]# chkconfig mysqld on
[root@htpc ~]# service mysqld start
Next, secure MySQL. I basically answered all the questions with a 'Y'
[root@htpc ~]# /usr/bin/mysql_secure_installation
Enter current password for root (enter for none): <enter>
Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
Install QT 4.7. Needed to remove qt-x11 because it was conflicting with QT 4.7.
[root@htpc ~]# yum remove qt-x11
[root@htpc ~]# yum install qt47 qt47-x11 qt47-webkit qt47-mysql
Install MythTV
[root@htpc ~]# yum install mythtv-backend mythtv-frontend mythtv-docs mythtv-setup 
Create the MythTV database and user in MySQL.
[root@htpc ~]# mysql -u root -p < /usr/share/doc/mythtv-docs-0.24.1/database/mc.sql
For performance reasons, it is recommended to tweak some MySQL settings. Simply edit /etc/my.cnf and add the following values:
  key_buffer = 16M
  table_cache = 128
  sort_buffer_size = 2M
  myisam_sort_buffer_size = 8M
  query_cache_size = 16M 
And restart MySQL for the changes to take effect
[root@htpc ~]# service mysqld restart
Finally, I like to do one last system update and reboot to make sure that all the necessary services start at boot time.
[root@htpc ~]# yum update
[root@htpc ~]# reboot
And test to make sure that MySQL and lirc are working
[root@htpc ~]# mysql -p
[root@htpc ~]# irw
Next up, configuring the MythTV backend...


No comments:

Post a Comment