Skip to content

Commit

Permalink
chore: added example conf for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT committed Aug 17, 2024
1 parent e54ea5d commit 65b1318
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
18 changes: 18 additions & 0 deletions example/example_ubuntu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"server": "shadowsocks.example.tld",
"server_port": 443,
"password": "PASSWORD",
"method": "chacha20-ietf-poly1305",
"plugin": "/usr/bin/v2ray-plugin",
"plugin_opts": "path=\/PATH;mux=15;host=shadowsocks.example.tld;tls",
"remarks": "",
"route": "bypass-lan",
"remote_dns": "1dot1dot1dot1.cloudflare-dns.com",
"ipv6": true,
"metered": false,
"local_port": 8888,
"proxy_apps": {
"enabled": false
},
"udpdns": false
}
30 changes: 30 additions & 0 deletions example/install_client_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
apt install shadowsocks-libev
wget https://github.com/shadowsocks/v2ray-plugin/releases/download/v1.3.2/v2ray-plugin-linux-amd64-v1.3.2.tar.gz
tar -xf v2ray-plugin-linux-amd64-v1.3.2.tar.gz
rm v2ray-plugin-linux-amd64-v1.3.2.tar.gz
mv v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin
chmod +x /usr/bin/v2ray-plugin
setcap 'cap_net_bind_service=+ep' /usr/bin/v2ray-plugin
setcap 'cap_net_bind_service=+ep' /usr/bin/ss-local
systemctl stop shadowsocks-libev.service
test -d /etc/shadowsocks-libev || mkdir -p /etc/shadowsocks-libev
test -f /etc/shadowsocks-libev/config.json || touch /etc/shadowsocks-libev/config.json
systemctl disable shadowsocks-libev.service
cat <<EOF > /etc/systemd/system/ss-local.service
[Unit]
Description=Daemon to start Shadowsocks Client
Wants=network-online.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/ss-local -c /etc/shadowsocks-libev/config.json
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable ss-local.service
systemctl restart ss-local.service
systemctl status ss-local.service

0 comments on commit 65b1318

Please sign in to comment.