UxPlay

Installing UxPlay on Linux

This guide explains how to:

Install UxPlay and create Launch Script

  1. Open Terminal and run
sudo dnf install uxplay
  1. Create a folder for custom scripts. Fedora doesn’t always include a ~/bin folder by default, so create it:
mkdir -p ~/bin
  1. Create UxPlay script
nano ~/bin/start-uxplay.sh

In nano add 

#!/bin/bash
nohup uxplay >/dev/null 2>&1 &
  1. Save and Exit
  2. Make it executable
chmod +x ~/bin/start-uxplay.sh

Create desktop app launcher

  1. Create Directory
mkdir -p ~/.local/share/applications
  1. Create a launcher
nano ~/.local/share/applications/uxplay.desktop

In nano add

[Desktop Entry]
Type=Application
Name=UxPlay
Comment=Start the UxPlay AirPlay receiver
Exec=/home/YOURUSERNAME/bin/start-uxplay.sh
Icon=video-display
Terminal=false
Categories=AudioVideo;
  1. Save and Exit
  2. Make launcher executable
chmod +x ~/.local/share/applications/uxplay.desktop
  1. Refresh application database
update-desktop-database ~/.local/share/applications/

To Stop UxPlay simply run command in terminal

pkill uxplay

Run UxPlay as a systemd service

This method gives you:

 

Create a systemd service file

 

  1. Open Service file
sudo nano /etc/systemd/system/uxplay.service

In Nano Paste following command editing yoursuername

[Unit]
Description=UxPlay AirPlay Receiver
After=network.target

[Service]
Type=simple
User=YOURUSERNAME
ExecStart=/usr/bin/uxplay
Restart=on-failure

[Install]
WantedBy=multi-user.target
  1. Reload systemd
sudo systemctl daemon-reload

Optional: Enable auto start on boot

sudo systemctl enable uxplay

 

Systemd Commands for UxPlay

 

sudo systemctl start uxplay

sudo systemctl stop uxplay

sudo systemctl stop uxplay