I'm going to go through the steps of installing MythTV 0.24 on Fedora 14.
This page is a single dump for easy finding of all the individual pages you can find in the right navigation menu.
If you find this information useful, please click on the Google Ads. It has taken me a long time and effort to put all this information together. In return I'm only getting satisfaction plus the money that the Google Ads generate.
I decided to install the i686 KDE spin version of Fedora 14.
Unfortunately there are still third party applications like flash player or skype that seem to have better compatibility with x86 instead of X86_64.
I know the ultimate goal is to make this a MythTV media centre computer, but I like browsing the web, going to youtube or making skype calls through my lounge TV.
I downloaded the KDE spin version of Fedora 14 and put it in a USB stick with unetbootin. Please note that you have to use version 549 or above of unetbootin, otherwise it wont work.
After the system starts it offers the option to install to hard drive.
In Fedora 14 ssh is disabled by default. Most of the installations I do on this systems I do in the console using putty from my Windows notebook. It makes things easy as you can copy and paste most commands.
To enable ssh it log on in a console as root. To go to a console press (ctrl+alt+F2). In username select root and in password the password you wrote before.
#chkconfig sshd on
#service sshd start
I knowselinux improves security, but for a home media centre connected to the Internet through a router it is a bit too much, so I will disable it.
I'm also disabling the firewall.
vi /etc/sysconfig/selinux
... and set SELINUX to disabled:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
Now that the system is the way we want it we can restart to apply all these changes.
#reboot
To install the flash plugin is fedora is as simple as installing the repository and the doing the installation
#rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Then to install do:
#yum install flash-plugin
We need to add the Skype repository manually as there is no rpm. To do so, create the file /etc/yum.repos.d/skype.repo
vi /etc/yum.repos.d/skype.repo
Then, add these content into that file:
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
enabled=1
gpgcheck=0
Save it and then run this command:
yum install skype
If you want to intereact with the real world, there are a few things that will make this interaction nicer in Fedora, they are:
mkdir /video/support/software/msfonts
cd /video/support/software/msfonts
wget corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
yum -y install rpm-build cabextract ttmkfdir
rpmbuild -bb msttcorefonts-2.0-1.spec
rpm -ivh /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm --nodeps
mkdir /video/support/software/win32codecs
cd /video/support/software/win32codecs
wget www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
tar xfvj all-20071007.tar.bz2
mkdir /usr/lib/codecs/
cp all-20071007/* /usr/lib/codecs/
ln -s /usr/lib/codecs/ /usr/lib/win32
yum install wget
mkdir /video/support/software/libdvdcss2
cd /video/support/software/libdvdcss2
wget dl.atrpms.net/f14-i386/atrpms/stable/libdvdcss2-1.2.10-5.fc14.i686.rpm
rpm -ivh libdvdcss2-1.2.10-5.fc14.i686.rpm
From Fedora 12 nouveau interferes with the nvidia driver, to disable nouveau, first you'll have to blacklist it:
echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf
Open /boot/grub/grub.conf file and check that the kernel row have following parameters:
rdblacklist=nouveau nouveau.modeset=0
Reboot your computer.
This process involves the creation of a kernel module, meaning that everytime the kernel version changes (when doing a #yum update), you'll have to do it again.
To do this process I'm creating the directory /video/support/software/nvidia, then going into that directory and downloading the nvidia drivers with the wget command. Then I switch to mode 3, and perform the installation of the driver.
Once the module is built, switch back to run mode 5.
These are the commands:
mkdir /video/support/software/nvidia
cd /video/support/software/nvidia
wget us.download.nvidia.com/XFree86/Linux-x86/260.19.44/NVIDIA-Linux-x86-260.19.44.run
init 3
sh NVIDIA-Linux-x86-260.19.44.run
init 5
Once you are back in KDE, you can configure your graphics adapter by going to:
System->NVIDIA X Server Settings
If you are planning to use Mythweb, you'll need apache, php and mysql.
To install apache and php with some modules
yum install httpd php php-common php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml
Set apache to start automatically:
chkconfig httpd on
Now you can edit the apache configuration file and set the server name, to do so, open the apache configuration file:
vi /etc/httpd/conf/httpd.conf
Look for ServerName in that file. In case it is commented, uncomment it and set a name and a port, for example:
ServerName mythbox-master.omcentre.com.au:80
Now start the server:
service httpd start
To install MySQL
yum install mysql mysql-server
To start mysql and make it start automatically everytime the computer boots:
chkconfig mysqld on
service mysqld start
Now check that networking is enabled. Run:
netstat -tap
You should see a line like this:
tcp 0 0 *:mysql *:* LISTEN 2721/mysqld
Now, assign a password for the root user in MySQL, and replace the user root with the user mysql. I'm using the password mythtv.
mysqladmin -h localhost -u root password mythtv
mysql -uroot -pmythtv mysql
Once you are in the mysql console do the following:
mysql> UPDATE user SET user='mythtv' WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
If you want to have access and edit your mysql databases easily, I would recommend you install phpMyAdmin
To install it:
yum install phpMyAdmin
Then edit the configuration file:
If you are using user mysql and password mysql, these are the parameters
$cfg['Servers'][$i]['controluser'] = 'mythtv'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = 'mythtv'; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'mythtv'; // MySQL user
$cfg['Servers'][$i]['password'] = 'mythtv'; // MySQL password (only needed