confpub/vncroulette_setup.sh
2024-10-05 14:54:49 +00:00

6 lines
209 B
Bash

vncroulette() {
host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
echo "Connecting to ${host}..."
vncviewer "${host}"
}