Hi guys,
I found a nice little blog post recently that showed me how to get mythbackend installed inside a jail. Though followed it successfully, to a point, I've now run into a brick wall and I'm hoping some people out there can help me get to a point where I can record TV using an internal tuner card.
So here is the link to the blog: Here I cannot take any credit for the information detailed and must give all to John Payne author of said blog.
For those who cannot be bothered following the link, here is what I did.
1. From FreeNas gui under Jails, I added jails. As guide said it was using port, I set jail to be a "portjail". Ok that, after assigning web address. All other check boxes were left as found.
2. Wait to complete. Had a cup of tea... oh didn't take that long... right onwards ;-)
3. opened a command prompt into jail. From blog post followed copied and pasted these in turn and 'Ok'd each in turn.
pkg_add -r mythtv
pkg_add -r mysql55-server
pkg_add -r libXv
pkg_add -r qt4-webkit
pkg_add -r xauth
pkg_add -r xorg-fonts
Then add lame port via going to this directory: cd /usr/ports/audio/lame
and issue the command "make install" (without the speech marks)
4. Enable X11 forwarding over ssh.
Copy and paste these into the terminal you are working in. Ok each in turn.
echo 'sshd_enable="YES"' >> /etc/rc.conf
echo 'ListenAddress 0.0.0.0' >> /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
echo 'X11Forwarding yes' >> /etc/ssh/sshd_config
echo 'X11UseLocalhost no' >> /etc/ssh/sshd_config
service sshd restart
NB: Change mythtv jail root password via passwd commandfrom command line. Make a note of it you will need it later.
5. Set up SQL server
Copy and paste these into the terminal you are working in. Ok each in turn.
echo 'mysql_enable="YES"' >> /etc/rc.conf
service mysql-server start
mysql < /usr/local/share/mythtv/database/mc.sql
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
I followed the instructions on the original blog how to access the forwarded X11, but I had to use the securecrt 30 day trial. (I would have rather just used putty, but I could not get it to work. if anyone had any advice on that, my desktop is Windows 8.1.)
So I ran Mythtv-setup and could get into the backend setup. However the tuner card was not detected by Myth. On the Freshports page for MythTV there is a reference to using the V4L drivers (with a warning on them being beta and all). On my previous standalone Mythbox I had to add my own firmware for my tuner card.
Can anyone give me any guidance on how to do this?
Also, while researching what to do, I say this warning
And I am concerned on if the process I have followed is going to come back and bite me.
Any thoughts, suggestions and offers of help, gratefully received.
Chris
I found a nice little blog post recently that showed me how to get mythbackend installed inside a jail. Though followed it successfully, to a point, I've now run into a brick wall and I'm hoping some people out there can help me get to a point where I can record TV using an internal tuner card.
So here is the link to the blog: Here I cannot take any credit for the information detailed and must give all to John Payne author of said blog.
For those who cannot be bothered following the link, here is what I did.
1. From FreeNas gui under Jails, I added jails. As guide said it was using port, I set jail to be a "portjail". Ok that, after assigning web address. All other check boxes were left as found.
2. Wait to complete. Had a cup of tea... oh didn't take that long... right onwards ;-)
3. opened a command prompt into jail. From blog post followed copied and pasted these in turn and 'Ok'd each in turn.
pkg_add -r mythtv
pkg_add -r mysql55-server
pkg_add -r libXv
pkg_add -r qt4-webkit
pkg_add -r xauth
pkg_add -r xorg-fonts
Then add lame port via going to this directory: cd /usr/ports/audio/lame
and issue the command "make install" (without the speech marks)
4. Enable X11 forwarding over ssh.
Copy and paste these into the terminal you are working in. Ok each in turn.
echo 'sshd_enable="YES"' >> /etc/rc.conf
echo 'ListenAddress 0.0.0.0' >> /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
echo 'X11Forwarding yes' >> /etc/ssh/sshd_config
echo 'X11UseLocalhost no' >> /etc/ssh/sshd_config
service sshd restart
NB: Change mythtv jail root password via passwd commandfrom command line. Make a note of it you will need it later.
5. Set up SQL server
Copy and paste these into the terminal you are working in. Ok each in turn.
echo 'mysql_enable="YES"' >> /etc/rc.conf
service mysql-server start
mysql < /usr/local/share/mythtv/database/mc.sql
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
I followed the instructions on the original blog how to access the forwarded X11, but I had to use the securecrt 30 day trial. (I would have rather just used putty, but I could not get it to work. if anyone had any advice on that, my desktop is Windows 8.1.)
So I ran Mythtv-setup and could get into the backend setup. However the tuner card was not detected by Myth. On the Freshports page for MythTV there is a reference to using the V4L drivers (with a warning on them being beta and all). On my previous standalone Mythbox I had to add my own firmware for my tuner card.
Can anyone give me any guidance on how to do this?
Also, while researching what to do, I say this warning
http://doc.freenas.org/index.php/Installing_non-PBI_Software said:DANGER! do not use the pkg_add command in a FreeNAS® jail as it will cause inconsistencies in your package management database.
And I am concerned on if the process I have followed is going to come back and bite me.
Any thoughts, suggestions and offers of help, gratefully received.
Chris