User:Rhulme/Upgrading from 0.20.2 to 0.21 on Suse 10.2 from Packages
This is the procedure I used when upgrading my Suse 10.2 system from 0.20 to 0.21 using YaST package manager. Feel free to add your findings to this page.
Rhulme
Contents
- 1 Shutdown to run level 2
- 2 Preparation
- 3 Update
- 3.1 Updating software with YaST
- 3.2 Perform Update
- 3.2.1 Suse 10.2 YaST Control Center window - Select "Software Management".
- 3.2.2 Suse 10.2 YaST2 window.
- 3.2.3 Search for "Myth" to find the relevant packages.
- 3.2.4 Right click then select "update" on the required packages.
- 3.2.5 Right click then select "update" on the required packages (second page).
- 3.2.6 Suse 10.2 YaST2 dependency conflict warning.
- 3.2.7 Suse 10.2 YaST2 dependency conflict warning.
- 3.2.8 Suse 10.2 YaST2 dependency conflict warning.
- 3.2.9 Suse 10.2 YaST2 dependency conflict warning.
- 3.2.10 Suse 10.2 YaST2 dependency conflict warning.
- 3.2.11 YaST2 changed packages warning.
- 3.2.12 YaST2 package installation.
- 3.2.13 Select "No" when presented with the YaST2 more packages dialog.
- 4 Problems
- 5 Upgrading from 0.20.2 to 0.21 on Suse 10.2 from Packages -- Rhulme (comment)
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
Preparation
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
Updating software with YaST
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.
Perform Update
Suse 10.2 YaST Control Center window - Select "Software Management".
Suse 10.2 YaST2 window.
Search for "Myth" to find the relevant packages.
Right click then select "update" on the required packages.
Right click then select "update" on the required packages (second page).
Suse 10.2 YaST2 dependency conflict warning.
Suse 10.2 YaST2 dependency conflict warning.
Suse 10.2 YaST2 dependency conflict warning.
Suse 10.2 YaST2 dependency conflict warning.
Suse 10.2 YaST2 dependency conflict warning.
YaST2 changed packages warning.
YaST2 package installation.
Select "No" when presented with the YaST2 more packages dialog.
mythtv:~ # /sbin/init 5
Problems
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)
Upgrading from 0.20.2 to 0.21 on Suse 10.2 from Packages -- Rhulme (comment)
Thanks, this worked for me as well. CPU idle while playing was 0% and is now 50%-60%.
Rhulme
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:~ #