1/11/2024 0 Comments Install syncthing ubuntu![]() Refresh the Web interface on the first device, you will see the following message. Now the second device will try to connect to the first device. Then paste the Device ID and give the device it a name. The QR code, which is also the device ID, is used for configuring Syncthing on smartphones.Ĭopy the device ID, then open the Syncthing Web interface of the second device, click Add Remote Device on the bottom-right corner. You will see the device ID, which is a long string of letters and numbers. In the Syncthing web interfce, click on Actions > Show ID on the upper-right corner. Once we have two devices running Syncthing, we can start syncing files between them. You can also set up a reverse proxy with Nginx or Apache in order to access the web UI, which is explained later in this tutorial. You will be asked to set a username and password for protect the Syncthing web interface. Obviously you need to use the Debian server’s real IP address. Now type server-ip-address:8384 in the web browser to access the Syncthing Web interface. Restart Syncthing for the changes to take effect. And change 127.0.0.1 to the public IP address of the Debian server. nano /home/ username/.config/syncthing/config.xmlĬhange tls="false" to tls="true", so the HTTP traffic will be encrypted. If you install Syncthing on a remote Debian server, you can enable remote access to Syncthing web interface by editing the configuration file. You can add other Syncthing devices and share folders with them. Now in your Web browser’s address bar, type 127.0.0.1:8384 to access the Syncthing Web interface. sudo ufw allow 22000/tcp Accessing the Debian Syncthing Web Interfaceīy default, Syncthing service listens on 127.0.0.1:8384. If your computer or server enabled the UFW firewall, then you need to allow port 22000 with the following command. Syncthing uses port 22000 to communicate with peers. Go to Syncthing download page and install Syncthing on other operating systems like Windows, macOS, BSD, Android. The main config file is /home/username/.config/syncthing/config.xml. The syncthing systemd service creates configuration files under /home/username/.config/syncthing/ and a folder /home/username/Sync as the default sync folder. We can see that Syncthing autostart is enabled and it’s running. Hint: If the above command doesn’t quit immediately, press Q to gain back control of the terminal. sudo systemctl start rviceĬheck status systemctl status rvice Now we can start the Syncthing service with the following command. Created symlink from /etc/systemd/system// to /lib/systemd/system/ ![]() The above command will create a symbolic link that points to the file. Replace username with your actual username. Enable syncthing to auto start at boot time by running the below command. Under /lib/systemd/system/ directory, you will find a file. The official Syncthing deb package ships with the needed systemd service file. Sudo apt-get install syncthing Using Systemd to Set Up Syncthing as a System Service Update local package index and install syncthing on Debian. echo "deb syncthing stable" | sudo tee /etc/apt//syncthing.listīecaue this repository uses https, we need to install the apt-transport-https package, so the APT package manager can establish https connection with this repository. Then add the official deb repository with the following command. If you see OK in the terminal, that means the GPG key is successfully imported. Use curl to download the GPG key then import the key with apt-key. Install Syncthing on Debian via Official Deb Repository All your data is encrypted with TLS when transmitting between your devices. Syncthing does not upload your files to a central server like Nextcloud, but exchange your data directly between your devices. The creation, modification or deletion of files on one machine will automatically be replicated to your other devices. It’s an open-source alternative to the popular Resilio Sync (formerly known as BitTorrent Sync) application. Syncthing is a free, peer-to-peer continuous file synchronization program that allows you to synchronize your files across multiple devices, available for Linux, BSD, macOS, Windows, Android and Solaris. This tutorial will show you how to install Syncthing on Debian.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |