The Vps is too old to get a newer OS from the provider.
- create /etc/apt/sources.list.d/jessie-backports.list, and fill in the following lines
deb http://archive.debian.org/debian jessie-backports main
deb http://archive.debian.org/debian jessie-backports-sloppy main
- apt-get update -o Acquire::Check-Valid-Until=false
- apt-get install shadowsocks-libev
the -o Acquire::Check-Valid-Until=false
is the key information. Hope it is helpful.
source
1. Use axel instead of wget
$ sudo apt install axel
axel -n 1000 url
2. Using Nginx as a file server
https://www.yanxurui.cc/posts/server/2017-03-21-NGINX-as-a-file-server/
3. Using supervisor and autossh to keep a tunnel being alive all time
[program:autossh]
command=autossh -M0 -N
-o "ExitOnForwardFailure yes"
-o "ServerAliveInterval 15"
-o "ServerAliveCountMax 4"
-o "ControlPath none"
-o "UserKnownHostsFile=/dev/null"
-o StrictHostKeyChecking=no
-R 18022:localhost:22
-R 18080:localhost:80
-R 18443:localhost:443
user_name@user_ip_or_domain
autostart=true
autorestart=true
startretries=999
redirect_stderr=true
stdout_logfile = /var/log/supervisor/autossh.log
stdout_logfile_maxbytes = 10MB
source
4. Using shadowsocks + polipo to implement http/https proxy in Ubuntu 18.04
5. Show System Info / Hardware Details on the Command Line (Ubuntu)
- $ sudo apt install inxi
- $ inxi -F
Guide
I bought a VPS from http://virmach.com five years ago. It had been running Ubuntu 14.04 OS for over five years. It was stable but a bit out-of-date. Firstly I tried the Ubuntu 18 template, which was builtin by the cheap Vps provider (virmach). Unfortunately, I cannot log into the system after the OS installation, it always automatically refused my ssh connection, and continuously told me my password is wrong through the HTML5 vnc console. It's already very late yesterday evening, I was tired and wanted to give up.
Then I found the Debian 10 Server X64 ISO file on the cdrom TAB. I love Debian, so I decided give it a go before going to bed. That's a very familiar and happy process. I just want to record the main steps of the process as a memo. Here it is
- mount the ios file you needed
- setup the boot sequence to CDROM first
- reboot your VPS and open the HTML vnc pannel
- Install the OS
- setup the boot sequence to HDD only
- Reboot
“把文档写详细点会死吗?” 大概率会吧。虽然我来写未必会更好,但我还是要批评 ShadowsocksX-NG 和 Shadowsocks for windows 的项目的 README.md 文件。
起因:我妹夫访问我的翻墙服务器实在是太脏话慢了。虽然我这会身在墙外,然而身为墙国人,祖国总会给机会锤炼你的翻墙技术。所以,本着药不能停的原则,我又拣起了高速翻墙的技能。
下面是我最后成功完成配置的具体步骤。
- 在你的服务器上搭好 Shadowsocks 和 Kcp server。
- 去 shadowsocks/windows 下载最新版,并解压缩到你打算放置的地方,比如 Desktop\shadowsocks。
- 去这里 下载Kcptun 最新版,把解压出来的 client_windows_amd64.exe 放到刚才放置 shadowsocks.exe 文件的同一文件夹。
- 配置shadowsocks
假定你的shadowsocks配置是:
{
"server":"0.0.0.0",
"server_port":8964,
"local_port":1080,
"password":"your-secure-password",
"timeout":60,
"method":"chacha20-ietf-poly1305"
}
假定你的 Kcptun server 配置是:
./server_linux_amd64 -t 127.0.0.1:8964 -l :28964 -mode fast3 -key chrd5 -sockbuf 16777217 -nocomp -dscp 46 -crypt none
则你的Shadowsocks for windows 需要如下配置:
Server IP: your-server-ip-or-domain
Server Port: 28964
Password: your-secure-password
Encryption: chacha20-ietf-poly1305
Plugin Program: client_windows_amd64.exe
Plugin Opts:
[v] Need Plugin Argument
Plugin Arguments: -l %SS_LOCAL_HOST%:%SS_LOCAL_PORT% -r %SS_REMOTE_HOST%:%SS_REMOTE_PORT% -key chrd5 -crypt none -mode fast3 -nocomp
Remarks: AnythingYouLike
注意事项
- Server Port 是 Kcptun 监听端口,不是 Shadowsocks 监听端口
- Plugin Program 那里填 client_windows_amd64.exe 文件的相对或绝对路径文件名。我上面让你把解压出来的文件扔到 shadowsocks.exe 同一文件夹,就是这里填写文件。
- Plugin arguments 所有参数前缀都是一个
-
字符,网上有些教程会写成 --
, 这可能是个坑。
就这样。希望也能帮到你。如果你遇到了麻烦,不要客气也不要担心自己的问题幼稚,欢迎留言给我,只要我及时看到并有空,就会帮忙。
tldr; 设置要点见下图
There's little information on the internet about configuring the Kcptun plugin for ShadowsocksX-NG. It is necessary to write a blog to record the process that how I configured it, as it is not only helpful for myself later, and it could help the others who need it. Let's start.
-
Download the latest ShadowsocksX-NG release and install it on your macOS (It is v1.9.3 when I wrote this article. If you meet issues with newer version, maybe it is worth to try the v1.9.3 release), it is the easiest step. You won't meet any problems at this stage.
-
The following are samples for shadowsocks server configuration and Kcptun server configuration:
Sample for the shadowsocks-libev config.json
{
"server":"0.0.0.0",
"server_port":8964,
"local_port":1080,
"password":"your-secure-password",
"timeout":60,
"method":"chacha20-ietf-poly1305"
}
Sample for the Kcptun server configuration
./server_linux_amd64 -t 127.0.0.1:8964 -l :28964 -mode fast3 -key chrd5 -sockbuf 16777217 -nocomp -dscp 46 -crypt none
Your configuration may be different from the samples, it doesn't matter.
- The configuration details
Address: your-server-ip-or-domain
Port: 28964
Encryption: chacha20-ietf-poly1305
Password: your-secure-password
Plugin: kcptun
Plugin Opts: key=chrd5;crypt=none;mode=fast3;sockbuf=16777217;nocomp;dscp=46
Remarks: AnythingYouLike
What you need to pay attention to in the upper configuration:
- The Port should be the Port that your Kcptun server is listening to, not the port that your Shadowsocks server is listening.
- For the Plugin Opts, you don't need to specify any IP or Port parameters.
- You don't need to download the Kcptun plugin by yourself, because it is builtin in latest release.
That's all.