towry
12/11/2016 - 1:49 AM

Installing a vps and setup vpn

Installing a vps and setup vpn

Initialize the server.

  1. login as root user.
    • ssh root@server_ip_address
  2. create a new user:
    • adduser username
    • Use the usermod command to add the user to the sudo group. usermod -aG sudo username
    • Test sudo access on new user account. su - username
  3. login as new created user.
  4. sudo apt-get install build-essential
  5. For build other stuff. sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils

Install shadowsocks.

shadowsocks-libev

  • The config server address must be 0.0.0.0 or the ip address.

Install ikev2

https://github.com/quericy/one-key-ikev2-vpn

  • Determine the adapter: route

Determine

  • sudo virt-what