common shell for myself
- wget -N --no-check-certificate https://raw.githubusercontent.com/arnofeng/commonshell/master/shadowsocks.sh
- chmod 771 ./shadowsocks.sh
- ./shadowsocks.sh install
- wget -N --no-check-certificate https://raw.githubusercontent.com/arnofeng/commonshell/master/htpasswd.sh
- chmod 771 ./htpasswd.sh
- ./htpasswd.sh install
location /
{
auth_basic "Authorized users only";
auth_basic_user_file {$path};
}
```
## 4.install vpn for Openvz/Xen(Centos/Debian)
* for Openvz, before beginning PPTPD install, you should cat follows:
``````nginx
#cat /dev/net/tun (#cat: /dev/net/tun: File descriptor in bad state)
#cat /dev/ppp (#cat: /dev/ppp: No such device or address)
```