Run the command in the background
IntroductionSometimes, you really need those server-wide program to run in background, because you need to avoid some accidents to interrupt our service program. There are some methods I will introduce here: 1. tmux: tmux new -s [tty-name]: start a new tty window with your set name tmux attach -t [tty-name]: attach a existing tmux tty with name crtl + b and then d: exit tmux tty but keep it in background LATER but this command or we call it shortcut sometimes don’t work, if I find the...
Synchronize Folder with Syncthing
IntroductionSyncthing is a famous open-source app which can help us synchronize shared folders through different platforms including windows, MacOS and Linux. For more details, you can access official website InstallWindowsIt is very simple to install on windows, just download it from github After installed, there will be a desktop shortcut Syncthing Configuration Page Click that shortcut, your browser will open a config page. LinuxFor more details, you can access official guidance 1....
Why do you think the English Tenses is so confused?
时间&状态未分清学校教授时态时,往往是将时间和状态混合在一起教,导致学生对时态仅有一个模糊的整体概念。或者即使区分,也并不特别指出。这就导致很多人脑种的时态概念是这样的: 这解释了为什么在学校学到的英语会强行加入很多语法规则,什么时候必须用一般将来,什么时候用过去将来完成时等等。规则复杂没有统一的规律绝对是大多数人在学习英语时被劝退的头号通缉犯。但是如果你问Native English Speakers,他们会说根本不知道什么是时态,就是怎么自然怎么说。 因此,我们需要知道时间和状态其实是两个概念,而完整的时态是由时间和状态排列组合而成的。 动词变位(Verb Conjugation)单词拼写往往会改变。 在中文里表达时间概念时,只需要加上对应的时间相关的描述词即可,不需要对字本省做出任何改动,比如: 我已经吃过饭了 我正在跑步 但是在英文中,我们不仅需要加上对应的时间相关的描述词,还需要对动词本身的拼写做出改变, 比如: I ate an apple. (时态变位) She eats an apple. (人称变位) I have eaten an apple....
How to use OpenVPN
OpenVPN ServerInstall OpenVPN ServerWindows1. Download setup programOpenVPN Client Download for Windows 2. Install OpenVPNRemember click Customize instead of Install Now Click OpenVPN -> OpenVPN Service -> Entire feature will be installed on local hard drive; ClickOpenSSL Utilities -> EasyRSA 3 Certificate Management Scripts -> Entire feature will be installed on local hard drive 3. Config ServerEnter default setup directory, and then enter the Easy-RSA 3 Shell 12cd...
How to manage SSH key pair
1. Generate SSH key12ssh-keygen -t rsa -b 4096 -C "[email protected]"ssh-keygen -t ed25519 -C "[email protected]" ssh-keygen: SSH-Keygen 参数详解ssh-keygen 是一个生成、管理和转换 SSH 密钥的工具。以下是其主要参数的详细讲解: 常用参数 -t type 指定生成密钥的类型: - rsa:生成 RSA 密钥(默认 2048 位)。 - dsa:生成 DSA 密钥(已不推荐使用)。 - ecdsa:生成 ECDSA 密钥(推荐用于更高安全性和性能)。 - ed25519:生成 Ed25519 密钥(最推荐,现代加密方法,性能好且安全)。 - rsa1:生成 SSH 协议 1 的 RSA 密钥(极不推荐,已弃用)。 -b bits 指定密钥的位数: - RSA 密钥默认 2048 位,建议使用 3072 或 4096 位以提高安全性。 - Ed25519...
Get SSL Certificates
1. Apply certificate via ACME2. Apply certificate via ACME integrated by 3X-UI2.1. Install 3X-UIRun bash script: 1bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) 2.2. Select SSL Certificate Management1$ x-ui 2.3. Select Get SSL input your urland wait for finish2.4. Check your certificate
How to set network proxy for Docker
Sometimes, you may encounter network problems, at this time, you need set proxy through daemon file of docker. Daemon ConfigThe config file of docker located at: /etc/docker/daemon.json If the config file doesn’t exit, you should create one. And past the content below to the config file. 1234567{ "proxies": { "http-proxy": "http://proxy.example.com:3128", "https-proxy": "https://proxy.example.com:3129", ...
Establish SSH connection through SOCKS5 proxy
1. IntroductionAs we all know, sometimes, it’s hard for us to connect our remote server directly or the connection is not stable, we have to conduct some method to access our remote server. 2. Method2.1. Using some 3rd party applicationFinalShell: We can set proxy directly 2.2. WindowsIt’s not friendly to Windows TODO 2.3. LinuxWe can use nc and ssh itself to proxy ssh trafic. 1ssh -o "ProxyCommand=nc -x socks_proxy_host:socks_proxy_port %h %p"...
Self-host remote git repository
1. IntroductionAs we all know, Github is the most famous code repository hosting and management platform, which based on Git. In the most cases, you might be never consider about the difference from git and github, but we have to know, Git and Github is not the same thing. In this page, we will not introduce more details about git and github. But sometimes, maybe you don’t want to push your code to github because you wouldn’t like publish your creativity or work. You absolutely can use the...
Connect your Remote Service from SSH forwarding
IntroductionConnect your private service from SSH is really meaningful, if you visit your Personal Document/Information/Private Key, this is a good method. 1. Start your remote service on your cloud computerWe can see that our opened service is a web service, to speak of, I have already deploy my service on https, if you have not deploy your ssl certification, the best way is accessing your service from ssh forwarding. 2. Install and Config SSH Connection3. Connect SSH and Set SSH...