Difference between revisions of "General Troubleshooting Tips"

From MythTV Official Wiki
Jump to: navigation, search
m (shift link)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
=General Troubleshooting=
 
=General Troubleshooting=
 +
To display all output information:
 +
<pre>
 +
mythfrontend -v all
 +
</pre>
 
==Log Files==
 
==Log Files==
/var/log/mythtv/mythbackend.log
+
A good first step when things aren't working right is to take a look at the log files.  There are several that may help, depending on what problem you're having.  Some logs can be displayed from the [[Mythfrontend|frontend]], for others you'll need to either [[ssh]] into your box or open a terminal and cat the log so you can see it. 
==Process==
+
 
See User_Manual:Diagnosing_Problems
+
<pre>
See http://wilsonet.com/mythtv/fcmyth.php#ts
+
cat /var/log/mythtv/mythbackend.log
 +
cat /var/log/syslog
 +
cat /var/log/mysqld/mysqld.log
 +
</pre>
 +
 
 +
Also try executing <tt>dmesg</tt> which will show you messages from the kernel ring buffer (stuff generated during system boot).
 +
 
 +
==Resources==
 +
*[http://mythtv.org/docs/mythtv-HOWTO-22.html Section 22] of the manual on troubleshooting.
 +
*[[User Manual:Diagnosing Problems]]
 +
*The [http://wilsonet.com/mythtv/fcmyth.php#ts troubleshooting] section of Wilson's guide
  
 
==Remote Access==
 
==Remote Access==
 
===Terminal===
 
===Terminal===
PuTTY
+
[[Image:Putty.png]] PuTTY (Windows)
[Instructions...]
+
 
 +
Site: [http://http://www.chiark.greenend.org.uk/~sgtatham/putty/ http://www.chiark.greenend.org.uk/~sgtatham/putty/]
 +
 
 +
Download: [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]<BR>
 +
Direct Download (HTTP): [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe]<BR>
 +
Direct Download (FTP): [ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/x86/putty.exe ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/x86/putty.exe]<BR>
 +
RSA Signature: [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.RSA http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.RSA]<BR>
 +
DSA Signature: [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.DSA http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.DSA]<BR>
 +
 
 +
 
 +
Ensure your Myth box is running a SSH server, for example, [http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&sektion=8 sshd] - [http://www.openssh.com/ openSSH] SSH daemon.  In ubuntu, you would use 'apt-get' or 'Synaptic Package Manager' to install 'openssh-server.'
 +
 
 +
Open Putty
 +
(location of Putty)\putty.exe
 +
 
 +
Place Hostname or IP address of your myth box in the 'Host Name (or IP address)' field.  Select SSH as the protocol. Then click 'Open.'<br>
 +
[[Image:putty_configuration_session_ip-address_and_protocol.png]]
 +
 
 +
On your first time accessing the server, verify the fingerprint of your myth box and select 'Yes.'
 +
[[Image:putty_server_host_key_cache_request.png]]
 +
 
 +
You will then be prompted to provide authentication to access your myth box.
 +
 
 
===File Browsing===
 
===File Browsing===
WinSCP
+
[[Image:Winscp.png]] [http://winscp.net/eng/index.php WinSCP] is an open source free SFTP client for Windows using SSH.  It is a very convenient tool for remotely accessing the file system on a mythtv box from windows.  The program can be installed or run as a stand alone executable.
[Instructions...]
+
 
 
===Graphical===
 
===Graphical===
VNC
+
====VNC====
[Instructions...]
+
This will enable you to view the graphical desktop of your Myth machine over the network without having to plug a monitor into the back.
 +
To run VNC, emerge it and review the documentation at http://realvnc.com
 +
You will also want to download a VNC client to the desktop you will be working from.
 +
Remotely login to the Myth box, then run VNC
 +
#vncserver
 +
Run the VNC client, and specify the IP address and display
 +
192.168.1.102:1
 +
Then enter your password. You should be faced with a simple graphical desktop. To run setup, simply run
 +
#mythtv-setup
 +
You may also want to see what is seen on the TV
 +
#mythfrontend
 +
Now you will not have to be running back and forth between the TV room and computer room! ;)
 +
====NX====
 +
NX is another remote display technology similar to VNC.
 +
 
 +
[http://www.nomachine.com/ NoMachineNX] provides a free windows NX client.
 +
 
 +
[http://freenx.berlios.de/ FreeNX] is an open source linux NX server
  
 
[[Category:Troubleshooting]]
 
[[Category:Troubleshooting]]

Latest revision as of 20:41, 12 March 2011

General Troubleshooting

To display all output information:

 mythfrontend -v all

Log Files

A good first step when things aren't working right is to take a look at the log files. There are several that may help, depending on what problem you're having. Some logs can be displayed from the frontend, for others you'll need to either ssh into your box or open a terminal and cat the log so you can see it.

cat /var/log/mythtv/mythbackend.log
cat /var/log/syslog
cat /var/log/mysqld/mysqld.log

Also try executing dmesg which will show you messages from the kernel ring buffer (stuff generated during system boot).

Resources

Remote Access

Terminal

Putty.png PuTTY (Windows)

Site: http://www.chiark.greenend.org.uk/~sgtatham/putty/

Download: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Direct Download (HTTP): http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
Direct Download (FTP): ftp://ftp.chiark.greenend.org.uk/users/sgtatham/putty-latest/x86/putty.exe
RSA Signature: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.RSA
DSA Signature: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe.DSA


Ensure your Myth box is running a SSH server, for example, sshd - openSSH SSH daemon. In ubuntu, you would use 'apt-get' or 'Synaptic Package Manager' to install 'openssh-server.'

Open Putty

(location of Putty)\putty.exe

Place Hostname or IP address of your myth box in the 'Host Name (or IP address)' field. Select SSH as the protocol. Then click 'Open.'

Putty configuration session ip-address and protocol.png

On your first time accessing the server, verify the fingerprint of your myth box and select 'Yes.'

Putty server host key cache request.png

You will then be prompted to provide authentication to access your myth box.

File Browsing

Winscp.png WinSCP is an open source free SFTP client for Windows using SSH. It is a very convenient tool for remotely accessing the file system on a mythtv box from windows. The program can be installed or run as a stand alone executable.

Graphical

VNC

This will enable you to view the graphical desktop of your Myth machine over the network without having to plug a monitor into the back. To run VNC, emerge it and review the documentation at http://realvnc.com You will also want to download a VNC client to the desktop you will be working from. Remotely login to the Myth box, then run VNC

#vncserver

Run the VNC client, and specify the IP address and display

192.168.1.102:1

Then enter your password. You should be faced with a simple graphical desktop. To run setup, simply run

#mythtv-setup

You may also want to see what is seen on the TV

#mythfrontend

Now you will not have to be running back and forth between the TV room and computer room! ;)

NX

NX is another remote display technology similar to VNC.

NoMachineNX provides a free windows NX client.

FreeNX is an open source linux NX server