77226204 大佬有话说 : 2020-1-7 11:05:28
自己写了个GCP启动脚本,完成一些设置
##debian9
#!/bin/sh
#安装软件,设置自定义命令
apt-get -y install wget vim
alias sur="su – root"
alias vi="vim"
#设置root密码
echo root:******|chpasswd
#设置sshd,root密码登录
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_backup
sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/ssh/sshd_config
sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
systemctl restart sshd
#中文命令提示
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
##centos,命令差不多,
#!/bin/sh
yum -y install wget
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_backup
sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/ssh/sshd_config
sed -i ‘s/PasswordAuthentication no/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
systemctl restart sshd
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
mkdir /usr/share/man-bakcup
yum -y install man-pages-zh-CN
cp -rf /usr/share/man/* /usr/share/man-bakcup
cd /usr/share/man/
rm -rf man1 man2 man3 man4 man5 man6 man7 man8
cp -rf /usr/share/man/zh_CN/* /usr/share/man
cd
allen314 大佬有话说 : 2020-1-7 11:16:06
支持!
abccba94 大佬有话说 : 2020-1-7 11:16:41
昨天刚撸了一个gcp
装BBR
# Debian 7+
# fool
wget https://github.com/tcp-nanqinlang/general/releases/download/3.4.2.1/tcp_nanqinlang-fool-1.3.0.sh
bash tcp_nanqinlang-fool-1.3.0.sh
# CentOS 6/7
# only 64 bit
wget https://raw.githubusercontent.com/tcp-nanqinlang/general/master/General/CentOS/bash/tcp_nanqinlang-1.3.2.sh
bash tcp_nanqinlang-1.3.2.sh
小穴儿 大佬有话说 : 2020-1-7 11:17:41
支持。。
口吐芬芳 大佬有话说 : 2020-1-7 11:31:12