代码拉取完成,页面将自动刷新
#!/bin/bash
set -e
function sdone(){ (echo -e "\033[32;01m$*\033[0m";) }
function serro(){ (echo -e "\033[31;01m$*\033[0m";) }
function swarn(){ (echo -e "\033[33;01m$*\033[0m";) }
do_install()
{
swarn "Install $1 [START]"
sudo apt-get install -y $1 > /dev/null 2>&1
if [ $? -eq 0 ]; then
sdone "Install $1 [OK]"
else
serro "Install $1 [ERROR]"
exit 1
fi
}
fo_install()
{
swarn "Install $1 [START]"
sudo apt-get install -y $1 --force-yes > /dev/null 2>&1
if [ $? -eq 0 ]; then
sdone "Install $1 [OK]"
else
serro "Install $1 [ERROR]"
exit 1
fi
}
swarn "Instal tools [START]"
do_install net-tools
do_install make
do_install cmake
do_install automake
do_install autoconf
do_install build-essential
do_install zlib1g
do_install zlib1g-dev
do_install openssl
do_install libssl-dev
do_install ncurses-dev
do_install gawk
do_install binutils
do_install xz-utils
do_install p7zip-full
do_install rsync
do_install lrzsz
do_install openssh-server
sdone "Instal tools [FINISH]"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。