Use an iPhone to issue a Wake-on-LAN command from a Raspberry Pi to a Dell Mini PC.
The Dell Pro Mini uses 10-20 watts on idle, while the Raspberry Pi 3B+ uses <2 watts on idle. Combined with Sunshine/Moonlight from LizardByte, this enables an on-demand, power-efficient solution to using a remote desktop PC without leaving the mini PC on 24/7.
Simply tap on an app shortcut on the iPhone’s home screen to wake the PC and then launch the Moonlight app to start the remote desktop session.
ipconfig /allncpa.cpl and press Enter to open Network ConnectionsOtherwise, your router may assign a different IP address and the SSH login information saved to your iPhone will need to be updated
Install brute-force blocker:
apt install fail2ban
Edit the configuration file to increase penalties:
sudo nano /etc/fail2ban/jail.local
Add this:
[sshd]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
findtime = 10m
bantime = 1w
bantime.increment = true
bantime.factor = 4
This configuration:
# Enable autostart
sudo systemctl enable ssh
# Launch SSH
sudo systemctl start ssh
To undo, simply run sudo raspi-config in the Terminal again and choose ____.
To launch the desktop environment from the Terminal, type startx.
sudo apt update
sudo apt install wakeonlan
# Test function to wake PC from the shutdown state
wakeonlan <MAC_ADDRESS>
Output:
Sending magic packet to 255.255.255.255:9 with <MAC_ADDRESS>
Method A (recommended)
Use the iPhone to relay an SSH wake command to the Raspberry Pi. You can tap on the icon from the home screen or say “Hey Siri, <Wake Dell Pro Mini | title of icon>”.
wakeonlan <MAC_ADDRESS>Method B
wakeonlan <MAC_ADDRESS> command manually or create a script:
# Create the file
nano wake.sh
# Add command
wakeonlan <MAC_ADDRESS>
# Make the file executable
chmod +x wake.sh
# Launch the script
./wake.sh