![]() ![]() The following screenshot shows, how to find out the ip-address of syncthing. Now it’s time to open syncthing and configure it. Installation Install the syncthing package. Pick the appropriate installation option on Syncthing’s website, and follow the instructions. All transit communications between syncthing nodes are encrypted using TLS and all nodes are uniquely identified with cryptographic certificates. Then enter the following command the get the permissions right: Syncthing is an open-source file synchronization client/server application written in Go, which implements its own - equally free - Block Exchange Protocol. To manually create the directories, enter the jail, then you can create directories with the following command: If the destination addresses in the jails do not exist, tick the “Create directory”-box. The destinations are directories in the jails that get mapped to the storages outside the jails. Edit: actually getFreePort () seems to choose a random high port. It can be changed at runtime using the -config flag. Syncthing will try the next port if 8080 is in use, I think it tries up to port 8089. The config location defaults to HOME/.config/syncthing (Unix-like), HOME/Library/Application Support/Syncthing (Mac), or LOCALAPPDATA\Syncthing (Windows). If you did not create a dataset before, you either have to do this now or create normal directories as sources with mkdir on the server. Syncthing also has a database, which is often stored in this directory too. The source is the storage or dataset you created in the first place. You’ll then have to enter the source and destination addresses. To add the storage, go to Jails, click the plus next to the plugin, open the “Storage” tab and click “Add storage”. Since jails are separate systems in the server-OS itself, they cannot by default access other parts of your system. Now we’ll have to add the dataset to the syncthing-plugin, so it can access the storage. To connect to them, enter “jexec # tcsh” where # is the number of the ~# jls To enter the syncthong, type “jls” on the command-line. If Putty cannot connect, you probably didn’t use the correct IP-address or you forgot to enable SSH. ![]() Tick the box that says “Set permission recursively” so all other folders and files in the volume will have the same permissions. There, set the Owner (user) to “nobody”, the Owner (group) to “nogroup” and activate all buttons in the mode. To change permissions, click on the “Storage” tab, select the volume you want to edit and click the first button in the bottom line that displays hard disks and a key. You should only do this, if you trust the users of your network. The best way is to set the ownership of the storage to nobody and give read/write/execute permissions to everybody. Since there probably many users and computers, that want sync their data to your storage, you’ll have to configure the permissions for it. You can ignore all other options for now, as they are for advanced users. There, set the name for the dataset (e.g. ![]() To create a dataset click on your created storage, then hit the “Create dataset”-button (the one that looks like an excel-document with a plus). ![]()
0 Comments
Leave a Reply. |