How to install Mythtv in Mepis 6.5

From MEPIS Documentation Wiki

Jump to: navigation, search

This guide only covers installation of MythTv, not setting up hardware (not yet anyway)

Based on and copy from:

Resources

http://www.mythtv.org (the official home page) http://wilsonet.com/mythtv (probably the best Myth How-to around, geared towards Fedora) http://www.abarbaccia.com (Ubuntu specific guide, compatible with Mepis)

When you see a # it means root command in terminal, $ means a user command in therminal.

  1. Install Mepis. Create partitions (just a suggestion) (copied from http://wilsonet.com/mythtv/fcmyth.php#sw

Partition

Mount Point

Size

Format

/dev/hda1

/boot

50-100MB

ext3

/dev/hda2

swap

same as RAM (ex: 512MB)

swap

/dev/hda3

/

8-20 GB

ext3

/dev/hda5

/video

Everything else

jfs

  1. Create myth user (you can choose another if you like and make the changes in this guide accordingly)

Bring your system up to date:

apt-get upgrade 
  1. Modify repositories:
Kwrite /etc/apt/sources.list

Modify so it looks like the following (Warning! worked at the time of creation of this guide (1 July 2006), sources may have changes by the time you read this): See sources.list(5) for more information This file should be edited through synaptic

# MEPIS improvements, overrides and updates--the MEPIS magic
deb http://apt.mepis.org/6.0/ mepis main 

# Ubuntu foundation packages
deb http://archive.ubuntu.com/ubuntu/ breezy main restricted 

deb http://archive.ubuntu.com/ubuntu/ dapper main restricted 

# Security updates
deb http://security.ubuntu.com/ubuntu/ dapper-security main restricted 

# Package updates
deb http://archive.ubuntu.com/ubuntu/ dapper-updates main restricted 

# Backports of newer packages--unsupported and not thoroughly tested
# deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted 

# Free unsupported packages from Debian and beyond
deb http://archive.ubuntu.com/ubuntu/ dapper universe 

# Non-free unsupported packages from Debian and beyond
deb http://archive.ubuntu.com/ubuntu/ dapper multiverse 

# Backports of newer packages--unsupported and not thoroughly tested
# deb http://archive.ubuntu.com/ubuntu/ dapper-backports universe multiverse 

# Penguin Liberation Front--some packages not available elsewhere
# deb ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ dapper free non-free 
# deb-src ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ dapper free non-free

deb http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free
  1. Install tvtime (to test your tv card):
apt-get install tvtime

Setup tvcard

  1. Install mysql:
apt-get install mysql-common mysql-server mysql
  1. Configure mysql:
ln -s /etc/init.d/mysql /etc/rc5.d/S99mysql
ln -s /etc/init.d/mysql /etc/rc0.d/K01mysql
  1. reboot
mysql -u myth mysql
 
UPDATE user SET
WHERE user='myth'
FLUSH PRIVILEGES;

mysql> quit
mkdir /usr/share/doc/mythtv/database

Install Mythtv:

apt-get install mythtv

Set password for myth user

mysql -u myth -p mysql

mysql>  UPDATE user SET
	    password=PASSWORD('myth') WHERE user="myth";

mysql>  FLUSH PRIVILEGES;

mysql>  quit

We also want to be sure that the mythtv frontend starts when we log into our mythtv user. This is done by adding a line to our .xsession file and giving it the appropriate permissions.

echo "mythfrontend" | tee /home/mythtv/.xsession

chown mythtv.mythtv /home/mythtv/.xsession

And finally we need to get mythbackend to start at boot, by doing this:

echo " - mythtv -c \"mythbackend -d\"" | tee /etc/init.d/mythtv-backend
Personal tools