Files
RDtop/scripts/write-rustdesk-config.sh
2026-05-15 23:51:09 +01:00

19 lines
442 B
Bash
Executable File

#!/bin/bash
set -e
CONFIG="/root/.config/rustdesk/RustDesk2.toml"
printf "%s\n" \
"rendezvous_server = 'localhost:21116'" \
"custom-rendezvous-server = 'localhost:21116'" \
"key = 'JDSXd9sxN6Y7mIzu3krSpPTTc4yjChfqpzgIH5fl9Iw='" \
"nat_type = 1" \
"serial = 0" \
"unlock_pin = ''" \
"" \
"[options]" \
"local-ip-addr = '2.59.219.61'" \
> "$CONFIG"
chmod 600 "$CONFIG"
echo "Config written to $CONFIG"