Guide for ShadowsocksX-NG with kcptun plugin configuration

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.

  1. 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.

  2. 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.

  1. 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:

  1. The Port should be the Port that your Kcptun server is listening to, not the port that your Shadowsocks server is listening.
  2. For the Plugin Opts, you don't need to specify any IP or Port parameters.
  3. You don't need to download the Kcptun plugin by yourself, because it is builtin in latest release.

That's all.

dotnet-ef summary

Instal dotnet-ef

dotnet tool install -g dotnet-ef --version 3.1.1

Add Migration

dotnet-ef migrations add migration-name [-c SomeDbContext]

Update Database

dotnet-ef update database [migration-name] [-c SomeDbContext]

Revert All Database Update

dotnet-ef update database 0 [-c SomeDbContext]

Windows is still a buggy and uncomfortable OS in 2020

I would like to give Windows 10 a try after the promise 12 years ago. I got a job a month ago, and I need to write ASP.NET Core application for this job. Though Asp.NET core and C# taste good, windows 10 makes me upset once more.

Twelve years ago, that was the year 2008, I left windows XP for Arch Linux. I promised I will never use Windows as my main OS in the future at that time. My boss bought me an excellent DELL laptop with 32GB memory and equipped a 15" 4k screen. Yes, it is preinstalled with Windows 10 Professional.

Today I have installed autojump, Wrox on windows 10, and changed a few settings here and there to reach my requirements. I know I may insist on Windows for a bit long time because I need the job to live and I should give Windows another go. I hope I can feel better later. The Windows 10 system does improve a lot than its previous version, however, the feeling, I cannot tell. Another long way to go, or it may never be perfect.

Good luck to me, and to windows.

Windows 10 小狼毫(RIME)安装五笔拼音输入法

  1. https://rime.im/ 下载安装
  2. 右键点击“中”字图标,在弹出菜单中点击“输入法设定”
  3. 在弹出窗口中点击“获取更多输入方案”,这时会弹出一个 cmd 窗口让你输入需要添加的方案
  4. 先输入 rime-wubi 回车,wubi就自动装上了
  5. 再输入 rime-pinyin-simp 回车,拼音也装上了。
  6. 回车并随手关掉这个 cmd 窗口,加输入法的工作就完成了。
  7. 回到刚才点击 “获取更多输入方案” 的窗口,勾掉你不需要的那些七七八八的输入法,选中刚刚添加上的“五笔拼音”,然后再点一下 “中”按钮 (不是右下角的“中”图标),选择一个你喜欢的风格。

Mission Accomplished!

Enjoy 你的五笔拼音吧! (By the way,写此Blog时我用的小狼毫版本是 0.14.3 )

CentOS 7 firewall-cmd open a port permanently

    [root@centos7 ~]# firewall-cmd --permanent --add-port=100/tcp
    success
    [root@centos7 ~]# firewall-cmd --reload
    success

From how-to-open-a-port-in-centos-7-with-firewalld