1.Setup
0) Get a Laptop or Desktop
1) Get a Linux OS
1a) docker or VM
##install and run a centos docker for the first time
docker pull centos
docker run -it --name=centos -h centos -v /Users/john/Documents/centos/:/mac centos
# docker run -it --name=container_name -h hostname -v /HOST_ABSOLUTE_DIR:/CONTAINER_ABSOLUTE_DIR image_name:tag
# simple version docker run -it centos
##add user
useradd john
passwd john
su john
###detach (pause) and attach
ctrl+p+q # detach退出: 容器不关闭,容器内部正在运行的任务不会停止. ctrl+p+q表示按住ctrl不动,先按下p,后按下q
docker attach container_name # attach进入
###exit and delete a container
exit #inside docker as root, then exit
docker rm container_name1b) ssh & login
2) Learn an Editor
A. Vim -- Learn Vim Progressively
B. Atom -- Tutorial and Tips
3) README and MD
4) Always Backup Data Files Regularly
5) More Readings and Practices
Video
5a) Setup 1
5b) Setup 2
Last updated