linux nas samba,树莓派1安装resilio sync与Samba组建NAS及个人云存储记录

This guide implies understanding of how Linux package

manager, running processes and startup work.

Upgrade. If you

have btsync package installed and running, stop it

before installing resilio-sync. All settings from btsync will be moved to

resilio-sync.

Before updating from btsync to resilio-sync check the size of

/var/lib/btsync folder and ensure that your

computer has enough free space to store the double of

it. If it's too big, you can safely delete sync.log (and its archive)

and journals.

If you DO NOT have btsync package installed, ignore

the note above and proceed to installing

resilio-sync package. Installing resilio-sync package on Raspberry

Pi devices follow the same installation steps (with one extra step

for RPI1 - see below).

To install Sync from Resilio repository, you need

to complete 3 steps:

Add

repository

Add PGP

public key for package verification

Install the

package

Before installing Resilio Sync package, stop btsync

service.

For Debian-based Linux (Debian, Ubuntu, Zorin,

Elementary)

Create file /etc/apt/sources.list.d/resilio-sync.list to

register Resilio repository:

echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list

Add public key with the following command:

wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -

Also you can use the following

command to add public key:

curl -LO https://linux-packages.resilio.com/resilio-sync/key.asc && sudo apt-key add ./key.asc

For arm64 architecture

For Raspberry Pi 1

sudo dpkg --add-architecture

armhf

sudo apt-get

update

In

/etc/apt/sources.list change the line as follows:

deb [arch=armhf]

http://linux-packages.resilio.com/resilio-sync/deb resilio-sync

non-free

sudo dpkg --add-architecture

armel

sudo apt-get update

sudo apt-get install resilio-sync:armel

Install Sync

sudo apt-get update

sudo apt-get install resilio-sync

For RPM-based Linux (Red Hat, Fedora, CentOS,

OpenSUSE)

Only arm and x64 arch are

available. Create file /etc/yum.repos.d/resilio-sync.repo with

the following content to register

Resilio repository:

[resilio-sync]

name=Resilio Sync

baseurl=http://linux-packages.resilio.com/resilio-sync/rpm/$basearch

enabled=1

gpgcheck=1

Add public key:

rpm --import https://linux-packages.resilio.com/resilio-sync/key.asc

Install Sync:

yum update

yum install resilio-sync

Managing Sync

systemd

Enable sync service automatic startup as

user rslsync:

sudo systemctl enableresilio-sync

Enable sync service as current user:

edit file /usr/lib/systemd/user/resilio-sync.service

and change "WantedBy=multi-user.target" to

"WantedBy=default.target". Save. Then enable the service:

systemctl --user enableresilio-sync

Systemctl can be also run with the following

arguments: start, stop, enable, disable,

status

For example:

systemctl --user start resilio-sync

To force the user session to be active on headless linuxes, you can

sue command sudo loginctl enable-linger

username.

sysvinit,

upstart

Run as rslsync user:

sudo serviceresilio-syncstart

Service can also be run with the following

arguments: start, stop, restart

Guide on how to use Sync on linux is

After successful migration and verifying that setup is preserved,

you can remove btsync package:

For Debian-based Linux:

sudo apt-get purge btsync

For RPM-based Linux

sudo yum remove btsync

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值