Difference between revisions of "User:Trogod/System1"

From MythTV Official Wiki
Jump to: navigation, search
m
Line 126: Line 126:
 
$ ls -Fl --full-time  ~/Maintenance/2022-12-15-Install/mythconverg-be*
 
$ 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
 
-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.
 
</pre>
 
</pre>
  
 +
now, let's run the backup setup GUI, again, to see if it looks like it really did it...
  
 
== Other Software ==
 
== Other Software ==

Revision as of 21:25, 7 January 2023

This is to capture information about my current hardware and setup as it may be useful to other new or inexperienced users.

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

ubuntu@ubuntu:~$ sudo fdisk -l /dev/nvme0n1 Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors Disk model: Samsung SSD 980 500GB Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 16384 bytes / 131072 bytes


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

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...

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