2022-02-24 Ubuntu 20.04 初始配置

安装必要软件

sudo apt install vim zsh build-essential bedtools cmake docker.io docker tree nfs-common nfs-kernel-server libxml2-dev curl libcurl4-openssl-dev screen sshfs lftp -y
sudo apt install iputils-ping net-tools openssl libssl-dev liblzma-dev  libblas-dev gfortran  texlive texlive-fonts-extra  software-properties-common libopenblas-dev -y
sudo apt install gcc-7 g++-7 gfortran-7
sudo apt-get install libtbb2
sudo apt install openjdk-8-jdk

ssh

改端口

sudo vim /etc/ssh/sshd_config
Port 你的端口
sudo service ssh restart

使用密钥登陆

https://its.pku.edu.cn/faq_ssh.jsp

开启防火墙

sudo apt install ufw
sudo ufw allow 7562/tcp
sudo ufw allow 443/tcp
sudo ufw allow 9000:9010/tcp
sudo ufw allow 9110:9120/tcp
sudo ufw status numbered
sudo ufw enable
sudo ufw app list

https://www.myfreax.com/how-to-setup-a-firewall-with-ufw-on-ubuntu-20-04/

fail2ban

https://zhuanlan.zhihu.com/p/33546122

R

sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
sudo apt install r-base

https://linuxize.com/post/how-to-install-r-on-ubuntu-20-04/

Rstudio

https://www.rstudio.com/products/rstudio/download-server/debian-ubuntu/

批量生成用户

https://blog.csdn.net/crper/article/details/8878171
https://www.cnblogs.com/xd502djj/archive/2011/11/23/2260094.html

newuser < # like /etc/passwd
chpasswd 

你可能感兴趣的:(2022-02-24 Ubuntu 20.04 初始配置)