How to do our jobs efficiently and reproducibly
mac 使用技巧
##install and run a centos docker for the first timedocker pull centosdocker 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 useruseradd johnpasswd johnsu john###detach (pause) and attachctrl+p+q # detach退出: 容器不关闭,容器内部正在运行的任务不会停止. ctrl+p+q表示按住ctrl不动,先按下p,后按下qdocker attach container_name # attach进入###exit and delete a containerexit #inside docker as root, then exitdocker rm container_name
install basic software for centos
yum -y install vim
yum -y install manyum -y install lessyum -y install wgetyum -y install makeyum -y install gcc gcc-c++yum -y install gcc-gfortranyum -y install bzip2-develyum -y install zlib-develyum -y install zip unzipyum -y install xz-devel.x86_64yum -y install libg2c.so.0yum -y install readline-develyum -y install libXt-develmkdir /downloadcd /downloadwget -c http://www.cpan.org/src/5.0/perl-5.26.1.tar.gztar -xvzf perl-5.26.1.tar.gzcd /download/perl-5.26.1sh Configure -demakemake install
You can also pull and run a ubuntu docker, then install basic software for ubuntu
docker run -it --name=ubuntu -h ubuntu -v /Users/john/Documents/unbuntu/:/mac ubuntu
apt-get -qq updateapt-get -y install vim...
More: https://ygxing.gitbooks.io/docker/content/
ssh/sftp -p XXX (default: 22)
You can also using the following SFTP/FTP clients to mount the remote server to the local desktop, so you can edit the scripts with a GUI editor like Atom:
Transmit
Fetch (education version)
Learn vim and it will be your last text editor. There isn’t any better text editor that I know of. It is hard to learn, but incredible to use.I suggest you teach yourself Vim in 4 steps:
Survive
Feel comfortable
Feel Better, Stronger, Faster
Use superpowers of vim
A hackable text editor for the 21st century
Document your project using markdown language (available in wiki, gitbook, github, etc)
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
It's necessary to backup data regularly.
Week I.0.Setup Part I,
Week I.1.Setup Part II
for Beginners
《Bioinformatics Data Skills》
1) How to Learn Bioinformatics
for Advanced Readers
《鸟哥的Linux私房菜-基础学习篇》
第25章 LINUX备份策略
25.2.2完整备份的差异备份
25.3鸟哥的备份策略
25.4灾难恢复的考虑
25.5重点回顾
《Bioinformatics Data Skills》
1) How to Learn Bioinformatics 2) Setting up and Managing a Bioinformatics Projects
4)Working with Remote Machines
@Youtube
@Youtube