码迷,mamicode.com
首页 > 其他好文 > 详细

Debian 8 安装BtSync

时间:2017-01-11 14:52:51      阅读:565      评论:0      收藏:0      [点我收藏+]

标签:linux下btsync安装   btsync官网指导安装   

声明,此方法是Btsync的官网resilio提供的方法

传送门:https://help.getsync.com/hc/en-us/articles/206178924

第一,在如下文件中添加:


vi /etc/apt/sources.list.d/resilio-sync.list
在文件中添加如下源
deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free

添加公共密钥:

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

安装:

sudo apt-get update
sudo apt-get install resilio-sync

管理resilio-sync

sudo systemctl enable resilio-sync

编辑文件/usr/lib/systemd/user/resilio-sync.service,改变"WantedBy=multi-user.target" 变成 "WantedBy=default.target"

启用软件

systemctl --user enable resilio-sync

开始使用软件

如:

systemctl --user start resilio-sync


英文原本如下:

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:

  1. Add repository

  2. Add PGP public key for package verification

  3. 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 with the following content to register Resilio repository:

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

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 architectureFor 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 $basearch
baseurl=http://linux-packages.resilio.com/resilio-sync/rpm/$basearch
enabled=1
gpgcheck=1

Add public key:

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

Install Sync:

sudo yum install resilio-sync

Managing Sync

systemd

Enable sync service automatic startup as user rslsync:

sudo systemctl enable resilio-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 enable resilio-sync

Systemctl can be also run with the following arguments: start, stop, enable, disable, status

For example:

systemctl --user start resilio-sync

sysvinit, upstart

Run as rslsync user:

sudo service resilio-sync start

Service can also be run with the following arguments: start, stop, restart

Guide on how to use Sync on linux is here.

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


本文出自 “知道的越多越觉得自己渺小” 博客,请务必保留此出处http://johnjohn.blog.51cto.com/4481703/1890912

Debian 8 安装BtSync

标签:linux下btsync安装   btsync官网指导安装   

原文地址:http://johnjohn.blog.51cto.com/4481703/1890912

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!