Code: Select all
sudo apt-get install ntp
sudo apt-get install gparted gnome-system-monitor libreoffice libreoffice-help-en-us vlc ffmpeg gimp qbittorent asunder
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install openssh-server
set up ssh
sudo apt-get install lm-sensors && sudo sensors-detect && sensors
sudo apt-get install psensor
sudo apt-get install hdhomerun-config-gui hdhomerun-config
set up hdhomerun systemd service to delay startup of mythtv-backend
sudo add-apt-repository ppa:mythbuntu/31
sudo apt-get update
sudo apt-get install mythtv
added override to mythtv-backend.service to delay its startup (not sure if necessary since it completes on iteration 1, but it makes me feel better)
Code: Select all
sudo usermod -a -G mythtv htpc
sudo shutdown -r now
Code: Select all
htpc@htpc-HP:~$ sudo systemctl stop mythtv-backend
[sudo] password for htpc:
htpc@htpc-HP:~$ sudo systemctl status mythtv-backend
● mythtv-backend.service - MythTV Backend
Loaded: loaded (/lib/systemd/system/mythtv-backend.service; enabled; vendor preset: enable>
Drop-In: /etc/systemd/system/mythtv-backend.service.d
└─override.conf
Active: failed (Result: exit-code) since Sun 2021-06-06 21:45:08 EDT; 4min 52s ago
Docs: https://www.mythtv.org/wiki/Mythbackend
Main PID: 1518 (code=exited, status=138)
Jun 06 21:45:08 htpc-HP systemd[1]: mythtv-backend.service: Scheduled restart job, restart coun>
Jun 06 21:45:08 htpc-HP systemd[1]: Stopped MythTV Backend.
Jun 06 21:45:09 htpc-HP systemd[1]: mythtv-backend.service: Start request repeated too quickly.
Jun 06 21:45:09 htpc-HP systemd[1]: mythtv-backend.service: Failed with result 'exit-code'.
Jun 06 21:45:09 htpc-HP systemd[1]: Failed to start MythTV Backend.
This is actually why I reinstalled the OS. After apt purge mythtv* libmyth and mysql DROP DATABASE mythconverg; and reinstalling mythtv, I thought I had done something wrong when systemd said failed before setting up the backend.
Setup other programs while waiting for other backend to finish recording, so I can scan the tuner.
Code: Select all
mythtv-setup.real -v most,norefcount --loglevel=debug > mythtv-setup-1.log 2>&1
Packaging bug?: did not ask me for a mythconverg password and failed to propagate the random one generated (This didn’t happen before with the ppa when installing new. It did propagate properly before. Also, I could log into mysql with the password in /home/mythtv/.mythtv/config.xml, which symlinks to /etc/mythtv/config.xml, but it was trying to use the default mythtv password.) On second thought, maybe this is because I’m not running it as user mythtv?
Code: Select all
sudo dpkg-reconfigure mythtv-common
set a password
sudo dpkg-reconfigure mythtv-database
answer no
echo "DBBackupDirectory=/var/lib/mythtv/db_backups" > ~/.mythtv/backuprc
/usr/share/mythtv/mythconverg_backup.pl --rotate -1 --verbose
sudo systemctl start mythtv-backend
mythbackend -v most,norefcount --loglevel=debug
I though that worked? But I guess not.
sudo systemctl stop mythtv-backend
mythbackend -v most,norefcount --loglevel=debug > mythtv-backend-1.log 2>&1
mythfrontend -v most,norefcount --loglevel=debug > mythtv-frontend-1.log 2>&1
Stupid metadata lookup on title (test). I should disable that, but I’m not sure how.
Ctrl C on backend
after a short 10 minute recording:
Code: Select all
/usr/share/mythtv/mythconverg_backup.pl --rotate -1 --verbose
mythtv-setup.real -v most,norefcount --loglevel=debug > mythtv-setup-2.log 2>&1
Code: Select all
/usr/share/mythtv/mythconverg_backup.pl --rotate -1 --verbose
htpc@htpc-HP:~$ sudo systemctl disable mythtv-backend.service
I'll try to look in the morning, I've stayed up too late already.