Watched “The Shawshank Redemption” (1994)

I watched the English version of this famous movie this evening with Eric. It's so impressive. We should watch more good films in our remain life.

微生物的力量

微生物的力量

它们不知世上有人,却能够深深改变人类世界。

Install Shadowsocks-libev on Debian 8 (Jessie)

The Vps is too old to get a newer OS from the provider.

  1. 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
  1. apt-get update -o Acquire::Check-Valid-Until=false
  2. apt-get install shadowsocks-libev

the -o Acquire::Check-Valid-Until=false is the key information. Hope it is helpful.

source

what I learnt 29-03-2020

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)

  1. $ sudo apt install inxi
  2. $ inxi -F

Guide

Install Debian 10 by an ISO file on VPS

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

  1. mount the ios file you needed
  2. setup the boot sequence to CDROM first
  3. reboot your VPS and open the HTML vnc pannel
  4. Install the OS
  5. setup the boot sequence to HDD only
  6. Reboot