User:Rhulme/Upgrading from 0.20.2 to 0.21 on Suse 10.2 from Packages
Outdated: The information on this page may no longer be relevant to the current release of MythTV, 35.0. Please consider helping to update it. This page was last modified on 2011-01-18.
Other openSUSE pages |
Contents
Introduction
Richard created screenshots during the migration from 0.20 to 0.21 on openSUSE 10.2 and started this page. We assume these instructions will work for newer version as well.
Preparation
Shutdown to run level 2
Shutdown to run level 2 (single user + network).
mythtv:/home/mythtv # /sbin/init 2 mythtv:/home/mythtv # who -r run-level 2 Mar 15 12:26 last=5
Backup MythTV Database
mythtv:/home/mythtv # mysqldump -umythtv -p --extended-insert --databases mythconverg > mythdatabase.bak Enter password:
Backup Root Filesystem
mythtv:/home/mythtv # rsync -avzxe ssh --delete --exclude=*.dmg --exclude=*.iso --exclude=*.avi root@192.168.1.202:/mnt/MythTV/ root@192.168.1.202's password: building file list ... done dev/ etc/ etc/mtab etc/printcap home/mythtv/ home/mythtv/.xsession-errors home/mythtv/mythdatabase.bak tmp/ // Output Truncated // sent 26773223 bytes received 300298 bytes 45160.17 bytes/sec total size is 6139828329 speedup is 226.78 mythtv:/home/mythtv #
Update
YaST Software Management can install and remove packages, it can also be used for updating them, if newer versions are available. This is generally the case when unofficial and unsupported repositories are used. Official security or bugfix updates are usually installed with YaST Online Update. The availability of a newer version of a package is indicated by blue text - right click on the package and select Update.
Screenshots from the update
mythtv:~ # /sbin/init 5
Common problems and solutions
Playback Issues
After the upgrade I found that playback was pausing every few seconds. I also found that CPU utilisation was high. I did the following, but it is still worse than with 0.20.2.
It is now possible to create profiles for your playback preferences base on content resolution and it seems that any old settings are lost. I created a profile and enabled XVMC.
I also enabled SUID for the mythfrontend binary. There is also a setting relating to this which needs to be enabled.
mythtv:~ # ls -al /usr/bin/mythfrontend -rwxr-xr-x 1 root root 1559476 Mar 13 10:08 /usr/bin/mythfrontend mythtv:~ # chmod +s /usr/bin/mythfrontend mythtv:~ # ls -al /usr/bin/mythfrontend -rwsr-sr-x 1 root root 1559476 Mar 13 10:08 /usr/bin/mythfrontend mythtv:~ #
I got good playback performance (under 10.3 with Compiz/XGL) by creating a new Playback Profile with the following attributes and putting it first in the list:
Match Criteria: > 0 0 Decoder: Standard Video Renderer: xv-blit Primary Deinterlader: Linear blend
--Dhwalker 17:43, 22 March 2008 (UTC)
Mythweb Not Working
When I tested Mythweb by going to my bookmarked URL (http://192.168.1.201/mythweb/) the following error was displayed in the browswer window:.
Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 192.168.1.201 Sat Mar 15 13:43:18 2008 Apache/2.2.3 (Linux/SUSE)
I changed group owner for the mythweb files from www to users:.
mythtv:~ # ls -al /srv/www/htdocs total 52 drwxr-xr-x 5 wwwrun users 4096 Feb 10 2007 . drwxr-xr-x 6 root root 4096 Feb 3 2007 .. -rw-r--r-- 1 wwwrun users 2326 Nov 21 2004 apache_pb.gif -rw-r--r-- 1 wwwrun users 1385 Nov 21 2004 apache_pb.png -rw-r--r-- 1 wwwrun users 2410 Dec 15 2005 apache_pb22.gif -rw-r--r-- 1 wwwrun users 1502 Dec 15 2005 apache_pb22.png -rw-r--r-- 1 wwwrun users 2205 Dec 15 2005 apache_pb22_ani.gif -rw-r--r-- 1 wwwrun users 302 Apr 29 2006 favicon.ico drwxr-xr-x 2 wwwrun users 4096 Feb 1 2007 gif -rw-r--r-- 1 wwwrun users 44 Nov 21 2004 index.html drwxr-xr-x 8 wwwrun www 4096 Mar 15 15:15 mythweb drwxr-xr-x 7 wwwrun users 4096 Mar 12 21:15 phpMyAdmin -rw-r--r-- 1 wwwrun users 26 Nov 26 2006 robots.txt mythtv:~ #
mythtv:~ # chgrp -R /srv/www/htdocs/mythweb
mythtv:~ # ls -al /srv/www/htdocs total 52 drwxr-xr-x 5 wwwrun users 4096 Feb 10 2007 . drwxr-xr-x 6 root root 4096 Feb 3 2007 .. -rw-r--r-- 1 wwwrun users 2326 Nov 21 2004 apache_pb.gif -rw-r--r-- 1 wwwrun users 1385 Nov 21 2004 apache_pb.png -rw-r--r-- 1 wwwrun users 2410 Dec 15 2005 apache_pb22.gif -rw-r--r-- 1 wwwrun users 1502 Dec 15 2005 apache_pb22.png -rw-r--r-- 1 wwwrun users 2205 Dec 15 2005 apache_pb22_ani.gif -rw-r--r-- 1 wwwrun users 302 Apr 29 2006 favicon.ico drwxr-xr-x 2 wwwrun users 4096 Feb 1 2007 gif -rw-r--r-- 1 wwwrun users 44 Nov 21 2004 index.html drwxr-xr-x 8 wwwrun users 4096 Mar 15 15:15 mythweb drwxr-xr-x 7 wwwrun users 4096 Mar 12 21:15 phpMyAdmin -rw-r--r-- 1 wwwrun users 26 Nov 26 2006 robots.txt mythtv:~ #
This had no effect.
By going to http://192.168.1.201/mythweb/mythweb.php (specify the full path to the web page) I got the following error:
Database Setup Error The database environment variables are not correctly set in the webserver conf or .htaccess file. Please read through the comments included in the file and set up the db_* environment variables correctly. Some possible solutions are to make sure that mod_env is enabled in httpd.conf, as well as having followed the instructions in the README and INSTALL files.
My .htaccess file went missing during the update! The file was still indexed in the locate DB, but I was unable to list it.
mythtv:~ # locate htaccess /srv/www/htdocs/mythweb/.htaccess /srv/www/htdocs/mythweb/data/.htaccess /srv/www/htdocs/phpMyAdmin/libraries/.htaccess /usr/share/apache2/manual/howto/htaccess.html /usr/share/apache2/manual/howto/htaccess.html.en /usr/share/apache2/manual/howto/htaccess.html.ja.euc-jp /usr/share/apache2/manual/howto/htaccess.html.ko.euc-kr /usr/share/apache2/manual/howto/htaccess.html.pt-br /usr/share/doc/packages/perl-SOAP-Lite/examples/server/mod_soap.htaccess /usr/share/doc/packages/perl-SOAP-Lite/examples/XMLRPC/mod_xmlrpc.htaccess mythtv:~ # ls -al /srv/www/htdocs/mythweb/.htaccess ls: cannot access /srv/www/htdocs/mythweb/.htaccess: No such file or directory mythtv:~ #
I restored the file from my backup of my root filesystem and Mythweb now works.
mythtv:~ # scp root@192.168.1.202:/mnt/MythTV/srv/www/htdocs/mythweb/.htaccess /srv/www/htdocs/mythweb/ root@192.168.1.202's password: .htaccess 100% 6291 6.1KB/s 00:00 mythtv:~ #
User Experiences
Rhulme - Thanks, this worked for me as well. CPU idle while playing was 0% and is now 50%-60%.
Moosy - I used these instruction on the openSUSE 10.3 page for openSUSE 10.2. Have seen no CPU issues whatsoever on my openSUSE 10.2 64bit machine. Like the screenshots on this page, good job.