![]() Give Syncthing a moment to get started up, and then open a browser from your regular computer. If you set up a VPN as covered in my OpenVPN post, you can always connect securely to the Pi and make any changes you need from there.Ĭlose nano, saving your changes (Ctrl-X, Y), and restart Syncthing from the command line. Technically, you could forward a port through your firewall and make Syncthing accessible from outside your house as well, but there’s no reason to do that. It should look something like this: Ĭhange the “127.0.0.1:8384”, which refers to the local machine, in this case the Pi itself, to “0.0.0.0:8384”, which means any machine on the local network. sudo nano ~/.config/syncthing/config.xmlįind the “gui” section. Press Ctrl-C in the terminal window to shut down Syncthing. Now that Syncthing has been run once, it has created a config file where we can make the same adjustments. If your Pi doesn’t boot to the desktop, or you’re doing this installation through a remote SSH session, then obviously the local browser is not going to be an option, but we can still make the required changes. You can decide to make up an entirely different user name, or just use “pi” and its password. We don’t want to leave it wide open to just anyone though, so fill in values for the “GUI Authentication User” and “GUI Authentication Password” as well. This will allow Syncthing to be administered from other computers on your home network. Click the “Actions” drop-down in the upper-right of the page, and then “Settings”. If you don’t mind remoting in to make changes, then you can just skip ahead, but if you’re like me, you’d like to connect directly from the browser on your regular computer. The only problem is that the UI is only available from a local browser running on the same machine as Syncthing. I’ll show an example of that a little later on. This web UI is very full-featured, and you’ll use it to set up folders that you want to sync between devices. If your Pi is hooked up to a monitor, and you’re running the desktop, then a browser window should open automatically, and in a few moments, the Syncthing web UI will appear. ![]() syncthing Configuring from a Local Browser Now we’re ready to start configuring Syncthing. Tell apt-get to update its list of repositories, and then install Syncthing sudo apt-get update Paste in the following deb syncthing releaseĮxit nano, saving your changes (Ctrl-X, Y). As with previous examples, I’ll create a separate file rather than just tacking onto the main sources.list file. Next, add the Syncthing repository to APT’s list of known sources by creating a new source list. This key is required in order for apt-get to install any packages that it was used to sign. Here, we’re downloading the key file from Syncthing’s own site, and installing it by piping it directly into apt-get with the “add” keyword. Download and install the signing key like this. Syncthing has its own repository and signing key, similar to a few of the packages we’ve installed previously. It seems that running both Resilio Sync and Syncthing at the same time works just fine, but you probably won’t need both. Look at both options and decide which you like better. Note: Make sure you check out the Resilio Sync post in this series as well. I’m using it to mirror my public share to my CrashPi. I’m just putting it out there as an option, because it’s easily installed on the Raspberry Pi, and has clients available for just about any platform you’d care to run it on. It’s a free and open-source project though, and offers most of the same functionality as Resilio Sync, although not as much a Resilio Sync with a Pro license. It’s another cloud synchronization program, very much like Resilio Sync, which I covered earlier in the series. Reading the instructions is one thing, but watching it done demystifies the whole process. If you have a Pluralsight subscription, please consider watching it. Self-Promotion: I have recorded this series as a screencast for Pluralsight: ![]() Please refer to the series Introduction for a list of all the different posts in the series. If you’ve started from something other than a non-NOOBS Raspbian image, then you’ll probably need to adjust for that. If you are just trying to add one thing to an existing system that was not built following this series, then I cannot promise that these instructions will work for you, although they probably will.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |