Skip to content

Instantly share code, notes, and snippets.

@ezbik
ezbik / syncthing-setup-exclusively-with-CLI.md
Last active February 22, 2023 17:36 — forked from Jonny-exe/syncthing-setup-exclusively-with-CLI.md
syncthing setup exclusively with CLI

After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.

This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B

Machine A Machine B
@ezbik
ezbik / gist:4d43f66771aae9475ef7d36cc20a3aa0
Created September 14, 2022 02:40
anydesk installation + password set unattended (tested on Anydesk 6.2.0)
# define desktop user name
UU=vagrant
rm -rf /home/$UU/.anydesk
rm -rf /etc/anydesk
apt purge anydesk
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
apt update
#!/bin/bash
_usage() {
if [ $# -lt 3 ]; then
echo "Usage: $0 user_id user_pw router_ip action"
printf "\n"
echo "Example: $0 admin p455w0rd 192.168.1.1 <list_sms|reset_ip>"
exit 1
fi
}
==== Ceph tests on my laptop:
NODE FS: 60.25Mb/sec
Ceph backed CT: 6Mb/s ---- (10x slower!)
Local FS backed CT: 30Mb/s
Description: Full native support of Ceph in Proxmox. Ceph is built on top of 2nd drive.
+ Snapshots: yes
+ HA compatible - yes