==== How To - Making a Raspberry Pi into a MythTV client ==== Pieced together from the MythTV Wiki, links on the Wiki, and my own knowledge/testing/experience/preferences. Starting from a new, clean image of NOOBS: - Boot NOOBS - Open the Terminal * sudo apt update sudo apt upgrade sudo apt autoremove sudo rpi-update - Reboot - Open Menu → Preferences → Raspberry Pi Configuration - Main Tab - Change the password (to something secure) - Set the hostname - Auto Login: Off - Splash Screen: Disabled - Set Resolution (if necessary - Pi usually auto-configures the correct resolution) - Underscan: Disabled - Interfaces tab - SSH: Enabled - Everything Else: Disabled - Performance tab - GPU Memory: 256 - Localisation tab - Set Timezone - Area: Europe - Location: London - Set Wi-Fi Country - GB - Britain (UK) - Reboot - Turn off Wi-Fi and Bluetooth via the System Tray (this should be the last time you need the mouse) - Open the Terminal * sudo su nano -w /etc/apt/sources.list.d/mythtv-light.list - Enter the following text: * deb http://dl.bintray.com/bennettpeter/deb/ stretch myth29 - Save and exit with Ctrl+X, Y, Enter * wget -O - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | apt-key add - apt update apt install mythtv-light cpufrequtils ratpoison autofs adduser mythtv adduser mythtv dialout adduser mythtv cdrom adduser mythtv audio adduser mythtv video adduser admin adduser admin adm adduser admin dialout adduser admin cdrom adduser admin sudo adduser admin audio adduser admin video adduser admin plugdev adduser admin games adduser admin users adduser admin input adduser admin netdev adduser admin spi adduser admin i2c adduser admin gpio systemctl disable raspi-config nano -w /etc/default/cpufrequtils - Enter the following text: * GOVERNOR="performance" - Save and exit with Ctrl+X, Y, Enter * visudo - Add the following to the bottom of the file: * mythtv ALL = NOPASSWD: /sbin/shutdown, /sbin/reboot - Save and exit with Ctrl+X, Y, Enter * nano -w /etc/lightdm/lightdm.conf - Find the line * [Seat:*] - Uncomment and modify these two parameters: * autologin-user=mythtv autologin-user-timeout=5 - Save and exit with Ctrl+X, Y, Enter * nano -w /etc/auto.master - Comment out these two lines: * #+dir:/etc/auto.master.d #+auto.master - Add the following line to the bottom of the file: * /- auto.direct --timeout=60 --ghost - Save and exit with Ctrl+X, Y, Enter * nano -w /etc/auto.direct - Enter the following text: * /mnt/nfsshare -fstype=nfs4,_netdev,exec,timeo=10,fg nfsserver:/mnt/share /mnt/smbshare -fstype=cifs,uid=mythtv,user=remoteuser,password=remotepassword ://192.168.1.10/share - Save and exit with Ctrl+X, Y, Enter * mkdir /mnt/share su mythtv cd ~ nano -w .xsession - Enter the following text: * /usr/bin/xset -dpms s off /usr/bin/ratpoison & /usr/bin/mythwelcome -O libCECEnabled=0 - Save and exit with Ctrl+X, Y, Enter * nano -w .ratpoisonrc - Enter the following text: * bind c exec /usr/bin/lxterminal - Save and exit with Ctrl+X, Y, Enter * mkdir .mythtv nano -w .mythtv/config.xml - Enter the following text: * 1 mythtv.server mythtv password mythconverg 3306 0 - Save and exit with Ctrl+X, Y, Enter - Reboot - Wait for the MythTV Frontend to start - Exit the Frontend (Escape or Left Arrow) - Press i - Uncheck 'Automatically start mythfrontend' - Go to Finish and press Enter - Press F11 - Change 'Command to run Xterm' to: * /usr/bin/lxterminal - Go to Finish and press Enter - Press Enter to start the Frontend - Go to Setup and press Enter or Right Arrow - Go to Setup Wizard and press Enter or Right Arrow - Go to Next and press Enter - Change the 'Audio Device' with the arrow keys to: * ALSA:default:CARD=ALSA - Change the 'Number of Speakers' to: Stereo - Next - Change the 'Video Playback Profile' to: * OpenMAX High Quality - Go to 'Test High Definition' to confirm everything works as expected - Finish - General - Remote Control - Change 'Enable Network Remote Control Interface' to: On - Back - AirPlay - Enable AirPlay: Off - Back - Back - Save and Exit - Appearance - Theme/Screen Settings - Menu Theme: Media Center Menu Theme - Back - Localisation - Date Format: Sun 8 Jul 2018 - Short Date Format: Sun 8/7 - Time Format: 14:10 (the 2nd one for leading zeroes) - Back - Back - Save and Exit - Wait for the Frontend to reload - Advanced - Setup - Theme Chooser - Mythbuntu 28.21 - Wait for the Frontend to reload - Advanced - Setup - Audio - Use internal volume controls (press Right Arrow) - Master mixer volume: 100 - Back - Back - Save and Exit - TV Settings - Playback - General Playback - Action on playback exit: Save position and exit - Back - View Recordings - Start in group: Off - Recording Groups - Save current group filter when changed: Off - Back - Include the 'Watch List' group (press Right Arrow) - Start from the Watch List view: On - Days to exclude weekly episodes after delete: 0 - Back - Back - Seeking - Reverse direction in Fast Forward/Rewind: Off - Back - Back - Save and Exit - Playback OSD - Enable interactive TV: Off - Back - Save and Exit - Back - Media Settings - Videos Settings - General Settings - Directories that hold videos: * /mnt/share/videos - Video Tree remembers last selected position: On - Back - Save and Exit - Metadata Settings - Perform metadata update after: Off - Display unknown file types: On - OK - Back - Back - Back - Edit Keys - Main Menu - Exit Prompt - Remove Binding: Escape - Exit - Bind Key: Escape - Conflict OK - TV Playback - Pause - Bind: Media Play - Escape - Save Changes - Back - Back (Exit MythFrontend) - Press 'M' to open the menu - Exit - MythWelcome will restart - Enter (to start MythFrontend) - Watch Videos - Press the Menu key - Change View - Switch to List View - Job done!