jdrch

I wrote a simple guide for setting up Resilio Sync on FreeBSD as root &/or user

Recommended Posts

I wrote a simple guide on how to do the above. It works on FuryBSD too and can also be used to switch an installation from being run under root to being run under user without resinstalling.

For distributions such as GhostBSD that have an rslsync package available in their repos: the only thing in the instructions that might change is you install & update from the repo using your package manager instead of manually from the archive.

Thanks @Alex. for the assistance.

Share this post


Link to post
Share on other sites
2 minutes ago, eltopo said:

I suggest that do NOT run rslsync as root. run it as a normal user with webui's listening port > 1024.

It's standard Unix(-like) practice not to, but TBH I haven't seen any major case of compromised root process KOing a Unix(-like) OS in a very long time.

The biggest reason not to, IMO, is that rslsync as root makes the user's own synced files read-only to them, which is problematic.

Share this post


Link to post
Share on other sites

I have never seen Resilio run as root. However, as a hidden admin in the admins group no rights need to be assigned specifically for individual directories, since the admin group generally has access everywhere.

I cannot judge where the difference is to a user Resilio, to whom the rights to directories should be assigned individually.

Share this post


Link to post
Share on other sites

@PacketMan A couple things about that:

  1. There is no package available in the FreeBSD repos. To see for yourself, run
    pkg search rslsync
    on FreeBSD 12.1-RELEASE-p4. You'll get no results.
  2. The FreshPorts listing literally says there's no package available:
Quote
A package is not available for ports marked as: Forbidden / Broken / Ignore / Restricted
PKGNAME: there is no package for this port: _LICENSE_RESTRICTED = delete-package delete-distfiles
  1. You can't compile it yourself either because it's closed source so there's nothing to compile from
  2. Besides all of that, the most recent version in the FreeBSD repos is 2.6.3, which is a version behind the current stable release

Now, there are some other FreeBSD-based distros such as GhostBSD that have rslsync in their repos, but I suspect that's because they also use the TrueOS repos, which are a superset of FreeBSD's. I would not suggest anyone use TrueOS' downstream repos on raw FreeBSD unless they want to run into package state/dependency problems.

Share this post


Link to post
Share on other sites

Well I'll be dammed. I guess you could use portmaster to install it then. I've been using Synth to keep my repo up to date, but I am way over due for an upgrade.  After I get everything moved over to Syncthing I will see if Synth will still build its own package. Looks like that will break now. That is a real shame.

https://www.freshports.org/ports-mgmt/synth/

/usr/ports/ports-mgmt/synth

 

If the folks at Resilio want to maximize the potential user base of their product they have to include it in the FreeBSD ports/packages tree. Please don't anyone turn this into a "no one uses FreeBSD" rant; lots of people use it; a lot more than people may realize.  When the product was "BTSync" before they implemented the "selective sync" it heavy duty rock solid on FreeBSD (and other OSs I add) and then it got ghostly buggy after selective sync, imho.

 

Best wishes everyone.

 

 

 

Share this post


Link to post
Share on other sites

AFAIK FreeBSD repos contain open source packages only, but I could be wrong.

I actually do use FreeBSD, which is why I wrote the post 😛 Resilio Sync works perfectly for me, but then again I don't use the Selective Sync feature.

Share this post


Link to post
Share on other sites

So as I mentioned earlier I use a program call Synth which downloads code and builds the packages on the machine. So I am not downloading pre-built packages, but am downloading the code, and Synth builds the packages on my machine. Similar to another program called Poudriere.

Anyway, I finally got around to updating my machine, using Synth, which will re-build any required packages. 

Portmaster, which I only use to easily show which programs have updates available:

===>>> rslsync-2.6.3
        ===>>> New version available: rslsync-2.7.1


And then I ran Synth and got this:

00:03:15 [02] success  net-p2p/rslsync

 

So it looks like Synth users can still build on the 2.7.1 version.  That just said, for me however I have finished up migrating all my stuff to Synchthing, and will actually be uninstalling the net-p2p/rslsync package soon.

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

I don´t understand, what is your claim or issue. On all my Synology servers, Windows clients, Android devices I also use Syncthing in parallel to Resilio to learn, what are the differences, advantages etc. of both. If I have any problems with Resilio (as with Android APP in the past), I switch to Syncthing and try to solve the problem and switch back or not.

Share this post


Link to post
Share on other sites

@Andy+ Over the years of discussing things online I've found it's not particularly useful to question the basis of a decision a user makes for themselves. Whatever reasons @PacketMan has for switching, they work for him, and I think we should do him the courtesy of assuming he's thoroughly researched the topic and knows what's best for his use case.

Share this post


Link to post
Share on other sites

I have no claim or something like that and any decisions are also okay. Maybe is the lack of decision-making, its only, really I have no message from this post.

Share this post


Link to post
Share on other sites
4 hours ago, jdrch said:

@Andy+ Over the years of discussing things online I've found it's not particularly useful to question the basis of a decision a user makes for themselves. Whatever reasons @PacketMan has for switching, they work for him, and I think we should do him the courtesy of assuming he's thoroughly researched the topic and knows what's best for his use case.

 Sorry guys looks like I have mixed two points together thus confusing my 'position' or 'claim'.  Really all I was saying is that using Synth with FreeBSD you can still install a Resilio package, no custom 'set up' required. Jdrch is correct in saying that a pre-built package is no longer available, but I am saying Synth will create the package and install it for you....all you need to do is add the appropriate /etc/rc.conf line so that it starts up automatically if you require that.

Then I confused the issue, when I said I have abandoned Resilio for Synchthing; and that comment should have been in another post. Sorry guys I did not mean to 'mix' the two.

Jdrch, yes I am very familiar with Resiio and Synchthing and have made the decision.  I am a big fan of the power and potential of the bittorrent protocol (for legitimate applications, especially commercial/enterprise applications), and I am still a fan of Resilio, but at this point in time I simply cannot keep using Resilio for various reasons.

Share this post


Link to post
Share on other sites

No problem, all partie are understood. For me is the same since approx. a year. Before I test Syncthing only, because was not so good as Resilio. Now, for me, Syncthing is good as Resilio and only feature thing, because both have Bugs. But Support of Syncthing is much better and also the Update cycles.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.