Ssh Forwarding

From MythTV Official Wiki
Jump to: navigation, search

Important.png Note: The correct title of this article is ssh Forwarding. It appears incorrectly here due to technical restrictions.


If you have a MythTV backend system that does not have a convenient display attached, does not have a keyboard or is inaccessible, you can still run GUI applications like mythtv-setup from another computer on the network. Install ssh server on the backend. The following command applies to Ubuntu or Debian derivatives:

sudo apt-get install openssh-server

In the computer you will connect from, create in your home directory the file .ssh/config with the following lines:

ForwardX11 yes
ForwardX11Trusted yes
Compression yes

The .ssh directory and the config file must have the following permissions settings:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/config

Now you can connect to your backend using ssh. In the ssh session you can run mythtv-setup or any GUI program and its output will display on the remote computer's screen. On MythTV versions before v29, to avoid issues with OpenGL, add the ThemePainter option override, as follows:

mythtv-setup -O ThemePainter=qt &

On MythTV v29 and later, the GUI automatically switches to qt when run through ssh.