Hello guys.
I ran into a problem.
Backstory is I am helping a charity with IT related stuff and a while ago they bought nearly 100 Windows Tablets for their external workers.
There is only Windows 10 Home installed so the administration of these tablets is an absolute nightmare.
I wanted to come up with a cheap solution for some simple tasks and created a VM from where i can publish Tools/Scripts and other stuff which run on the tablets via task scheduler.
I set up my VM and tested it on one tablet and all worked fine and dandy.
Then it struck me. I wanted to image this tablet and distribute this image at their annual meeting. But when I put this image on many tablets they all end up with the same ID and I don´t think that´s going to fly.
Has anyone with more knowledge of Syncthing an idea how to solve this problem?
Yes, youâll need a separate ID and keys for each machine.
You can create all those 100 instances locally in advance, prepating syncthingâs âdataâ folders to be deployed for each machine.
Keep in mind that once youâll have all the IDs, youâll need to link their configs in the way you want.
It might still be a good idea, to pre-create targeted configs, but there is a way to ensure different IDs without pre-creation: In the config, remove all references to your own device ID and delete key.pem and cert.pem. When a client starts with such a config, a new device ID will be generated.
So if I understand you correctly I delete references to the local ID in config and delete key.pem and cert.pem.
I shut down the tablet and pull an image with clonezilla.
I put this image on the other tablets and on first start they will generate new key.pem and cert.pem and make the changes to config(I installed syncthing as service with nssm)?
The shared folder I configured will survive this stunt so I âonlyâ have to accept the incoming connections on my âserverâ from the different tablets as soon as they have internet connection?
Accepting the connections on the server will be necessary. If you want everything fully working immediately without confirmation, youâll need to generate configs with the appropriate IDs already set in place. As you are talking about a hole lot of devices, that may be a good thing to do.
I found myself in a similar situation (generating new IDs with existing configs and shared folders) but for a completely different reason.
I already had a particular machine setup and syncing. I wanted it to have a different ID because itâs icon looked similar to another machine. A small thing, I know, but it made my eye twitch
I shut down Syncthing on the machine in question, deleted key.pem and cert.pem (with backups of course) and fired up Syncthing again. When started, the old ID showed as a different node, and I removed it (I could have done this manually before starting). Once the new ID requests were accepted on the other machines, things resumed as if nothing had happened - but with a new ID and icon. Very easy. Syncthing never fails to make my life easier