安装必备软件

sudo apt-get install zip unzip gcc gfortran -y
sudo apt-get update -y

安装历史命令

wget http://git.oschina.net/x242025/Shell/raw/master/CentOS/history.sh
chmod a+x history.sh
bash history.sh
rm history.sh

安装ddscat

wget https://github.com/rusterx/mddscat/releases/download/v1.0.0/linux.mddscat.v1.0.0.zip
unzip linux.mddscat.v1.0.0.zip
rm linux.mddscat.v1.0.0.zip
chmod a+x linux.mddscat.v1.0.0/*
mkdir dda.project

暴露ddscat的位置

echo 'PATH="$PATH:~/linux.mddscat.v1.0.0"' | sudo tee -a ~/.profile
source ~/.profile
sudo ln -s ~/linux.mddscat.v1.0.0/ddscat /usr/bin/ddscat

安装监控软件

cd ~/dda.project
wget https://gitee.com/rusterx/monitor/repository/archive/master.zip
unzip master.zip
rm master.zip
chmod -R 777 monitor/*

安装python环境

sudo apt install python python-pip -y
pip install bottle

暴露监控位置

echo 'PATH="$PATH:~/dda.project/monitor"' | sudo tee -a ~/.profile
source ~/.profile

设置vim偏好

# 设置vim
echo 'set ts=4' | sudo tee -a /etc/vim/vimrc

删除冗余文件并重启

rm ~/init_ddscat.sh
sudo reboot