<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 23, 2015 at 9:43 PM, James Miller <span dir="ltr"><<a href="mailto:gajs-f0el@dea.spamcon.org" target="_blank">gajs-f0el@dea.spamcon.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I finally got my Liva X booting under Gentoo. I'm not totally new to this distro, having administered a Gentoo system (a friend did the installation for me) for a short time a few years ago. But I'm still a relative greenhorn. I decided to try out Gentoo on this thing, for what it's worth, in the hopes that by tuning the installation I'd be able to get better performance and perhaps longer life out of the hardware.<br>
<br>
I'm doing basic OS installation and configuration at the moment. But I've gone ahead and started looking to see what's available in the way of help documentation--which tends to be pretty good in the case of Gentoo--for getting MythTV installed and running under this distro.<br>
<br>
What I've found in the way of documentation in an initial foray seems to be quite dated. Since there seem to be a few on this list who run MythTV under Gentoo, I thought I'd ask here what is considered a good guide for the relative newcomer wanting to install and run MythTV under this distro?<br>
<br>
Thanks.<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/<u></u>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<u></u>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div><br></div><div class="gmail_extra">I'm relatively new to Gentoo and I used the guide below to basically install Mythtv. I posted this guide initially a few weeks back and several members helped refine it. If you are installing just a frontend, then follow steps 1, 11 and 12. If installing a backend then follow the entire guide. I personally didn't install pulseaudio which happened automatically since I didn't declare pulseaudio in make.conf or package.use. I added media-tv/mythtv dvb to the package.use file to enable the use of my tuner cards (Dvico and pcHDTV).</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">2/27/15 rev</div><div class="gmail_extra">1. Install the MythTV</div><div class="gmail_extra"><br></div><div class="gmail_extra"># emerge -av mythtv</div><div class="gmail_extra"><br></div><div class="gmail_extra">2. Enable and start MySQL</div><div class="gmail_extra"><br></div><div class="gmail_extra"># emerge --config =dev-db/mariadb-10.0.16</div><div class="gmail_extra"># rc-update add mysql default && rc-service mysql start</div><div class="gmail_extra"><br></div><div class="gmail_extra">3. You'll also need to check that the "networking" feature of MySQL is turned on. Check that /etc/mysql/my.cnf does not contain skip-networking. If it does, either remove that line or comment it out. Also verify that bind-address is set to your IP address instead of 127.0.0.1. Alternatively /etc/conf.d/mysql can be used to address skip-networking and bind-address. Set MY_ARGS="--bind-address=masterbackendipaddress" and skip-networking default is off. If you change either of these items, restart MySQL.</div><div class="gmail_extra"><br></div><div class="gmail_extra"># rc-service mysql restart</div><div class="gmail_extra"><br></div><div class="gmail_extra">4. Setup mysql and add a password:</div><div class="gmail_extra"><br></div><div class="gmail_extra"># mysql_secure_installation</div><div class="gmail_extra"><br></div><div class="gmail_extra">5. Create the database structure: (See example using root as user and 1234 as password)</div><div class="gmail_extra"><br></div><div class="gmail_extra"># mysql -u root -p1234 </usr/share/mythtv/database/mc.sql</div><div class="gmail_extra"><br></div><div class="gmail_extra">6. Update your database (Optional with new install): (See example using root as user and 1234 as password)</div><div class="gmail_extra"><br></div><div class="gmail_extra"># mysql_upgrade -u root -p1234</div><div class="gmail_extra"><br></div><div class="gmail_extra">7. Add time zone tables: (See example using root as user and 1234 as password)</div><div class="gmail_extra"><br></div><div class="gmail_extra">$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p1234 mysql</div><div class="gmail_extra"><br></div><div class="gmail_extra">8. Allow remote frontends access: (See example using mythtv as user, mythtv as password and root as user, 1234 as password)</div><div class="gmail_extra"><br></div><div class="gmail_extra"># mysql -u root -p1234</div><div class="gmail_extra">MariaDB [(none)]> GRANT ALL ON mythconverg.* TO 'mythtv'@'192.168.97.%' IDENTIFIED BY 'mythtv';</div><div class="gmail_extra">***Query OK, 0 rows affected (0.00 sec)***output only!</div><div class="gmail_extra">MariaDB [(none)]> FLUSH PRIVILEGES;</div><div class="gmail_extra">***Query OK, 0 rows affected (0.00 sec)***output only!</div><div class="gmail_extra">MariaDB [(none)]> exit</div><div class="gmail_extra">***Bye***output only!</div><div class="gmail_extra"><br></div><div class="gmail_extra">9. Enable mythbackend</div><div class="gmail_extra"><br></div><div class="gmail_extra"># rc-update add mythbackend default</div><div class="gmail_extra"><br></div><div class="gmail_extra">10. Setup mythbackend</div><div class="gmail_extra"><br></div><div class="gmail_extra">$ mythtv-setup</div><div class="gmail_extra"><br></div><div class="gmail_extra">If restoring a database backup, complete the General section only then perform the database backup.</div><div class="gmail_extra">Example command:</div><div class="gmail_extra">./<a href="http://mythconverg_restore.pl">mythconverg_restore.pl</a> --drop_database --create_database --directory /home/username/Desktop --filename mythconverg-1317-20150227105348.sql.gz</div><div class="gmail_extra"><br></div><div class="gmail_extra">11. Setup logging for mythfrontend and mythbackend.</div><div class="gmail_extra"><br></div><div class="gmail_extra">A. Change permissions on /var/log/mythtv with chown for the user you are running mythtv.</div><div class="gmail_extra"><br></div><div class="gmail_extra">B. Edit /etc/conf.d/mythfrontend</div><div class="gmail_extra">Replace</div><div class="gmail_extra">#MYTHFRONTEND_OPTS="--syslog local7"</div><div class="gmail_extra">With</div><div class="gmail_extra">MYTHFRONTEND_OPTS="--quiet --logpath /var/log/mythtv"</div><div class="gmail_extra"><br></div><div class="gmail_extra">C. Edit /etc/conf.d/mythbackend</div><div class="gmail_extra">Replace</div><div class="gmail_extra">#MYTHBACKEND_OPTS=""</div><div class="gmail_extra">With</div><div class="gmail_extra">MYTHBACKEND_OPTS="--quiet --logpath /var/log/mythtv"</div><div class="gmail_extra">*****This isn't needed due it is setup in the /etc/init.d/mythbackend</div><div class="gmail_extra"><br></div><div class="gmail_extra">12. No icons/launchers, to start Mythtv frontend or backend are created.</div><div class="gmail_extra">Solution - KDE</div><div class="gmail_extra">Right click on KDE homerun icon and select edit applications.</div><div class="gmail_extra">Select Multimedia</div><div class="gmail_extra">Select new item</div><div class="gmail_extra">Enter Mythtv for item name</div><div class="gmail_extra">Enter mythfrontend for command</div><div class="gmail_extra">Select the empty icon window</div><div class="gmail_extra">Select other icons and then browse</div><div class="gmail_extra">Select mythfrontend photo</div><div class="gmail_extra">Select edit>sort>sort all by name</div><div class="gmail_extra">Select save and close</div></div></div>