connection

with local proxy:

ssh  -o "ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:1080 %h %p" -p 22 root@$someip

locale

sudo locale-gen "en_US.UTF-8"
sudo dpkg-reconfigure locales

user

create acount

useradd --create-home --system --shell /bin/bash [-d /some/where/else/] demo

# if created error
sudo usermod -d /new/place/will/be/created -m zxteloiv

password

passwd demo

use visudo to give permission:

visudo

add a new line:

demo ALL=(ALL:ALL) ALL

sshd port

change sshd config

vim /etc/ssh/sshd_config # modify the options as below

reload ssh

maybe reference

Port 25000 # new port
Protocol 2 # 
PermitRootLogin no # no root login in the future

UseDNS no
AllowUsers demo # only the new user

old version python curl

for python 2.7 older than 2.7.9

pip install --upgrade ndg-httpsclient

copy pub key

mkdir -p ~/.ssh
touch ~/.ssh/authorized_keys

# then copy the id_rsa.pub into it

basic building tools

sudo apt-get install gcc g++ autoconf make libssl-dev openssl 

timezone

sudo dpkg-reconfigure tzdata

python configuration

自己编译

wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tar.xz
tar xJf Python-2.7.11.tar.xz 
cd Python-2.7.11

./configure --prefix=/home/zx/local/python27 --with-ensurepip=install --enable-ipv6 --enable-profiling --enable-framework

官方源>软件官方ppa>第三方ppa>软件官方预编译>make deb»>自己编译

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt update
sudo apt install python2.7

个人账户推荐用 https://github.com/yyuu/pyenv 管理 python 版本

reference