以下为常用一键命令,在Debian/Ubuntu下运行正常


apt安装常用包

apt update && apt install htop zip git wget curl screen fuse virt-what vim nano ca-certificates -y

一个Linux脚本合集

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/hj.sh && chmod +x hj.sh && bash hj.sh

Linux换源

wget https://raw.githubusercontent.com/Demontisa/change_source/main/change.sh && chmod +777 change.sh && bash change.sh

查看IP位置

curl myip.ipip.net

安装宝塔

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
#删除宝塔强制登录
rm -f /www/server/panel/data/bind.pl

探针程序

wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh && chmod +x status.sh && ./status.sh

V2面板程序V2-UI

bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh)

端口全开

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F

允许SSH 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

NAT64(用于纯ipv6小鸡访问常规ipv4网络)

echo -e "nameserver 2a01:4f8:c2c:123f::1\nnameserver 2a03:7900:2:0:31:3:104:161" > /etc/resolv.conf
#原dns
echo -e "search blue.kundencontroller.de\noptions rotate\nnameserver 2a02:180:6:5::1c\nnameserver 2a02:180:6:5::4\nnameserver 2a02:180:6:5::1e\nnameserver 2a02:180:6:5::1d" > /etc/resolv.conf

EUserv-warp

#脚本1:IPV4是WARP分配的IP,IPV6是VPS本地IP
wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp64.sh|bash
#脚本2:IPV4与IPV6都是WARP分配的IP
wget -qO- https://cdn.jsdelivr.net/gh/YG-tsj/EUserv-warp/warp64.sh|bash

详细见https://github.com/YG-tsj/EUserv-warp


甲骨文重装Debian
原系统需为甲骨文的Ubuntu16

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -firmware

甲骨文ARM机器脚本(armbox)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/armbox.sh && chmod +x box.sh && clear && ./box.sh

docker portainer

docker run -d -p 9000:9000 \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
--name prtainer-test \
docker.io/portainer/portainer

最后修改:2021 年 05 月 28 日 07 : 36 PM