The sys admin's daily grind – Pulse
Here and There
Equal treatment, as sys admin Charly so boldly proposes, should be the norm. What he really wants is a free tool to sync user data across multiple computers.
In the past, I have covered various approaches to keeping files synchronized across two or more computers. BitTorrent Sync [1] does a great job here, but it's not open source. Pulse [2] is a GPLv3 tool knocking on the door of all data duplicators. It is a Syncthing [3] fork and very popular despite its beta status.
The Pulse software is available on Linux and on OpenBSD, NetBSD, OS X, Windows, and Android. The Linux clients include versions for ARMv5, v6, and v7, which means that Pulse also runs on the Raspberry Pi and its close relatives. Communication between the computers is secured by TLS encryption with Perfect Forward Secrecy [4].
When first launched, Pulse generates keys and certificates, creates the ~/sync
directory, and launches a web server on port 8080, which then handles the remaining configuration steps. The web interface looks pretty neat and well designed, which you wouldn't necessarily expect of a beta version (see Figure 1).
In Settings | Show ID, it shows you a 46-digit string representing the SHA-256 hash of the certificate. The string, which the GUI also thankfully displays as a QR code, identifies the network node. Just like BitTorrent Sync, Pulse uses a peer-to-peer protocol and does without a dedicated master.
Looking for a Partner
By exchanging hash values between the participating computers, the peers on the LAN soon start talking. This process is particularly useful on networks in which the computers are assigned a different IP address on each boot by the DHCP server. Synchronization on the web is also possible – given a matching (D)DNS and router configuration. The nodes contact a global announce server to discover the current names or IP addresses of their peers. Of course, the server doesn't get to see any transferred data.
Pulse will version stored files on request. It either keeps a specified number of versions (five being the default), or it will version in stages and store the data in increasingly longer intervals until the defined maximum age is reached.
BitTorrent Sync uses an elegant inotify mechanism to keep track of the modified data in the directory to be synced. In contrast to this, Pulse simply scans the directory cyclically – every 60 seconds by default. I really do hope that inotify support is available in the next generation Pulse; if so, it's off to the happy hunting grounds for BitTorrent Sync on my networks.
Infos
- BitTorrent Sync: http://www.getsync.com
- Pulse: https://source.ind.ie/project/pulse-swift
- Syncthing: http://syncthing.net
- Perfect Forward Secrecy: http://www.perfectforwardsecrecy.com/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.