Today I will show you a very easy way for you to create a simple way to share files and at the same time a data backup using Syncthing, all within your own home!
O Syncthing An open source platform that allows you to create a decentralized file sharing network, it has very interesting applications within a company, especially small businesses, and inside your home.
If you often use the same files to work on one more computer, and use services like the popular Dropbox to sync them, it's easy to understand how Syncthing it works.
Imagine you have one Notebook it is a Desktop At home, imagine that you use Dropbox on both with the same account, so files are synchronized between the two machines. Files go from your Notebook to the Dropbox server and from the Dropbox server to your Desktop, or vice versa, depending on where you put the file first.
Optimal operation, this even allows you to access files from any device, including your Smartphone, just have internet, however, for certain sensitive information, it may be interesting to have a private sharing system and to which the Syncthing goes into.
No Syncthing …
… there is no central server like Dropbox, sharing is done from one machine to another and you choose which hard drive your files will be in some cases because it is part of your local network, the file transfer will be very faster than through Dropbox or any other.
How do you install Syncthing on your computer?
Synchting is a text-line utility and works like a local file server, you could create a Samba server too just in case, but Syncthing besides having a nice interface doesn't require much experience to set up and still mirrors the files. so you have backup copies.
Although Syncthing is decentralized, nothing prevents you from using an old file server machine, that's your choice. I'm still going to make a video about FreeNAS for home solutions, but for now let's stick with Syncthing.
Through from the official website You can download the installers for Windows, Linux, MacOS and mobile devices, for Ubuntu and its derivatives, there are several different ways to install.
1 – You can use the own file for "Linux" available on the site, that a "generic" file, just extract and double click and a web interface inside your default browser will open.
3 – Through a Snap package, you can find it both through the terminal and through Ubuntu Software.
snap install syncthing
No matter which form you choose to install, it is good to know that there is a GTK graphical interface for the Linux distros and another Windows client:
To follow up on the explanations, you use the simple way of working, using the file provided on the site for "Linux 64 bits" and using Ubuntu for example, no need to install additional packages or anything like that.
When downloading the syncthing file, you have a package packed in tar.gz, just extract it to a folder of your choice, I recommend that you extract it into your Home for the sake of organization, then, for ease, rename the folder to syncthing.
Inside the folder, just double click on the file syncthing.
A few moments after you double-click the file, your default browser should open showing Syncthing's interface, note its IP address and port, and IP will normally be localhost itself.
I recommend that you favorite the address to access it through the browser easily, without having to decorate IP / Port, of course, if you did not choose to download the interface in GTK or some other, I found it more interesting to manage from the browser itself, but your choice .
For what Syncthing boot together with system as soon as you log in, just add the path to his executable (if you followed my example it is inside your home) to Ubuntu's "login apps".
By adding only the executable address, as soon as you log in a browser will open with the Syncthing interface, if you just want the process to start without a browser being opened every time, add a parameter to the end of the command like this. : " -in-browser"without the quotes.
In my example it would be:
/ home / dionatan / syncthing / syncthing (to open the browser at login).
/ home / dionatan / syncthing / syncthing -no-browser (without opening browser at login).
You can always see if Syncthing processes are running by looking at "System Monitor"
Syncing and sharing files
All Syncthing configuration can be done via the web interface, the default folder Syncthing shares the "/home / your_user / Sync /", but you can add and remove folders to your liking.
All Syncthing interface in English, so read it carefully to choose all the details you want.
To share this folder with another computer within your network and make them synchronize you need to install Syncthing on the other machine to be synchronized. Then it is necessary to create an identification by both.
In my case, I am sharing the "Sync" folder of my Notebook with my Desktop, so I will refer to them this way for you to understand better.
On my notebook when opening Syncthing web interface I will click the "Add remote device"
In the window that opens on the Notebook I must inform the data of the remote device that will connect to it, in this case, my Desktop.
In the screen above, there are several options that can be configured, so read the options carefully, but I want to highlight 3 most important and essential.
1 – The ID of the device that will connect (in this case the PC), below I show how you get it.
2 – An identification name for the connected device.
3 – Check to share the default Syncthing folder, in case the "Sync" folder inside Home, if you add more folders they will appear here, check all the ones you want this remote device to access.
Now on the Desktop, we'll need to get his Syncthing ID to add to the Notebook settings (from the previous image).
On the desktop, we click on the "Aes" menu and then "Show ID".
A screen like the one below will open with a code, this code we must type in the "Device ID", highlighted as "item 1" in the previous image on the Notebook. This will make Notebook Syncthing recognize that of Desktop.
You should repeat the process in reverse, going to the Notebook, taking its ID and adding the device to the Desktop, so there will be sync between them. The QR code that appears is for you to add the client to your Android, if you want to use Syncthing for it, as I commented at the beginning of the article, there is also a version for mobile devices available on the official site, Google Play and F-Droid.
In order for Syncthing to start automatically on the desktop, you must also add it to "Session Apps", or equivalent, depending on the system you are using.
Synthing works like this cross-platformSo you can sync data between Windows, Linux, Mac, BSD, Android, etc., privately and using just one tool.
There are so many possibilities for Syncthing, it has so many functions that it is difficult to summarize in an article like this (which is already a bit long), so I urge you to read his documentation, you will find it in the footer of Web Interface In addition to Syncthing, you can also explore the menu settings, you can even create users, set passwords and a whole bunch of options ranging from advanced stuff like Firewall and Proxy configuration to a simple theme change. of the interface for a darker tones.
I hope the tip is useful for you to keep your files exactly where you want until next time!
_____________________________________________________________________________ See any errors or would you like to add any suggestions to this article? Collaborate, click here.