Resilio Agent can be installed and launched on the TrueNAS.
USING CONFIG FILE
Download and unpack the Agent binary to the preferred location. Put sync.conf file to some available location, can be the same as binary's. Start agent with the following arguments:
./rslagent --config <path_to_sync.conf>
USING CONSOLE'S IP ADDRESS
Download and unpack the Resilio Agent binary. Start the Agent with the following argument
./rslagent --server_addr:8444 DNS or IP addresses are supported. Update the port if necessary. Agent will attempt to connect to the MC. If connection was successful, agent will save the address in its settings and appear in the list of agents in Management Console.
Changing system propertiesStarting with Resilio Agent v2.12.5, the tar ball comes with a bash script which changes some of system settings to boost performance for the Agent.
Launching this script is optional, and Admin needs to manually add the executable attribute to the script with command
sudo chmod +x adjust adjustsettings.sh. The script does the following:
1) increases system socket buffers to increase speed of synchronization over ZGT protocol
2) increases number of notify watchers so that the Agent receives file system notifications about all files and does not run out of the watchers
3) remove core dumps limits. With the limits removed, the Agent will be able to create core dump if it crashes. Note, the limit is removed for other applications on the computer as well, thus core dumps created by them may take a lot of storage space.
sudo chmod +x /usr/bin/dpkg*
Download the .deb package from Resilio Connect site and run the command to install it:
sudo dpkg -i resilio-agent_<version>_<architecture>.deb
If you don't have the file
/etc/resilio-agent/sync.conf the package will prompt for Management Console IP:port for connection and Agent will need to be approved by MC administrator.
rslagent which is the default user to run the package. Or update file /lib/systemd/system/resilio-agent.service and change the following lines entering the needed existing username and groupname:
User=<user> Group=<user> Environment="AGENT_USER=<user>" Environment="AGENT_GROUP=<user>"To enable automatic startup of Resilio Agent service
sudo systemctl enable resilio-agentOther optons to manage the service are