{"id":28,"date":"2009-12-18T03:18:58","date_gmt":"2009-12-18T03:18:58","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=28"},"modified":"2017-02-05T11:33:21","modified_gmt":"2017-02-05T11:33:21","slug":"mythtv-installation","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=28","title":{"rendered":"MythTV Installation"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-309 size-full\" src=\"http:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2010\/12\/mythtv.png\" width=\"493\" height=\"163\" srcset=\"https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2010\/12\/mythtv.png 493w, https:\/\/cdblog.cdstealer.com\/wp-content\/uploads\/2010\/12\/mythtv-300x99.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/p>\n<p>I have create this guide based on my experience of Installing and configuring MythTV. \u00a0If you're looking for a PVR project, then MythTV is perfect.<br \/>\nThis is for a dedicated box so no desktop environment will be installed.<\/p>\n<p>I have compiled this on the assumption that you are competent in Linux so it won't be much use as a beginners guide, though I may turn it into one if I get time.<br \/>\nObviously this guide is specific to my hardware so please make changes where needed for your setup.<\/p>\n<p>The Hardware:<br \/>\nSamsung Dual Layer SATA DVD-RW<br \/>\nWestern Digital 1Tb HDD [System &amp; Storage]<br \/>\nAsus P7H55M PRO Mainboard<br \/>\n4Gb Corsair XMS3 1333Mhz DDR3<br \/>\nIntel 3.2Ghz i5 650 CPU<br \/>\nMCE Remote v2 (Phillips<br \/>\nLeadtek DTV1000 DVB-T PCI x2<\/p>\n<hr \/>\n<p>Once you have you base Linux system up and running it's time to start installing applications.\u00a0 The version currently being used at the time of writing this is:<\/p>\n<p>media-tv\/mythtv-0.22_p22860<br \/>\nmedia-plugins\/mythgallery-0.22_p22763<br \/>\nmedia-plugins\/mythgame-0.22_p22763<br \/>\nmedia-plugins\/mythvideo-0.22_p22864-r1<br \/>\nmedia-plugins\/mytharchive-0.22_p22763<br \/>\nx11-themes\/mythtv-themes-0.22_p22869<br \/>\nmedia-plugins\/mythmusic-0.22_p22763<br \/>\nx11-themes\/mythtv-themes-extra-0.22_p22492<br \/>\nwww-apps\/mythweb-0.22_p22763-r1<\/p>\n<hr \/>\n<p><span style=\"color: #000000;\">So we now have a base Gentoo install and Mythtv. \u00a0If you have used the \"autostart\" flag then follow the steps below:<\/span><\/p>\n<p><span style=\"color: #000000;\">(you may need to use ALT+F1 to get a terminal) Assuming you have installed mysql and have not yet setup the root account for mysql.. execute:<\/span><\/p>\n<ul>\n<li><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">mysqladmin -uroot -p<\/span><\/span><\/li>\n<\/ul>\n<ul>\n<li>Edit <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/etc\/inittab<\/span><\/span> and add\u00a0<span style=\"color: #000000;\"><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">c8:2345:respawn:\/sbin\/mingetty --autologin mythtv tty8<\/span><\/span> underneath the <span style=\"font-family: monospace;\">#TERMINALS<\/span> section.<\/span><\/li>\n<\/ul>\n<ul>\n<li><span style=\"color: #000000;\">Edit <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/usr\/share\/mythtv\/database\/mc.sql<\/span><\/span> and change the username and password entries.<\/span><\/li>\n<\/ul>\n<ul>\n<li><span style=\"color: #000000;\">Run <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">mysql -uroot -p &lt; <\/span><span style=\"font-family: monospace;\">\/usr\/share\/mythtv\/database\/mc.sql<\/span><\/span> to create the Mythtv database with the details used in previous step.<\/span><\/li>\n<\/ul>\n<ul>\n<li><span style=\"color: #000000;\">Log into mysql as root and run <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">GRANT ALL PRIVILEGES ON `mythconverg`.* TO 'mythtv'@'localhost';<\/span><\/span> this just gives permissions to the mythtv user for the Mythtv database.<\/span><\/li>\n<\/ul>\n<ul>\n<li><span style=\"color: #000000;\"><span style=\"background-color: transparent;\">Run <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">rc-update add mythbackend default<\/span><\/span> to have Mythtv's brains startup on reboot.<\/span><\/span><\/li>\n<\/ul>\n<ul>\n<li>Edit \/home\/mythtv\/.xinitrc<\/li>\n<\/ul>\n<p><span style=\"color: #ff0000;\"># .xinitrc<br \/>\n#[ -x \/usr\/bin\/nvidia-settings ] &amp;&amp; \/usr\/bin\/nvidia-settings -l<br \/>\n\/usr\/bin\/killall -9 mythfrontend evilwm<br \/>\nsleep 1<br \/>\n\/usr\/bin\/xset s noblank<br \/>\n\/usr\/bin\/xset s off<br \/>\n\/usr\/bin\/xset -dpms<br \/>\n\/uar\/bin\/xsetroot -cursor_name dot<br \/>\n\/usr\/bin\/evilwm &amp;<br \/>\nexec \/usr\/bin\/mythfrontend -l \/var\/log\/mythtv\/mythfrontend.log -v important,general<br \/>\n#exec \/usr\/bin\/mythtv-setup<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">*TIP* If you need to enter mythtv-setup for whatever reason, comment out <\/span><\/span><span style=\"color: #ff0000;\">exec \/usr\/bin\/mythfrontend -l \/var\/log\/mythtv\/mythfrontend.log -v important,general<span style=\"color: #000000;\"> and add <\/span><\/span><span style=\"color: #ff0000;\">exec \/usr\/bin\/mythtv-setup<span style=\"color: #000000;\"> to\u00a0 your .xinitrc.\u00a0 Then exit the frontend.\u00a0 Don't forget to change back when finished.<br \/>\n<\/span><\/span><\/p>\n<p>You can reboot now<\/p>\n<hr \/>\n<p style=\"text-align: center;\">If things are working as they should, you will now have a language selection screen.<br \/>\nHit ALT+F1 and login as root and stop the mythbackend daemon. <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/etc\/init.d\/mythbackend stop<\/span><\/span><br \/>\nSU to mythtv. <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">su - mythtv<\/span><\/span> Execute <span style=\"color: #ffff00;\"><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">DISPLAY=\":0.0\" mythtv-setup<\/span><\/span><span style=\"color: #ffffff;\"><span style=\"color: #000000;\"> and hit ALT-F7.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-9.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-9.png\" alt=\"\" \/><\/a><\/span><br \/>\n<span style=\"color: #000000;\">Now to tell Mythtv where it's brains are. \u00a0Most of the screens can be left as the default settings. <\/span><\/span><\/span><span style=\"color: #000000;\">If you are only have 1 box leave the IP's as 127.0.0.1, if you are planning remote frontends then change to the IP of the backend (ie this box).<\/span><br \/>\n<span style=\"color: #ffff00;\"><span style=\"color: #ffffff;\"><a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot.png\" alt=\"\" \/><\/a><\/span><\/span><\/p>\n<p style=\"text-align: center;\">Change this screen to your TV settings.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-1.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-1.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Click Next<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-2.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-2.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Click Next<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-3.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-3.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Click Next<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-4.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-4.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Click Next<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-5.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-5.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Change the CPU to HIGH and uncheck <span style=\"color: #ffff00;\"><span style=\"font-family: monospace;\"><span style=\"color: #ff0000;\">Allow Advert Detection Jobs.<\/span><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-6.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-6.png\" alt=\"\" \/><\/a><\/span><\/span><\/p>\n<p style=\"text-align: center;\">Click Next<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-7.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-7.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Click Finish<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-8.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-8.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><big><span style=\"text-decoration: underline;\"><span style=\"font-weight: bold;\">Capture Cards<\/span><\/span><\/big><\/span><\/p>\n<p style=\"text-align: center;\">Highlight (new capture card) and hit enter.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-10.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-10.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Change the card type for your tuner.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-11.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-11.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Select Recording options.<br \/>\nIf you only have one card, leave the max recordings as 1.<br \/>\nTick Wait for SEQ start header<br \/>\nTick Open DVB card on demand<br \/>\nTick Use DVB card for active EIT scan<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-12.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-12.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><big><span style=\"text-decoration: underline;\"><span style=\"font-weight: bold;\">Video Sources<\/span><\/span><\/big><\/span><\/p>\n<p style=\"text-align: center;\">Highlight (new video source) and press enter<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-15.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-15.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Enter a name in the Video source name box<br \/>\nChange the Listings Grabber to EIT<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-16.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-16.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">Input Connections<\/span><\/span><\/big><\/span><\/p>\n<p style=\"text-align: center;\">Here you should see the card(s) you have just setup in the previous step.<br \/>\nSelect your card and press enter.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-18.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-18.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Change the Video Source (there should only be the one)<br \/>\nUse Quick Tuning should be fine as the default\u00a0Live TV Only<br \/>\nClick Scan for Channels (you may need to change the country)<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-19.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-19.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Change the Input group 1 to DVB0 if setting up the first card.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-20.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-20.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">Channel Editor (optional)<\/span><\/span><\/big> <\/span><\/p>\n<p style=\"text-align: center;\">Click Icon Download<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-22.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-22.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><span style=\"color: #000000;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">Storage Directories<\/span><\/span><\/big><\/span><\/p>\n<p style=\"text-align: center;\">Highlight default and press enter<br \/>\nHighlight Add New Directory and press enter<br \/>\nEnter the full path to where you want TV streams to be saved.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-25.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-25.png\" alt=\"\" \/><\/a><br \/>\nExit mythtv-setup by pressing ESC (you may see the language screen again.. do not select anything!<br \/>\nHit ALT+F1 and reboot.. you should now boot straight into Mythtv.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-26.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-26.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">Mythvideo<\/span><\/span><\/big><\/p>\n<p style=\"text-align: center;\">Highlight Setup and press enter.<br \/>\nHighlight Video Settings and press enter.<br \/>\nHighlight General Settings and press enter.<br \/>\nEnter the full path to where you want mythtv to find other videos etc that mythtv did not record.<br \/>\nDVD's ripped by Mythtv will be put here.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-88.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-88.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-89.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-89.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-90.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-90.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-91.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-91.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-92.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-92.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-93.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-93.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-94.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-94.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">PLAYER SETTINGS:<br \/>\nThe defaults should be ok.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-96.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-96.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">FILE TYPES:<br \/>\nHere you can add files types of videos that are not enabled by default.<br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-98.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-98.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\">RIP SETTINGS:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-100.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-100.png\" alt=\"\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-101.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-101.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><big><span style=\"font-weight: bold; text-decoration: underline;\">MythGallery<\/span><\/big><\/p>\n<p style=\"text-align: center;\"><big><\/big> <a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-102.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-102.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-103.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-103.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-104.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-104.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">MythGame<\/span><\/span><\/big><\/p>\n<p style=\"text-align: center;\"><big> <\/big> <a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-105.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-105.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-106.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-106.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-107.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-107.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-108.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-108.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-109.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-109.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-110.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-110.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px; text-align: center;\" \/>\n<p style=\"text-align: center;\"><big><span style=\"font-weight: bold;\"><span style=\"text-decoration: underline;\">MythArchive<\/span><\/span><\/big><\/p>\n<p style=\"text-align: center;\"><big> <\/big> <a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-111.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-111.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-112.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-112.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-113.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-113.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-114.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-114.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-115.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-115.png\" alt=\"\" \/><\/a><br \/>\n<a href=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/Screenshot-116.png\" target=\"_blank\"><img decoding=\"async\" style=\"border: 0px solid; width: 150px; height: 94px;\" src=\"http:\/\/cdstealer.com\/images\/Myth_Guide\/thumb_Screenshot-116.png\" alt=\"\" \/><\/a><\/p>\n<hr style=\"width: 100%; height: 2px;\" \/>\n<p style=\"text-align: center;\"><big><span style=\"font-weight: bold; text-decoration: underline;\">MythWeb<\/span><\/big><\/p>\n<p style=\"text-align: left;\">You need apache2 and php5 installed and setup for mythweb to function. \u00a0<a href=\"http:\/\/www.gentoo-wiki.info\/Apache2_Install\" target=\"_blank\">Apache instructions<\/a><\/p>\n<p style=\"text-align: left;\"><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">cp \/usr\/share\/webapps\/mythweb\/&lt;version&gt;\/htdocs\/mythweb.conf.apache \/etc\/apache2\/modules.d\/mythweb.conf<\/span><\/span><\/p>\n<p style=\"text-align: left;\">edit <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/etc\/apache2\/modules.d\/mythweb.conf<\/span><\/span><span style=\"color: #ffffff;\"> <span style=\"color: #000000;\">and change the directory path to eg <\/span><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/var\/www\/localhost\/htdocs\/mythweb<\/span><\/span><\/span><\/p>\n<p style=\"text-align: left;\">Change the <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">setenv<\/span><\/span> entries to reflect the mythtv mysql account. run<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">htpasswd2 -c \/path\/to\/your\/.htpasswd &lt;username&gt;<\/span><\/span><span style=\"color: #ffff00;\"><span style=\"color: #ffffff;\"> <span style=\"color: #000000;\">This will prompt for a username and password.<\/span><\/span><\/span><\/p>\n<p style=\"text-align: left;\">^ this should be outside the root of mythweb. The <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">-c<\/span><\/span> option creates a new file.\u00a0If you are adding a second user or more, omit the -c to apend the file.<\/p>\n<p style=\"text-align: left;\">Restart apache <span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">\/etc\/init.d\/apache2 restart<\/span><\/span><\/p>\n<p style=\"text-align: left;\">Advanced: \u00a0Setup SSL Add the following lines to .htaccess in the root of mythweb to encrypt user details.<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #ff0000;\"><span style=\"font-family: monospace;\">SSLOptions +StrictRequire<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> SSLRequireSSL<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> SSLRequire %{HTTP_HOST} eq \"&lt;domain&gt;\"<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> ErrorDocument 403 https:\/\/domain\/path\/to\/403.html<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> AuthType Basic<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> AuthUserFile \/path\/to\/your\/.htpasswd<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> AuthName \"Please enter your username and password.\"<\/span><br style=\"font-family: monospace; color: #ffff00;\" \/><span style=\"font-family: monospace;\"> require valid-user<\/span><\/span><\/p>\n<p style=\"text-align: left;\">You will also need to create SSL keys and tell apache about them.\u00a0 You will be forced to provide a password.\u00a0 This will cause apache not to start if not attended.<br \/>\n<span style=\"color: #ff0000;\"><strong>openssl genrsa -des3 -out server.key 1024<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">To remove the password:<br \/>\n<strong><span style=\"color: #ff0000;\">cp server.key server.key.org<br \/>\nopenssl rsa -in server.key.org -out server.key<\/span><\/strong><\/p>\n<p style=\"text-align: left;\">To create the certificate request:<br \/>\n<span style=\"color: #ff0000;\"><strong>openssl req -new -key server.key -out server.csr<\/strong> <\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: #ff0000;\"><strong>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">Now change the perms so only root can read them.<\/p>\n<p style=\"text-align: left;\"><span style=\"color: #ff0000;\"><strong>chmod 400 server*<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">Copy the generated key and crt files to somewhere that apache can read eg <span style=\"font-family: monospace;\">\/etc\/apache2\/ssl\/<\/span>. Enter the following into your vhosts:<br \/>\n<span style=\"color: #ff0000;\"><strong>SSLEngine on<br \/>\nSSLCertificateFile \/etc\/apache2\/ssl\/server.crt<br \/>\nSSLCertificateKeyFile \/etc\/apache2\/ssl\/server.key<br \/>\nSetEnvIf User-Agent \".*MSIE.*\" nokeepalive ssl-unclean-shutdown<\/strong><\/span><\/p>\n<p style=\"text-align: left;\">Restart apache<\/p>\n<p>Trouble Shooting:<br \/>\nI've come across the occasional update where upon restarting mythbackend, the system load would max out for no reason. I found to resolve this I needed to run mythtv-setup and delete the dvb cards, readd them and rescan the channels. Upon restarting mythbackend, load would remain normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install and setup Mythtv on Gentoo<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,214],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-gentoo","tag-install","tag-mythtv"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":34,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}