FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

How to start uxplay on a remote host (like raspberry pi) with ssh #98

Closed fduncanh closed 2 years ago

fduncanh commented 2 years ago

This answers issue http://github.com/antimof/UxPlay#92

To start uxplay on a remote host (e.g. a raspberry pi) by ssh:

ssh user@raspberrypi
export DISPLAY=:0
nohup uxplay [options] &

DISPLAY=:0 displays the video (and renders sound) on the remote host.

nohup = "no hang-up" keeps uxplay alive when the ssh session is terminated.

The terminal output will be saved to nohup.out on the remote host.

maybe you can send it to /dev/null instead ?
checkout man nohup.

monomycelium commented 2 years ago

Thank you for that swift response. It works just like I wanted it to. Is there a way I can start UxPlay as a Linux service or start it automatically?

fduncanh commented 2 years ago

It was a good question. I added the answer to the README see #59