Sources: https://github.com/irtimmer/moonlight-embedded
HOWTO: http://embedded-software-architecture.com/?page_id=140
Credits: https://github.com/RoelofBerg/moonlightpisteambox
Assumption : Installation as pi user.
$ {
sudo apt update && sudo apt dist-upgrade -Vy &&
echo "deb http://archive.itimmer.nl/raspbian/moonlight $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/moonlight.list &&
wget -qO - http://archive.itimmer.nl/itimmer.gpg | sudo apt-key add - &&
sudo apt update && sudo apt install -y wakeonlan moonlight-embedded &&
sudo usermod -a -G video $(id -un);
}
$ {
mkdir git && cd git &&
git clone [email protected]:link-webcreations/moonlight-config.git &&
cd ~/git/moonlight-config &&
chmod +x ./autostart.sh &&
moonlight pair 192.168.1.221;
}
$ ~/git/moonlight-config/autostart.sh
$ sudo -i -u pi sh -c "~pi/git/moonlight-config/autostart.sh | sudo tee /dev/tty1 > /dev/null"
Note: Just change pi with the user autoconnected at boot on the TV.