Desk Potato


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:

  1. Boot NOOBS
  2. Open the Terminal
    sudo apt update
    sudo apt upgrade
    sudo apt autoremove
    sudo rpi-update
  3. Reboot
  4. Open Menu → Preferences → Raspberry Pi Configuration
  5. Interfaces tab
  6. Performance tab
  7. Localisation tab
  8. Reboot
  9. Turn off Wi-Fi and Bluetooth via the System Tray (this should be the last time you need the mouse)
  10. Open the Terminal
    sudo su
    nano -w /etc/apt/sources.list.d/mythtv-light.list
  11. Enter the following text:
    deb stretch myth29
  12. Save and exit with Ctrl+X, Y, Enter
  13. wget -O - | 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
  14. Enter the following text:
  15. Save and exit with Ctrl+X, Y, Enter
  16. visudo
  17. Add the following to the bottom of the file:
    mythtv ALL = NOPASSWD: /sbin/shutdown, /sbin/reboot
  18. Save and exit with Ctrl+X, Y, Enter
  19. nano -w /etc/lightdm/lightdm.conf
  20. Find the line
    Uncomment and modify these two parameters:
  21. Save and exit with Ctrl+X, Y, Enter
  22. nano -w /etc/auto.master
  23. Comment out these two lines:
  24. Add the following line to the bottom of the file:
    /- --timeout=60 --ghost
  25. Save and exit with Ctrl+X, Y, Enter
  26. nano -w /etc/
  27. Enter the following text:
    /mnt/share -fstype=nfs4,_netdev,exec,timeo=10,fg nfs:/mnt/share
  28. Save and exit with Ctrl+X, Y, Enter
  29. mkdir /mnt/share
    su mythtv
    cd ~
    nano -w .xsession
  30. Enter the following text:
    /usr/bin/xset -dpms s off
    /usr/bin/ratpoison &
    /usr/bin/mythwelcome -O libCECEnabled=0
  31. Save and exit with Ctrl+X, Y, Enter
  32. nano -w .ratpoisonrc
  33. Enter the following text:
    bind c exec /usr/bin/lxterminal
  34. Save and exit with Ctrl+X, Y, Enter
  35. mkdir .mythtv
    nano -w .mythtv/config.xml
  36. Enter the following text:
  37. Save and exit with Ctrl+X, Y, Enter
  38. Reboot
  39. Wait for the MythTV Frontend to start
  40. Exit the Frontend (Escape or Left Arrow)
  41. Press i
  42. Uncheck 'Automatically start mythfrontend'
  43. Go to Finish and press Enter
  44. Press F11
  45. Change 'Command to run Xterm' to:
  46. Go to Finish and press Enter
  47. Press Enter to start the Frontend
  48. Go to Setup and press Enter or Right Arrow
  49. Go to Setup Wizard and press Enter or Right Arrow
  50. Go to Next and press Enter
  51. Change the 'Audio Device' with the arrow keys to:
  52. Change the 'Number of Speakers' to: Stereo
  53. Next
  54. Change the 'Video Playback Profile' to:
    OpenMAX High Quality
  55. Go to 'Test High Definition' to confirm everything works as expected
  56. Finish
  57. General
  58. Remote Control
  59. Change 'Enable Network Remote Control Interface' to: On
  60. Back
  61. AirPlay
  62. Enable AirPlay: Off
  63. Back
  64. Back
  65. Save and Exit
  66. Appearance
  67. Theme/Screen Settings
  68. Menu Theme: Media Center Menu Theme
  69. Back
  70. Localisation
  71. Date Format: Sun 8 Jul 2018
  72. Short Date Format: Sun 8/7
  73. Time Format: 14:10 (the 2nd one for leading zeroes)
  74. Back
  75. Back
  76. Save and Exit
  77. Wait for the Frontend to reload
  78. Advanced
  79. Setup
  80. Theme Chooser
  81. Mythbuntu 28.21
  82. Wait for the Frontend to reload
  83. Advanced
  84. Setup
  85. Audio
  86. Use internal volume controls (press Right Arrow)
  87. Master mixer volume: 100
  88. Back
  89. Back
  90. Save and Exit
  91. TV Settings
  92. Playback
  93. General Playback
  94. Action on playback exit: Save position and exit
  95. Back
  96. View Recordings
  97. Start in group: Off
  98. Recording Groups
  99. Save current group filter when changed: Off
  100. Back
  101. Include the 'Watch List' group (press Right Arrow)
  102. Start from the Watch List view: On
  103. Days to exclude weekly episodes after delete: 0
  104. Back
  105. Back
  106. Seeking
  107. Reverse direction in Fast Forward/Rewind: Off
  108. Back
  109. Back
  110. Save and Exit
  111. Playback OSD
  112. Enable interactive TV: Off
  113. Back
  114. Save and Exit
  115. Back
  116. Media Settings
  117. Videos Settings
  118. General Settings
  119. Directories that hold videos:
  120. Video Tree remembers last selected position: On
  121. Back
  122. Save and Exit
  123. Metadata Settings
  124. Perform metadata update after: Off
  125. Display unknown file types: On
  126. OK
  127. Back
  128. Back
  129. Back
  130. Edit Keys
  131. Main Menu
  132. Exit Prompt
  133. Remove Binding: Escape
  134. Exit
  135. Bind Key: Escape
  136. Conflict OK
  137. TV Playback
  138. Pause
  139. Bind: Media Play
  140. Escape
  141. Save Changes
  142. Back
  143. Back (Exit MythFrontend)
  144. Press 'M' to open the menu
  145. Exit
  146. MythWelcome will restart
  147. Enter (to start MythFrontend)
  148. Watch Videos
  149. Press the Menu key
  150. Change View
  151. Switch to List View
  152. Job done!