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 just 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

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.