echo 正在卸载预装软件
#Alist
systemctl stop alist
sudo apt-get autoremove alist* -y
sudo find / -name "alist" |xargs rm -rf
#PHP
systemctl stop php*
sudo apt-get autoremove php* -y
sudo find / -name "php" |xargs rm -rf
#Nginx
systemctl stop nginx*
sudo apt-get autoremove nginx* -y
sudo find / -name "nginx" |xargs rm -rf
rm -rf /var/www
#Aria2
systemctl stop aria*
sudo apt-get autoremove aria2 -y
sudo find / -name "aria2" |xargs rm -rf
#Transmission
systemctl stop transmission*
apt-get autoremove transmission* -y
sudo find / -name "transmission" |xargs rm -rf
#页面终端
systemctl stop ttyd.service
sudo find / -name "ttyd" |xargs rm -rf
#KMS
sudo find / -name "vlmcsd" |xargs rm -rf
#FRP
systemctl stop frpc.service
sudo find / -name "frp" |xargs rm -rf
#NFS
apt-get autoremove nfs* -y
#FTP
systemctl stop vsftpd
apt-get autoremove vsftpd -y
sudo find / -name "vsftpd" |xargs rm -rf
echo 预装软件卸载完毕
echo 手动关闭6010端口:
echo 编辑:nano /etc/ssh/sshd_config
echo 注释:X11Forwarding yes
netstat -at
三、粘贴后保存脚本
MAC地址生成器 https://www.126126.xyz/net/gen_mac.htm
简单、粗暴、一键脚本,控制台运行后,重启设备
echo "hwaddress ether 54:52:00:c5:51:c6" >> /etc/network/interfaces.d/eth0
重启系统 reboot
============================
重启网络
service network restart
systemctl restart network
systemctl restart NetworkManager
重载欢迎公告信息
reload