<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Feb 21, 2015 at 1:49 AM, Mike Perkins <span dir="ltr"><<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 21/02/15 04:56, david brooke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a detailed outline for mythtv and mysql prior to mythtv-setup for<br>
Gentoo using openrc. I would like for other users to review and make<br>
suggestions / corrections as needed.<br>
Thanks<br>
<br>
1. Install the MythTV<br>
<br>
# emerge -av mythtv<br>
<br>
2. Install MariaDB<br>
<br>
# emerge -av mariadb<br>
<br>
3. Enable and start MySQL<br>
<br>
# rc-update add mysql default && rc-service mysql start<br>
<br>
4. You'll also need to check that the "networking" feature of MySQL is<br>
turned on. Check that /etc/mysql/my.cnf does not contain skip-networking.<br>
If it does, either remove that line or comment it out. Also verify that<br>
bind-address is set to your IP address instead of 127.0.0.1. If you change<br>
either of these items, restart MySQL.<br>
<br>
5. Setup mysql and add a password:<br>
<br>
# mysql_secure_installation<br>
<br>
6. Create the database structure: (See example using root as user and 1234<br>
as password)<br>
<br>
# mysql -u root -p1234 /usr/share/mythtv/database/mc.<u></u>sql<br>
<br>
7. Update your database: (See example using root as user and 1234 as<br>
password)<br>
<br>
# mysql_upgrade -u root -p1234<br>
<br>
8. Add time zone tables: (See example using root as user and 1234 as<br>
password)<br>
<br>
$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p1234 mysql<br>
<br>
9. Allow remote frontends access: (See example using mythtv as user, mythtv<br>
as password and root as user, 1234 as password)<br>
<br>
# mysql -u root -p1234<br>
MariaDB [(none)]> GRANT ALL ON mythconverg.* TO 'mythtv'@'192.168.97.%'<br>
IDENTIFIED BY 'mythtv';<br>
***Query OK, 0 rows affected (0.00 sec)***output only!<br>
MariaDB [(none)]> FLUSH PRIVILEGES;<br>
***Query OK, 0 rows affected (0.00 sec)***output only!<br>
MariaDB [(none)]> exit<br>
***Bye***output only!<br>
<br>
10. Enable and start mythbackend<br>
<br>
# rc-update add mythbackend default && rc-service mythbackend start<br>
<br>
11. Setup mythbackend<br>
<br>
$ mythtv-setup<br>
<br>
12. Setup logging for mythfrontend and mythbackend.<br>
<br>
Edit /etc/conf.d/mythfrontend<br>
Replace<br>
#MYTHFRONTEND_OPTS="--syslog local7"<br>
With<br>
MYTHFRONTEND_OPTS="--quiet --logpath /var/log/mythtv"<br>
<br>
Edit /etc/conf.d/mythbackend<br>
Replace<br>
#MYTHBACKEND_OPTS=""<br>
With<br>
MYTHBACKEND_OPTS="--quiet --logpath /var/log/mythtv"<br>
<br>
</blockquote></div></div>
You do NOT want to start mythbackend before running mythtv-setup!<br>
<br>
Since the backend process usually runs without a console you'd have no control over any database upgrading activity, nor will you have any opportunity to make sure that your tuner, channels, storage directories etc. are correct and present.<br>
<br>
Setup will nag if you already have a backend running.<br>
<br>
Between #9 and #10 is when you should be running mythtv-setup. Only after that should you then start the backend, followed by a mythfilldatabase run to update your channel schedules.<span class="HOEnZb"><font color="#888888"></font></span></blockquote><div><br></div><div>Also, on Gentoo mythtv will pull in mariadb as a dependency so you can skip step 2. And with a brand new installation you shouldn't need to upgrade your database, so you could probably skip step 7 (although it shouldn't hurt anything).<br><br></div><div>Karl<br></div></div></div></div>