Difference between revisions of "User:Trogod/System1"
m |
|||
Line 278: | Line 278: | ||
i have previously configured LIRC with my remote control. | i have previously configured LIRC with my remote control. | ||
− | Apparently, neither Ubuntu nor MythTV has given my [[LIRC]] (also https://www.lirc.org/). | + | Apparently, neither Ubuntu nor MythTV has given my [[LIRC]] (also https://www.lirc.org/ https://help.ubuntu.com/community/LIRC). |
The current version looks like 10.2 | The current version looks like 10.2 | ||
Line 295: | Line 295: | ||
<pre> | <pre> | ||
$ sudo cp -pr /storage/backups/daily-202212/etc/lirc/lircd.conf.d/tivo_and_atlas4.conf /etc/lirc/lircd.conf.d/. | $ sudo cp -pr /storage/backups/daily-202212/etc/lirc/lircd.conf.d/tivo_and_atlas4.conf /etc/lirc/lircd.conf.d/. | ||
− | $ ls - | + | $ sudo cp -pr /storage/backups/daily-202212/etc/lirc/copy/hardware.conf /etc/lirc/ |
− | total | + | $ ls -FtlRa /etc/lirc |
+ | /etc/lirc: | ||
+ | total 40 | ||
+ | drwxr-xr-x 3 root root 4096 Jan 8 09:42 ./ | ||
+ | drwxr-xr-x 2 root root 4096 Jan 8 09:10 lircd.conf.d/ | ||
+ | drwxr-xr-x 137 root root 12288 Jan 8 08:57 ../ | ||
+ | -rw-r--r-- 1 root root 1124 Mar 25 2022 irexec.lircrc | ||
+ | -rw-r--r-- 1 root root 313 Mar 25 2022 lircd.conf | ||
+ | -rw-r--r-- 1 root root 155 Mar 25 2022 lircmd.conf | ||
+ | -rw-r--r-- 1 root root 1071 Mar 25 2022 lirc_options.conf | ||
+ | -rw-r--r-- 1 root root 1201 Oct 23 2012 hardware.conf | ||
+ | |||
+ | /etc/lirc/lircd.conf.d: | ||
+ | total 80 | ||
+ | drwxr-xr-x 3 root root 4096 Jan 8 09:42 ../ | ||
+ | drwxr-xr-x 2 root root 4096 Jan 8 09:10 ./ | ||
-rw-r--r-- 1 root root 38757 Mar 25 2022 devinput.lircd.conf | -rw-r--r-- 1 root root 38757 Mar 25 2022 devinput.lircd.conf | ||
-rw-r--r-- 1 root root 615 Mar 25 2022 README.conf.d | -rw-r--r-- 1 root root 615 Mar 25 2022 README.conf.d | ||
-rw-r--r-- 1 root root 26394 Mar 28 2011 tivo_and_atlas4.conf | -rw-r--r-- 1 root root 26394 Mar 28 2011 tivo_and_atlas4.conf | ||
</pre> | </pre> | ||
− | |||
Revision as of 17:44, 8 January 2023
This is to capture information about my current hardware and setup as it may be useful to other new or inexperienced users.
Contents
Hardware
Existing hardware
- Logitech Harmony 665
- HDHomeRun Quatro
- infrared remote receiver
- Rosewill R379-M MATX
New hardware
- $130 Intel Core i3-12100 3.3 GHz Quad-Core LGA 1700 Processor
- $90 Athena Power AP-MFATX40P8 400W]
- $121 MSI PRO B660M-A DDR4 LGA 1700 Intel SATA 6Gb/s Micro ATX
- $56 SAMSUNG 980 SSD 500GB PCle 3.0x4, NVMe M.2 2280, MZ-V8V500B/AM
- $85 Corsair vengeance 32GB
Total $482
I have these selected at https://pcpartpicker.com/list/vf9nqm
Hoping that these will be suitable with the case I already have Rosewill R379-M MATX
My current plan is to install Ubuntu 22.04
Partitioning
- apparently UEFI Bios tries to find a partition in a GPT-partitioned boot device. This partition needs to be tagged with "EFI System" and also needs to be formatted with FAT filesystem.
- I ran "sudo gparted &"
- used Device menu to create partition table to gpt
- followed https://askubuntu.com/a/743098
Install Ubuntu
- normal installation, download updates while installing, install third-party software & Secure Boot (chose password)
- installation type / something else
Install MythTV
i'm installing MythTV via the Mythbuntu Control Panel. I'm following instructions at Mythbuntu_Control_Panel.
- sudo add-apt-repository ppa:mythcp/mcp
- sudo apt-get update
- sudo apt install mythbuntu-control-panel
The first sudo needed my password, but the others were executed soon enough that I didn't need to enter it again.
- launched Mythbuntu Control Panel
- went to *Repositories* tab
- checked box "Activate MythTV Updates repository"
- selected version 32
- checkbox for "Activate Mythbuntu Control Panel repository" was *already* checked
- clicked "Apply" box
A summary of the changes that will be applied is below: Repositories: - Reconfigure (as root) the following items: MythTV-Updates-Repo MythTV-Updates-Activated Repo-list
- clicked "Apply"
- it required my password, then popped-up a progress bar, then returned to the control panel.
- exited Mythbuntu Control Panel
- opened Software Updater. saw some updates, but nothing related to MythTV ... hmmm ...
- needed to restart
I ran Software Updater again, but didn't see MythTV items. So, I ran "Software & Updates" and chose the "Other Software" tab. There, I could see an item named https://ppa.launchpadcontent.net/mythbuntu/32/ubuntu/jammy which looks like the repository for MythTV 32. I ran "sudo apt-get update" again and I could see the aforementioned repository in the output, so it seems like it is reading it.
- went to "System Roles"
- selected "Primary Backed", "Use XMLTV for guide data" (I have an account with Schedules Direct), "Enable SSH", "Desktop Frontend", "HDHomeRun Config" (I have an HDHomeRun tuner), "HDHomeRun Config GUI" (why not)
- Clicked "Apply"
System Roles: - Install the following items: mythtv-backend-master mythtv-frontend xmltv openssh-server hdhomerun-config hdhomerun-config-gui
- Clicked "Apply" and entered password. this took a little longer than the time. something popped up and i accidentally closed it :(
- went to "Setup"
- selected "User in mythtv:group", clicked "Apply", clicked next "Apply", entered password
Setup: - Reconfigure (as root) the following items: user_in_mythtv_group
- rebooted the computer
- launched Mythbuntu Control Panel and went to "Setup"
- selected "Link to config.xml"
Setup: - Reconfigure (as user) the following items: link_config_file
- clicked "Apply" and also the next "Apply"
- the option to enable networking was grayed out with the message "Apply this after configuring MythTV Backend if networking is needed"
Restore From System 0
Based on my notes at System 0 Update
$ cp -pr '/home/troy/sysB/home/troy/.mythtv/' mythtv1 $ rm mythtv1/config.xml $ mv mythtv1/* .mythtv/. $ rm -rf .mythtv/HardwareProfile/ .mythtv/cache/ .mythtv/tmp/ $ cp -pr '/home/troy/sysB/home/troy/.lirc' .lirc $ cp -pr '/home/troy/sysB/home/troy/.lircrc' .
for the purpose of testing my setup without damaging my existing recordings, I will not mount my 2TB storage disk. Instead, I'll just create the /storage
directory locally:
$ sudo mkdir /storage $ sudo chmod a+rwx /storage $ sudo mkdir /storage/mythtv $ sudo chmod a+rwx /storage/mythtv/
I also am importing my old mythtv database file following instructions at Database_Backup_and_Restore
$ ls -Ftl --full-time /usr/share/mythtv/mythconverg_restore.pl -rwxr-xr-x 1 root root 68814 2022-12-11 07:33:04.000000000 -0800 /usr/share/mythtv/mythconverg_restore.pl* $ ls -Ftl --full-time /usr/share/mythtv/mythconverg_backup.pl -rwxr-xr-x 1 root root 59103 2022-12-11 07:33:04.000000000 -0800 /usr/share/mythtv/mythconverg_backup.pl* $ /usr/share/mythtv/mythconverg_backup.pl -v MythTV Database Backup Script,1.0.13,, $ /usr/share/mythtv/mythconverg_backup.pl --directory ~/Maintenance/2022-12-15-Install/ --filename mythconverg-before-restore.sql --verbose $ ls -Fl --full-time ~/Maintenance/2022-12-15-Install/mythconverg-be* -rw-rw-r-- 1 troy troy 19883 2023-01-07 13:10:29.974852804 -0800 /home/troy/Maintenance/2022-12-15-Install/mythconverg-before-restore.sql.gz $ /usr/share/mythtv/mythconverg_restore.pl --drop_database --create_database --directory=/media/troy/d70970b0-e22c-47ae-a9e0-5d9c637aa073/mythtv/db_backups/ --filename=mythconverg-1361-20221204083746.sql.gz --verbose Configuring environment: - username: troy - HOME: /home/troy - MYTHCONFDIR: /home/troy/.mythtv Parsing configuration files: - checking: /home/troy/.mythtv/config.xml parsing: /home/troy/.mythtv/config.xml - checking: /home/troy/.mythtv/backuprc parsing: /home/troy/.mythtv/backuprc Applying command-line arguments. Checking configuration. [SNIP] mysql exited with status: 0 Restored 4492 of 4492 lines. Successfully restored backup. Found DBSchemaVer: 1361. Setting database character set.
now, let's run the backup setup GUI, again, to see if it looks like it really did it... I checked "Run MythTV Backend Setup as mythtv user" and clicked "MythTV Backend Setup" button. Message: "Warning:MythTV wants to upgrade your database, for the TV schema,from 1361 to 1376. Database Host:localhost Database Name: mythconverg" I clicked "Upgrade"
- set the security pin
- this server is the master backend
- delete files slowly -- maybe this will be helpful?
- idle shutdown timeout, set to 0 (zero)
- Maximum Simultaneous Jobs on This Backend, set to 4, was 1
- added capture card for HDHomeRun
- Use HDHomeRun for active EIT scan [x]
- noted that Recording Profiles had an entry for the HDHomeRun, so I clicked 'save'
- under Connections
- I set the name to "Input 01"
- started a channel scan, saw these messages:
- Found 2 off-air channels
- Found 166 old ATSC channels
- Found 2 new ATSC channels
- storage directories
- default storage group directories: /storage/mythtv
- exited setup
$ sudo service mythtv-backend start $ mkdir -p ~/Maintenance/mythtv/fill $ sudo -u mythtv mythfilldatabase | tee ~/Maintenance/mythtv/fill/mythfilldatabase_log_20230107.txt
I saw a message
2023-01-07 14:03:36.646108 I XMLTV config file is: /home/mythtv/.mythtv/tdgood.xmltv 2023-01-07 14:03:36.897392 E XMLTV grabber returned error code 1 2023-01-07 14:03:37.046022 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
and I noticed that file was missing, so I copied it over from my previous setup
$ sudo cp /media/troy/ec87d246-a931-4336-9a04-d4399ba2c53b/home/mythtv/.mythtv/tdgood.xmltv /home/mythtv/.mythtv $ sudo chown mythtv:mythtv /home/mythtv/.mythtv/tdgood.xmltv $ sudo -u mythtv mythfilldatabase | tee ~/Maintenance/mythtv/fill/mythfilldatabase_log_20230107b.txt
that output looked better
2023-01-07 14:17:00.896715 I Updated programs: 65569 Unchanged programs: 0 2023-01-07 14:17:01.151811 N Data fetching complete.
Testing Live TV
I started the frontend and chose "watch tv" but I received a message that all tuners were busy. It was already recording a show. I stopped the recording and was able to access live TV. However, i did see a message
Disabling Audio Audio Player AOSS: Error opening audio device (): eno: No such file or directory (2)
so, in the frontend setup, I went to the setup wizard
I chose "ALSA:default". the speaker test only activated the left, center, and right speakers of my 5.1 setup but I left it there for now.
Under video configuration, I left it at "NVDEC Normal" for now
Testing Frontend
I copied a few files from my old storage directory
Storage directory
I used "sudo blkid" to get the info for editing /etc/fstab:
$ cat fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/nvme0n1p3 during installation UUID=9f234e2e-43f0-445d-b1da-c4cf05f14827 / ext4 errors=remount-ro 0 1 # /boot/efi was on /dev/nvme0n1p1 during installation UUID=D0AD-3E22 /boot/efi vfat umask=0077 0 1 # swap was on /dev/nvme0n1p2 during installation UUID=80487fd2-6277-48d1-a94f-ce2a9d95c701 none swap sw 0 0 # added manually by troy 2022-dec-07 from old /etc/fstab UUID=d70970b0-e22c-47ae-a9e0-5d9c637aa073 /storage jfs defaults 0 2
$ sudo mv /storage /teststorage $ sudo mkdir /storage
I used "sudo mount -a" to verify that it mounted properly and that I had access to the 2TB drive via /storage
backups
$ cd /etc/cron.daily $ sudo cp -pr /storage/backups/daily-202212/etc/cron.daily/mythconverg-backup /storage/backups/daily-202212/etc/cron.daily/rsync-backup . $ cd /etc/cron.weekly $ sudo cp -pr /storage/backups/daily-202212/etc/cron.weekly/rsync-backup /storage/backups/daily-202212/etc/cron.weekly/mythconverg-backup .
in the Mythbuntu Control Panel, I selected "Automatically start MythTV Frontend" I also enabled MythWeb and MythWeather and rebooted.
configured my HDHomeRun quatro per https://www.mythtv.org/wiki/Channel_Scanning#Scanning_with_HDHomeRun_tuners
In Ubuntu's settings, under power, "Power Saving Options", I chose Screen Blank -> Never
Remote Control and LIRC
i have previously configured LIRC with my remote control. Apparently, neither Ubuntu nor MythTV has given my LIRC (also https://www.lirc.org/ https://help.ubuntu.com/community/LIRC). The current version looks like 10.2
$ sudo apt-get install lirc
The installation didn't show any error messages. My IR receiver has a red light to show it is receiving data, but that wasn't responding when I pushed buttons on the remote. I unplugged the IR receiver's USB connection and plugged it back in -- now, I see the red light blinking in response to button pushes! However, the MythTV frontend is not responding to the remote control.
I had already copied files for ~/.lirc and ~/.mythtv/lircrc Some configuration still needs to be done.
$ sudo cp -pr /storage/backups/daily-202212/etc/lirc/lircd.conf.d/tivo_and_atlas4.conf /etc/lirc/lircd.conf.d/. $ sudo cp -pr /storage/backups/daily-202212/etc/lirc/copy/hardware.conf /etc/lirc/ $ ls -FtlRa /etc/lirc /etc/lirc: total 40 drwxr-xr-x 3 root root 4096 Jan 8 09:42 ./ drwxr-xr-x 2 root root 4096 Jan 8 09:10 lircd.conf.d/ drwxr-xr-x 137 root root 12288 Jan 8 08:57 ../ -rw-r--r-- 1 root root 1124 Mar 25 2022 irexec.lircrc -rw-r--r-- 1 root root 313 Mar 25 2022 lircd.conf -rw-r--r-- 1 root root 155 Mar 25 2022 lircmd.conf -rw-r--r-- 1 root root 1071 Mar 25 2022 lirc_options.conf -rw-r--r-- 1 root root 1201 Oct 23 2012 hardware.conf /etc/lirc/lircd.conf.d: total 80 drwxr-xr-x 3 root root 4096 Jan 8 09:42 ../ drwxr-xr-x 2 root root 4096 Jan 8 09:10 ./ -rw-r--r-- 1 root root 38757 Mar 25 2022 devinput.lircd.conf -rw-r--r-- 1 root root 615 Mar 25 2022 README.conf.d -rw-r--r-- 1 root root 26394 Mar 28 2011 tivo_and_atlas4.conf
Other Software
- sudo apt install plocate
- sudo apt install imagemagick
- sudo apt install lvm2
my old SSD was formatted using LVM, so I needed this, I think