diff --git a/docs/content/install.md b/docs/content/install.md index 6b04ba809..a6b76cabc 100644 --- a/docs/content/install.md +++ b/docs/content/install.md @@ -93,3 +93,57 @@ Instructions roles: - rclone ``` + +## Installation with snap ## + +### Quickstart ### + + * install Snapd on your distro using the instructions below + * sudo snap install rclone --classic + * Run `rclone config` to setup. See [rclone config docs](http://rclone.org/docs/) for more details. + +See below for how to install snapd if it isn't already installed + +#### Arch #### + + sudo pacman -S snapd + +enable the snapd systemd service: + + sudo systemctl enable --now snapd.socket + +#### Debian / Ubuntu #### + + sudo apt install snapd + +#### Fedora #### + + sudo dnf copr enable zyga/snapcore + sudo dnf install snapd + +enable the snapd systemd service: + + sudo systemctl enable --now snapd.service + +SELinux support is in beta, so currently: + + sudo setenforce 0 + +to persist, edit `/etc/selinux/config` to set `SELINUX=permissive` and reboot. + +#### Gentoo #### + +Install the [gentoo-snappy overlay](https://github.com/zyga/gentoo-snappy). + +#### OpenEmbedded/Yocto #### + +Install the [snap meta layer](https://github.com/morphis/meta-snappy/blob/master/README.md). + +#### openSUSE #### + + sudo zypper addrepo http://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy + sudo zypper install snapd + +#### OpenWrt #### + +Enable the snap-openwrt feed. diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 000000000..f11bc44a8 --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,20 @@ +name: rclone +version: 1.35 +summary: rsync for cloud storage +description: + Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files. +confinement: strict +grade: stable + +apps: + rclone: + command: bin/rclone + plugs: [home, network, network-bind] + +parts: + rclone: + plugin: go + source: https://github.com/ncw/rclone + source-type: git + go-importpath: github.com/ncw/rclone + build-packages: [gcc, libgudev-1.0-dev]