19 lines
442 B
Bash
Executable File
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"
|