特殊:Badtitle/NS100:MythTV/Install/Troubleshooting
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MythTV/Install/Troubleshooting }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/af | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Afrikaans| [[::MythTV/Install/Troubleshooting/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ar | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|العربية| [[::MythTV/Install/Troubleshooting/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/az | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|azərbaycanca| [[::MythTV/Install/Troubleshooting/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/bcc | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|جهلسری بلوچی| [[::MythTV/Install/Troubleshooting/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/bg | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|български| [[::MythTV/Install/Troubleshooting/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/br | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|brezhoneg| [[::MythTV/Install/Troubleshooting/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ca | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|català| [[::MythTV/Install/Troubleshooting/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/cs | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|čeština| [[::MythTV/Install/Troubleshooting/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/de | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Deutsch| [[::MythTV/Install/Troubleshooting/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/el | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Ελληνικά| [[::MythTV/Install/Troubleshooting/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/es | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|español| [[::MythTV/Install/Troubleshooting/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/fa | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|فارسی| [[::MythTV/Install/Troubleshooting/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/fi | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|suomi| [[::MythTV/Install/Troubleshooting/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/fr | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|français| [[::MythTV/Install/Troubleshooting/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/gu | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|ગુજરાતી| [[::MythTV/Install/Troubleshooting/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/he | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|עברית| [[::MythTV/Install/Troubleshooting/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/hu | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|magyar| [[::MythTV/Install/Troubleshooting/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/id | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Bahasa Indonesia| [[::MythTV/Install/Troubleshooting/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/it | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|italiano| [[::MythTV/Install/Troubleshooting/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ja | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|日本語| [[::MythTV/Install/Troubleshooting/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ko | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|한국어| [[::MythTV/Install/Troubleshooting/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ksh | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Ripoarisch| [[::MythTV/Install/Troubleshooting/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/mr | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|मराठी| [[::MythTV/Install/Troubleshooting/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ms | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Bahasa Melayu| [[::MythTV/Install/Troubleshooting/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/nl | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Nederlands| [[::MythTV/Install/Troubleshooting/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/no | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|norsk| [[::MythTV/Install/Troubleshooting/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/oc | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|occitan| [[::MythTV/Install/Troubleshooting/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/pl | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|polski| [[::MythTV/Install/Troubleshooting/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/pt | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|português| [[::MythTV/Install/Troubleshooting/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ro | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|română| [[::MythTV/Install/Troubleshooting/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/ru | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|русский| [[::MythTV/Install/Troubleshooting/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/si | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|සිංහල| [[::MythTV/Install/Troubleshooting/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/sq | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|shqip| [[::MythTV/Install/Troubleshooting/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/sr | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|српски / srpski| [[::MythTV/Install/Troubleshooting/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/sv | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|svenska| [[::MythTV/Install/Troubleshooting/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/th | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|ไทย| [[::MythTV/Install/Troubleshooting/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/tr | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Türkçe| [[::MythTV/Install/Troubleshooting/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/vi | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|Tiếng Việt| [[::MythTV/Install/Troubleshooting/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/yue | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|粵語| [[::MythTV/Install/Troubleshooting/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/zh | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|中文| [[::MythTV/Install/Troubleshooting/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/zh-hans | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|中文(简体)| [[::MythTV/Install/Troubleshooting/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV/Install/Troubleshooting | UbuntuHelp:MythTV/Install/Troubleshooting | {{#if: | :}}MythTV/Install/Troubleshooting}}/zh-hant | • {{#if: UbuntuHelp:MythTV/Install/Troubleshooting|中文(繁體)| [[::MythTV/Install/Troubleshooting/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MythTV/Install/Troubleshooting|:MythTV/Install/Troubleshooting|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MythTV/Install/Troubleshooting/zh | | {{#ifexist: MythTV/Install/Troubleshooting/zh | | {{#ifeq: {{#titleparts:MythTV/Install/Troubleshooting|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MythTV/Install/Troubleshooting|1|-1|}} | zh | | }}
Trouble Shooting
Access denied for user: 'mythtv@localhost'
The most common reason for this problem is not properly setting up your group membership for the user you are trying to launch mythtv with.
- Are you in the mythtv group?
- You can check who is in the mythtv group by running
grep mythtv: /etc/group
- If you aren't in the mythtv group, add yourself to the group
sudo usermod -a -G mythtv USERNAME
Where USERNAME is the name of the user being added.
- After adding yourself to the group, remove ~/.mythtv and /home/mythtv/.mythtv and then log out/in.
rm ~/.mythtv -rf && rm /home/mythtv/.mythtv -rf
- If you are already in the group, try to remove ~/.mythtv and then try again.
rm ~/.mythtv -rf && rm /home/mythtv/.mythtv -rf
- When you installed, did you set a root mysql password? If so, you need to
sudo dpkg-reconfigure mythtv-database sudo dpkg-reconfigure mythtv-common
- Did you change your mysql mythtv password? If so you need to
sudo dpkg-reconfigure mythtv-common
- If you still can't connect, you can change the password.
mysql -u root mysql
You will then be asked for a password. the default password is blank so hit enter or if you have changed the root mysql password enter it. You will then see:
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 13 to server version: 5.0.15-Debian_0.dotdeb.1-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
you can set mythtv password to the default (mythtv):
UPDATE user SET Password=PASSWORD('mythtv') WHERE user='mythtv'; FLUSH PRIVILEGES;
Access denied for user: 'root@localhost'
Somehow, during setup your root password for mysql that you entered into mythtv doesn't match. Running
mythtv-setup
Will give you a chance to check the password. then in a terminal:
mysql -u root mysql
You will then be asked for a password. the default password is blank so hit enter or if you have changed the root mysql password enter it. You will then see:
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 13 to server version: 5.0.15-Debian_0.dotdeb.1-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
now to change the root password:
UPDATE user SET Password=PASSWORD('<password>') WHERE user='root'; FLUSH PRIVILEGES;
then do <ctrl> + 'd' to quite or type quit. You have now 'fixed' the password. It might be a good idea to run
/etc/mythtv/mysql.txt
and make sure that you update the password there as well.
Mythbackend isn't running at startup right after install
Typically this is caused by incorrect permissions on the directory where the backend will be saving your recordings. You can verify this to be the problem by attempting to restart the backend:
sudo /etc/init.d/mythtv-backend restart
Then checking that the backend successfully started:
ps -p `cat /var/run/mythtv/mythbackend.pid`
If you don't see output like:
PID TTY TIME CMD 30711 ? 00:00:00 mythbackend
check the log file for errors:
more /var/log/mythtv/mythbackend.log
The end of the log file will indicate exactly why the backend is no longer running. If it ends up being a permissions or ownership problem, just change the permissions and ownership of the recordings directory:
sudo chown mythtv.mythtv /var/lib/mythtv sudo chmod u=rwx,g=rwxs,o=rx /var/lib/mythtv
(This assumes that your directory for recordings is /var/lib/mythtv
. If you have the recordings stored somewhere else, be sure to replace /var/lib/mythtv
in the above command with that location.)
The end result is that the ownership and permissions should match /var/lib/mythtv
as it was set by the installer. (You might want to replace /var/lib/mythtv
with a symbolic link to your custom location if you are using a customized location.)
Ownership of NFS lockfile is wrong
After installing Mythbuntu over an existing Gutsy setup, mythbackend wouldn't start. The problem was, the permissions on mythtv/recordings/nfslockfile.lock were wrong. Somehow during the install process, owner was set to ntp, group to mythtv, and perms were 644. The fix:
sudo rm mythtv/recordings/nfslockfile.lock sudo /etc/init.d/mythtv-backend restart
Sound from live TV does not pause
Symptom: You can watch TV and hear the audio. But when TV is paused, the TV audio moves on. Sourse of problem: The audio signal from your TV tuner card is fed through a cable to your sound card, and played back directly. Solution: You need to mute this input for playback and enable it for capture. You can use the alsamixer utility to change these settings. Start alsamixer in a terminal, use left and right cursors to move to your TV audio input, which most likely is Line or CD (check your hardware manual and where the audio cable is connected); press SPACE to set it as the capture soure, and M to mute it (yes, mute it so that it won't appear directly in playback). You may also need to enable Capture as capture. Use up and down cursor to adjust volume. Once everything is set, press ESC to exit. This information is based on MythTV offical documentation.
Razzing/tinny/metalic sound
This happens with the following combination: Ubuntu 6.10, mythtv 0.20, software encoding tuner card, VIA 8237 chipset. The default sample rate is 32 kHz. However the VIA 8237 chipset only do well with 48 kHz. To solve the problem, open mythfrondend, go to Utilities/Setup -> Setup -> TV Settings -> Recording Profiles -> Software Encoders -> Live TV and change the audio sample rate to 48 kHz. Test effect. Then do the same to settings in Default, High Quality, Low Quality. This solution is based on the MythTV Wiki.
Unable to use Mythweb or phpmyadmin
If you are encountering errors where your web browser attempts to open a PHTML file rather than browse phpmyadmin or mythweb properly, you most likely mixed up the order of some installations and lost some dependencies along the way. Here is what this error typically looks like:
This is what happens when you try to browse to mythweb or phpmyadmin. |
To resolve the issue, you will need to install libapache2-mod-php5 or libapache2-mod-php4. Find out which one you have installed ( dpkg -l | grep php will show this).
PHP4
sudo apt-get install libapache2-mod-php4
PHP5
sudo apt-get install libapache2-mod-php5
data/tv_icons directory is not writable
sudo chmod 777 /usr/share/mythtv/mythweb/data/tv_icons
Mythbackend setup not saving settings
This problem is caused by a database setup error. Syptoms include capture card setting not saving, and a database error when finishing backend setup. To fix: In mySQL drop the data base mythconverg If not confident with mySQL install phpmyadmin, and you can do it from a web browser Open Synaptic Package Manager and search for myth-database. Mark package for re-installation, and apply changes. Run mythbackend setup again and problems should have gone.
Unable to Upgrade mythtv-backend (edgy to feisty)
My issue resulted in mythtv-backend being a broken package which prevented the upgrade from continuing. Carefully reviewing the log for the mythtv-backend upgrade revealed that the problem occured during the prerm script. It was attempting to run
invoke-rc.d mythtv-backend stop
.
This was failing (it could have been a manual edit to /etc/init.d/mythtv-backend in the past or a prior bug). To resolve, I replaced /etc/init.d/mythtv-backend with the version in the new mythtv-backend package and verified that
invoke-rc.d mythtv-backend start invoke-rc.d mythtv-backend stop
worked. Then the package and Ubuntu upgraded without any further issues Include(MythTV/Install/Troubleshooting/UPNP)
Fixing Capture Card Setup Errors
When removing or adding new capture cards in MythTV setup the database table can become corrupted- causing errors such as "Tuner x set to start on channel 0 which does not exist", etc. To fix this problem you will need your mysql mythtv user's password. If you do not know the password, you can find it in the frontend machine's main user's home directory:
$ cat ~/.mythtv/mysql.txt
Then:
- Run mythtv-setup
- Delete all video sources
- Delete all capture cards
- Exit mythtv-setup
- Open a terminal and do:
$ mysql mythconverg -u mythtv -p
When prompted, enter the mysql password- At the mysql prompt, do:
> truncate table capturecard; > truncate table cardinput; > quit
Then run mythtv-setup again and configure your capture card and video source(s).
Enable Digest Authentication in MythWeb
For those people who want to have MythWeb access from the open internet the Apache authentication should be enabled.
- Is the Apache Digest Authentication Module Enabled?
ls -A -l /etc/apache2/mods-enabled/ | grep auth_digest
If you see;
auth_digest.load -> ../mods-available/auth_digest.load
Then it is already enabled, if you do not see it then;
sudo a2enmod auth_digest
- Do you want to enable authentication only for MythWeb or for then entire Apache server?
- Secure MythWeb Only
sudo nano /var/www/mythweb/.htaccess
Uncomment the following;
# AuthType Digest # AuthName "MythTV" # AuthUserFile /var/www/htdigest # Require valid-user # BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
It should now look like;
AuthType Digest AuthName "MythTV" AuthUserFile /var/www/htdigest Require valid-user BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
- Secure the Entire Server
sudo nano /etc/apache2/sites-enabled/000-default
Change;
NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory>
to
NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> AuthType Digest AuthName "MythTV" AuthUserFile /var/www/htdigest Require valid-user BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On Options FollowSymLinks AllowOverride None </Directory>
- Make the Authentication File
Does the /var/www/htdigest file already exist?
- No
Using this command will overwrite an existing file. Be sure it does not already exist or know that it will be overwritten.
sudo htdigest -c /var/www/htdigest MythTV <User>
Where <User> is the name you want to use to login It will ask for the password to be set.
- Yes
sudo htdigest /var/www/htdigest MythTV <User>
Where <User> is the name you want to use to login It will ask for the password to be set.
- Restart Apache2
sudo /etc/init.d/apache2 restart
Disable the Screen Saver (Causes a Blank Black Screen After 10 Minutes)
Some people like having the screen saver and some do not, if you don't then here is how to disable it. The assumption here is that you followed the installation instructions for a non-desktop box. In this case you only have openbox and all of the setting are harder to get to. This is written to bring up the GUI for the screen saver on the main screen while MythTV is running. Run the shell commands either from an SSH session or Alt+F1 and the modify the GUI via either the main screen (If you have a mouse hooked up) or a VNC session to do it remotely.
- Screen Saver Settings
Change to the mythtv user;
sudo -H -s su mythtv
Switch to the bash shell;
bash
Set Display Paremeters
export DISPLAY=:0.0
Set the Screen Saver Preferences
gnome-screensaver-preferences
Disable the Screen Saver - Uncheck the following;
'''Activate screensaver when computer is idle'''
Click Close Get back to the default user session (exit bash shell, exit mythtv user, exit root user);
exit exit exit