1 Star 0 Fork 5

lize/dugitools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
003.install_devtools_small.sh 1005 Bytes
一键复制 编辑 原始数据 按行查看 历史
dbdever 提交于 2024-05-06 16:11 . 1.修改003号脚本新增openssh
#!/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]"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/lize/dugitools.git
git@gitee.com:lize/dugitools.git
lize
dugitools
dugitools
master

搜索帮助