FreeNAS Media Server with PlexMediaServer and Mythtv

Status
Not open for further replies.

nello

Patron
Joined
Dec 30, 2012
Messages
351
Are there any updates to the guide as a result of the new version (9.3 +) of FreeNAS?
 

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148
Are there any updates to the guide as a result of the new version (9.3 +) of FreeNAS?
I just upgraded initially and everthing worked OK, however I have installed on a fresh NAS using 9.3 and the proceedure was completed as I origonally described.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351

nello

Patron
Joined
Dec 30, 2012
Messages
351
mysql> SELECT @@global.time_zone, @@session.time_zone;
+--------------------------+---------------------------+
| @@global.time_zone | @@session.time_zone |
+--------------------------+---------------------------+
| SYSTEM | SYSTEM |
+--------------------------+---------------------------+
1 row in set (0.00 sec)


This shows that mysql is using the system for it's timezone …


Yes, but it does NOT show that the timezones were loaded correctly.

This page describes how to test whether your timezones have been loaded correctly:

http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables
 
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
Now check the mythtv database entry
root@mythtest:/ # mysql -u root -p'<password>' -e 'show databases;'

Is this the expected/correct response?

Code:
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| mythconverg        |
| performance_schema |
| test               |
+--------------------+
5 rows in set (0.00 sec)

mysql>


UPDATE 28-Feb-2015

Yes, this is the expected response. The queries in mc.sql create mythconverg.
 
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
Setup Remote X11 access from your PC/Laptop
Download Xming from here: http://sourceforge.net/projects/xming/
Download PuTTY from here: http://www.putty.org/

The X11 client I used on my Macintosh is XQuartz:

http://xquartz.macosforge.org/landing/

As an X11 client, this application assumes that you have a 3-button mouse and does not use the paste key (⌘-v) that is standard for Macintosh applications. If you don't have a 3-button mouse, then check XQuartz's Preferences to emulate the middle button for paste, as shown below:

X11_Preferences.png



The application uses the standard key (⌘-c) for copy.

Edit_and_Menubar.png



After launching the application, enter the following into the xterm window to connect to your MythTV Jail and launch mythtv-setup:

Code:
ssh -Y root@<mythtv jail ip> /usr/local/bin/mythtv-setup
 
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
root@mythtest:/ # service sshd restart


This didn't work for me
Code:
root@mythtv:/ # service sshd restart
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.



Until I explicitly built the keys:
Code:
root@mythtv:/ # /usr/bin/ssh-keygen -A
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
root@mythtv:/ # service sshd restart
Performing sanity check on sshd configuration.
sshd not running? (check /var/run/sshd.pid).
Performing sanity check on sshd configuration.
Starting sshd.
root@mythtv:/ #



But I'm wondering …

Does
ssh need to be added to /etc/rd.d ?
Code:
root@mythtv:/ # service ssh status
ssh does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
root@mythtv:/ #
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
Firstly create a mythtv jail in FreeNAS (standard plugin jail)
login to the jail and a) set the root password "
passwd" and b) create a user with full privileges"adduser" just follow the prompts, where it asks for the following....
Login group is test. Invite test into other groups? []: <enter wheel group here>

I don't understand why you are creating a user in this step because:

  • I don't see where it is used in your tutorial, and
  • MythTV creates it's own user and group during its installation
Code:
===> Creating users and/or groups.                                              
Creating group 'mythtv' with gid '119'.                                        
Creating user 'mythtv' with uid '119'.
[mythtv] [139/139] Extracting mythtv-0.27.0.20140121_6: 100%
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
I misunderstood the instructions for setting up X11 forwarding so I'm posting what worked for me.

root@mythtest:/ # echo 'ListenAddress <youripaddress>' >> /etc/ssh/sshd_config

<youripaddress> is the address of the MythTV Jail. It is the same as <mythtv jail ip> used a little later in the tutorial.

root@mythtest:/ # ssh -Y root@<mythtv jail ip> /usr/local/bin/mythtv-setup

The prefix root@mythtest:/ mislead me into thinking that this command is run within the MythTV Jail. It is run from your X11 client on your PC/Mac/Whatever.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148
I don't understand why you are creating a user in this step because:
  • I don't see where it is used in your tutorial, and
  • MythTV creates it's own user and group during its installation
Code:
===> Creating users and/or groups.                                              
Creating group 'mythtv' with gid '119'.                                       
Creating user 'mythtv' with uid '119'.
[mythtv] [139/139] Extracting mythtv-0.27.0.20140121_6: 100%

True, I'll drop this bit
 

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148
I misunderstood the instructions for setting up X11 forwarding so I'm posting what worked for me.



<youripaddress> is the address of the MythTV Jail. It is the same as <mythtv jail ip> used a little later in the tutorial.



The prefix root@mythtest:/ mislead me into thinking that this command is run within the MythTV Jail. It is run from your X11 client on your PC/Mac/Whatever.

This command IS run from within Mythtv
 

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148
This didn't work for me
Code:
root@mythtv:/ # service sshd restart
Performing sanity check on sshd configuration.
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.



Until I explicitly built the keys:
Code:
root@mythtv:/ # /usr/bin/ssh-keygen -A
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
root@mythtv:/ # service sshd restart
Performing sanity check on sshd configuration.
sshd not running? (check /var/run/sshd.pid).
Performing sanity check on sshd configuration.
Starting sshd.
root@mythtv:/ #



But I'm wondering …

Does
ssh need to be added to /etc/rd.d ?
Code:
root@mythtv:/ # service ssh status
ssh does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
root@mythtv:/ #

I don't know why this failed for you, no other reports for missing keys on this topic....
 

mysticpete

Contributor
Joined
Nov 2, 2013
Messages
148

nello

Patron
Joined
Dec 30, 2012
Messages
351
if the timezone was not loaded correctly then it would not show that the System time zone is being used, there would be a null error.

That's not my experience; I got the output that you showed and yet mythtv-setup refused to run saying that the timezones weren't set up.
 

nello

Patron
Joined
Dec 30, 2012
Messages
351
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
I don't know why this failed for you, no other reports for missing keys on this topic....

I don't know why either.

However, I followed your tutorial twice with fresh 9.3 Jails and both times it failed. Both times, ssh started just fine after manually creating the keys. If it had failed only the first time then I'd chalk it up to my error in following the tutorial.

Again, I don't know why ssh did't start up for me the way it started up for you.

I just posted a solution that worked for me. Perhaps it will help others.
 
Last edited:
Status
Not open for further replies.
Top