Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
syncthing [2022/05/10 13:47] – angelegt mb1591 | syncthing [2022/05/11 15:16] – alte Version wiederhergestellt (2022/05/10 11:47) mb1591 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== | + | ====== |
- | Virtual machine hosted | + | ===== Access GUI on vm-syncthing-lin ===== |
- | FQDN: vm-syncthing-lin.physik.privat | + | __Location: Terminal__ |
- | IP: 10.4.78.68 | + | |
- | MAC: 00: | + | |
- | ===== Administration ===== | + | |
- | + | ||
- | ** Access Syncthing GUI in Browser ** | + | |
ssh -l root vm-syncthing-lin -X firefox http:// | ssh -l root vm-syncthing-lin -X firefox http:// | ||
- | ** Synced Folders ** | + | __Location: Firefox__ |
- | | + | |
- | 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. | ||
+ | ===== Access GUI on MacOS Clients ===== | ||
+ | | ||
+ | __Location: Terminal__ | ||
- | ** Show logs on vm-syncthing-lin ** | + | # tunnel port 8384 via ssh |
+ | ssh -N -L 8384: | ||
- | Log files for the syncthing service and the disovery services are availiable via systemd' | + | __Location: Local browser__ |
- | | + | |
- | | + | |
- | ** IDs und URLs ** | ||
- | Device ID: GD42MSP-F4LDLEK-WZLRDAN-VAKCLCA-CQG7VWI-LFFYS2S-6ACHZ6U-XTS55QZ | + | ===== GUI Configuration ===== |
- | Server Device ID: CGEGPGG-CDYSKXM-2GJ66WV-TWI5QIB-Y556QOB-KLBD4YR-ZRQC4TT-WF2TDA2 | + | |
- | Server URL: https:// | + | |
- | ===== FAQ ===== | + | __Location: |
- | + | ||
- | * What happens if nfs share disappears from / | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ===== Setup ===== | + | |
- | + | ||
- | ==== 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 | + | |
| | ||
- | | + | |
- | | + | |
- | + | | |
- | ** Auto generated certificate and key files: ** | + | |
- | + | Listen Addresses: tcp4://:22000 | |
- | If no certificate and key is given, stdiscosrv automatically genereate cert.pem and key.pem in **/var/lib/syncthing/ | + | |
+ | ==== Server (vm-syncthing-lin) ==== | ||
| | ||
- | :!: if the certificate and key under /var/lib/syncthing/disosrv changes then the DEVICE ID of the discovery server changes also | + | Folders | syncthing-osx | Edit | |
+ | General | ||
+ | Folder ID: synchting-osx | ||
+ | Folder Path: /home/syncthing/syncthing-osx | ||
+ | GUI | ||
+ | [+] Use HTTPS for GUI | ||
+ | Advanced | ||
+ | Full Rescan Interval (s): 20 | ||
+ | Folder Type: Recieve Only | ||
+ | |||
+ | ==== Clients (MacOS) ==== | ||
| | ||
+ | Folders | syncthing-osx | Edit | | ||
+ | General | ||
+ | Folder ID: synchting-osx | ||
+ | Folder Path: / | ||
+ | GUI | ||
+ | [+] Use HTTPS for GUI | ||
+ | | ||
+ | Full Rescan Interval (s): 2600 | ||
+ | Folder Type: Send Only | ||
| | ||
- | ==== NFS ==== | ||
- | aptitude install nfs-common | ||
- | cat <<EOS >>/ | + | ===== Macos ===== |
- | fs.physik.privat:/ | + | |
- | EOS | + | |
- | + | ||
- | mount / | + | |
- | ==== Debian Bullseye | + | |
< | < | ||
- | __VMware WebConsole__ | + | cp / |
+ | cp / | ||
+ | launchctl load / | ||
+ | launchctl unload / | ||
+ | </ | ||
- | Install | ||
- | # Select a language | ||
- | Language: English | ||
- | # Select your location | + | < |
- | | + | __Location: WebInterface on Syncthing client__ |
+ | </ | ||
- | # Configure locales | ||
- | Country to base default locale settings on: United States - en_US.UTF-8 | ||
- | # Configure the keyboard | + | < |
- | | + | Always Local nets: 10.0.0.0/ |
- | # Loading additional components .... | + | Global Announce Enabled: + |
- | # <network configuration> | + | GlobalAnnounce Servers: https:// |
- | # Configure the network | + | Listen Addresses: tcp4://:22000 |
- | Hostname: vm-syncthing-lin | + | </ |
- | Domain name: physik.privat | + | |
- | # Set up users and passwords | ||
- | Root password: *** | ||
- | Re-enter password to verify: *** | ||
- | |||
- | # Set up users and passwords | ||
- | Full name for the new user: install | ||
- | Username for your account: install | ||
- | Choose a passowrd für the new user: *** | ||
- | Re-enter password to verify: *** | ||
- | # Partition disks | + | ===== Path ===== |
- | Partitioning method: Manual | + | |
- | SCSI1 (0,0,0) (sda) - 26.8 GB VMware Virtual disk | + | |
- | Create new empyt partiton table on this device? < | + | |
- | #1 primary | + | |
- | #2 primary 22.8 GB f ext4 / | + | |
- | Finish partitioning and write changes to disk | <Yes> | + | |
- | # Installing the base sytem ... | + | < |
+ | launchctl unload / | ||
+ | rm / | ||
+ | rm -r / | ||
+ | rm / | ||
- | # Configure the package manager | + | rm -r / |
- | Scan extra installation media? < | + | |
- | Use a network mirror? <Yes> | Germany | ftp.uni-stuttgart.de | < | + | |
- | # Configuring apt ... | + | </code> |
- | + | ||
- | # Select and install software ... | + | |
- | + | ||
- | # Configuring popularity-contest | + | |
- | Participae in the package usage survey? | + | |
- | + | ||
- | # Software selection | + | |
- | [ ] Debian desktop environment | + | |
- | [ ] ... GNOME | + | |
- | [...] | + | |
- | [*] SSH server | + | |
- | [*] standard system utilities | + | |
- | + | ||
- | # Install the GRUB boot loader | + | |
- | Install the GRUB boot loader to your primary drive? < | + | |
- | Device for boot loader installation: | + | |
| | ||
- | # Finishing the installation | + | ===== CheckMK ===== |
- | Installation complete. < | + | |
- | <system reboots> | + | <code> |
+ | mkdir -p / | ||
+ | cd / | ||
+ | ln -s / | ||
+ | cd /etc | ||
+ | ln -s / | ||
+ | ln -s / | ||
- | # 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: | ||
+ | ===== Docs ===== | ||
- | apt install aptitude | + | * Global Discovery: https:// |
- | cat<< EOS >>/ | ||
- | deb http:// | ||
- | deb-src http:// | ||
- | |||
- | # bullseye-updates, | ||
- | # see https:// | ||
- | # bullseye-updates, | ||
- | deb http:// | ||
- | deb-src http:// | ||
- | EOS | ||
- | |||
- | aptitude install vim ufw | ||
- | |||
- | ufw allow from 10.4.78.0/ | ||
- | ufw allow from 10.5.81.0/ | ||
- | ufw enable | ||
- | |||
- | |||
- | |||
- | </ |