科技分享

  • 首页
  • 【直达】
    • 管理
31Tu 科技分享
  1. 首页
  2. 【VPS】
  3. 正文

Linux常用脚本

2021年12月26日 559点热度 0人点赞 0条评论

root:

sudo -i
安装 Curl 
apt-get update -y && apt-get install curl -y

VPS配置查看:

curl -sL yabs.sh | bash -s -- -i
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
wget -qO- bench.sh | bash

 

测速:

bash <(curl -Lso- https://git.io/superspeed.sh)
bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh)

流媒体检查:

bash <(curl -L -s check.unlock.media)
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

BBR一键脚本

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

 

BBR手动开启

#首先先更新下系统,然后安装依赖组建:

apt-get update
apt-get update && apt-get install -y wget curl

#之后开启原生BBR:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

#检测是否正常开启BBR:

sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

 

 

 

回程路由:

curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

 

wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh
wget -qO- git.io/besttrace | bash

宝塔无需手机登录:

echo "{\"uid\":1000,\"username\":\"admin\",\"serverid\":1}" > /www/server/panel/data/userInfo.json

warp 解锁netflix:

wget -N https://cdn.jsdelivr.net/gh/kkkyg/CFwarp/CFwarp.sh && bash CFwarp.sh

 

wget https://github.com/luoxue-bot/warp_auto_change_ip/raw/main/warp_change_ip.sh && chmod +x warp_change_ip.sh && ./warp_change_ip.sh
停止warp
systemctl stop wg-quick@wgcf
启动
systemctl start wg-quick@wgcf
重启
systemctl restart wg-quick@wgcf

ubuntu 关闭防火墙

关闭ubuntu的防火墙
ufw disable
开启防火墙
ufw enable
卸载iptables
apt-get remove iptables


关闭ubuntu中的防火墙的其余命令
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

iptables转发

wget -qO natcfg.sh http://arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh
wget -N --no-check-certificate https://zhujiget.com/wp-content/uploads/2020/brook-pf.sh && chmod +x brook-pf.sh && ./brook-pf.sh

服务器开启root登陆

echo root:新密码 |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

安装docker

安装
curl -sSL https://get.docker.com/ | sh
卸载docker
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

 

挂载

mkfs.ext4 /dev/sdc
mkdir /d
mount /dev/sdc /d
chmod -R 777 /d

 

标签: 暂无
最后更新:2022年6月23日

admin

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

取消回复
最新 热点 随机
最新 热点 随机
威联通QNAP修改host Hysteria教程、一键脚本,youtube直上10W++ PT盒子教程、Seedbox-qBittorrent 一键脚本 Linux使用Docker安装qbittorrent 甲骨文PT盒子、swizzin安装教程,适用ARM-UBUNTU Xray+宝塔共存,支持多网站,多节点!
威联通QNAP修改host
V2ray、Xray 一键脚本 Iptables一键流量转发拯救你的垃圾VPS V2RAY+WS+TLS Trojan ubuntu 80端口被占用解决办法 威联通QNAP修改host Oracle甲骨文,初始配置 宝塔+V2RAY+WS+TLS, 富强与网站共存

© 2021 31tu.com

Theme Kratos Made By Seaton Jiang