Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ vps_1 Public

BBV-22/vps_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

vps_1

OS: Ubuntu Server 16.04

ssh

vi /etc/ssh/sshd_config
:%s/^PermitRootLogin yes/PermitRootLogin no
:wq
  1. Download the Source Code package from the latest release
  2. Read vlmcsd/README.compile-and-pre-built-binaries and do compiling
  3. Copy ./bin/vlmcsd to /usr/local/bin/
  4. Create vlmcsd.service, like this:
[Unit]
Description=Vlmcsd Service

[Service]
ExecStart=/usr/local/bin/vlmcsd -D
Restart=always

[Install]
WantedBy=multi-user.target

In particular, if you want to check logs from the vlmcsd service:

...
[Service]
ExecStart=/usr/local/bin/vlmcsd -D -e
...
ln vlmcsd.service /etc/systemd/system/vlmcsd.service

systemctl enable vlmcsd.service
systemctl start vlmcsd.service
  1. Install python-pip
  2. pip install git+https://github.com/shadowsocks/shadowsocks.git@master
  3. Create shadowsocks.json in /etc/, like this:
{
  "server":"::",
  "local_address":"127.0.0.1",
  "local_port":1080,
  "port_password":{
    "*10001*":"*password_for_first_port*",
    "*20002*":"*password_for_second_port*"
   },
   "timeout":300,
   "method":"chacha20-ietf-poly1305",
   "fast_open":true
}
  1. Create ssserver.service, like this:
[Unit]
Description=Shadowsock Server Service
ConditionPathExists=/etc/shadowsocks.json

[Service]
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks.json
Restart=always

[Install]
WantedBy=multi-user.target
ln ssserver.service /etc/systemd/system/ssserver.service

systemctl enable ssserver.service
systemctl start ssserver.service
  1. AttributeError: */libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup

Modfiy */shadowsocks/crypto/openssl.py by vim:

:%s/cleanup/reset/
:x
  1. Exception: libsodium not found

Download libsodium, decompress it, and enter the directory.

./configure
make && make check
make install
ldconfig

https://kionf.com/2016/12/15/errornote-ss/

https://download.libsodium.org/doc/installation

https://github.com/shadowsocksrr/shadowsocks-rss/wiki/libsodium

  1. rc.local: Install And Use Shadowsocks Command Line Client on Linux - LinuxBabe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published