add HowTo install via snap

This commit is contained in:
Dmitry Afanasiev
2023-07-31 13:29:45 +03:00
committed by ty
parent acc776852f
commit 817a98b81a

View File

@@ -89,6 +89,36 @@ For macOS and Linux, you can install it using [Homebrew](https://brew.sh/):
brew install shadowsocks-rust
```
### **Install using snap**
```bash
# Install from snapstore
snap install shadowsocks-rust
# List services
snap services shadowsocks-rust
# Enable and start shadowsocks-rust.sslocal-daemon snap service
snap start --enable shadowsocks-rust.sslocal-daemon
# Show generated systemd service status
systemctl status snap.shadowsocks-rust.sslocal-daemon.service
# Override generated systemd service (configure startup options)
systemctl edit snap.shadowsocks-rust.sslocal-daemon.service
## NOTE: you can pass args to sslocal:
## [Service]
## ExecStart=
## ExecStart=/usr/bin/snap run shadowsocks-rust.sslocal-daemon -b "127.0.0.1:1080" --server-url "ss://...."
# Restart generated systemd service to apply changes
systemctl restart snap.shadowsocks-rust.sslocal-daemon.service
# ... and show service status
systemctl status snap.shadowsocks-rust.sslocal-daemon.service
```
### **Download release**
Download static-linked build [here](https://github.com/shadowsocks/shadowsocks-rust/releases).