Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
vm_syncthing_lin [2022/05/17 10:16] – [Debian Bullseye] mb1591 | vm_syncthing_lin [2024/04/19 14:39] (aktuell) – gelöscht mb1591 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== vm-syncthing-lin.physik.privat ====== | ||
- | Virtual machine hosted on our ESX-Server: | ||
- | |||
- | FQDN: vm-syncthing-lin.physik.privat | ||
- | IP: 10.4.78.68 | ||
- | MAC: 00: | ||
- | ===== Administration ===== | ||
- | |||
- | ** Access Syncthing GUI in Browser ** | ||
- | |||
- | ssh -l root vm-syncthing-lin -X firefox http:// | ||
- | |||
- | ** Synced Folders ** | ||
- | |||
- | * / | ||
- | |||
- | The synced folder syncthing-osx on vm-syncthing-lin is set to **Send Only**.\\ The synced folders on the client devices are set to **Recieve Only**.\\ | ||
- | This means that changes are only synced from vm-syncthing-osx top-down to the clients. | ||
- | |||
- | |||
- | ** Show logs on vm-syncthing-lin ** | ||
- | |||
- | Log files for the syncthing service and the disovery services are availiable via systemd' | ||
- | |||
- | journalctl -f -u syncthing-discosrv | ||
- | journalctl -f -u syncthing@syncthing.service | ||
- | |||
- | ** IDs und URLs ** | ||
- | |||
- | Device ID: GD42MSP-F4LDLEK-WZLRDAN-VAKCLCA-CQG7VWI-LFFYS2S-6ACHZ6U-XTS55QZ | ||
- | Server Device ID: CGEGPGG-CDYSKXM-2GJ66WV-TWI5QIB-Y556QOB-KLBD4YR-ZRQC4TT-WF2TDA2 | ||
- | Server URL: https:// | ||
- | |||
- | ===== FAQ ===== | ||
- | |||
- | * What happens if nfs share disappears from / | ||
- | |||
- | |||
- | |||
- | |||
- | ===== Setup ===== | ||
- | |||
- | ==== checkmk integration ==== | ||
- | |||
- | __Location: ceckmk WebInfterace__ | ||
- | < | ||
- | Setup | Hosts | ITGroup | + Add Host | ||
- | Group Name: ITGroup | ||
- | Host Type: Server | ||
- | boot type: virtual | ||
- | os-group: linux-hosts | ||
- | server type: applicationserver | ||
- | </ | ||
- | |||
- | __Location: ltspmaster__ | ||
- | < | ||
- | DistAgent vm-syncthing-lin | ||
- | </ | ||
- | |||
- | ==== Syncthing ==== | ||
- | |||
- | < | ||
- | aptitude install syncthing firefox | ||
- | |||
- | groupadd -g 44834 sw-it | ||
- | groupadd -g 46202 syncthing | ||
- | adduser -uid 46202 --gid 44834 syncthing | ||
- | |||
- | systemctl enable syncthing@syncthing.service | ||
- | systemctl start syncthing@syncthing.service | ||
- | </ | ||
- | |||
- | |||
- | ==== Discovery Server ==== | ||
- | |||
- | aptitude install syncthing-discosrv | ||
- | | ||
- | systemctl enable stdiscosrv.service | ||
- | systemctl start stdiscosrv.service | ||
- | |||
- | ** Auto generated certificate and key files: ** | ||
- | |||
- | If no certificate and key is given, stdiscosrv automatically genereate cert.pem and key.pem in **/ | ||
- | | ||
- | :!: if the certificate and key under / | ||
- | | ||
- | | ||
- | ==== NFS ==== | ||
- | |||
- | aptitude install nfs-common | ||
- | |||
- | cat <<EOS >>/ | ||
- | fs.physik.privat:/ | ||
- | EOS | ||
- | |||
- | mount / | ||
- | ==== Debian Bullseye ==== | ||
- | |||
- | __Location: VMWare Webconsole__ | ||
- | < | ||
- | Debian Bullseye Basisinstallation | ||
- | English, Germany, German | ||
- | vm-synchting-lin.physik.privat | ||
- | 4GB Swap, 23GB root (ext4) | ||
- | Software selection: only SSH server & standard system utilities | ||
- | </ | ||
- | |||
- | __Location: Terminal__ | ||
- | < | ||
- | # SSH: enable root login | ||
- | ssh -l install vm-syncthing-lin | ||
- | su - root | ||
- | sed -i '/ | ||
- | systemctl restart sshd | ||
- | exit | ||
- | exit | ||
- | |||
- | # remove user: install | ||
- | ssh -l root vm-syncthing-lin | ||
- | deluser --remove-all-files install | ||
- | |||
- | # enable login via ssh-key | ||
- | mkdir -p /root/.ssh | ||
- | scp root@ltspmaster.physik.privat: | ||
- | |||
- | |||
- | apt install aptitude | ||
- | |||
- | cat<< EOS >>/ | ||
- | deb http:// | ||
- | deb-src http:// | ||
- | |||
- | # bullseye-updates, | ||
- | # see https:// | ||
- | # bullseye-updates, | ||
- | deb http:// | ||
- | deb-src http:// | ||
- | EOS | ||
- | |||
- | aptitude install vim ufw rsync | ||
- | |||
- | ufw allow from 10.4.78.0/ | ||
- | ufw allow from 10.5.77.0/ | ||
- | ufw allow from 10.5.78.0/ | ||
- | ufw allow from 10.5.81.0/ | ||
- | ufw enable | ||
- | |||
- | |||
- | |||
- | </ |