Sign up Log in
n/vps · 11mo ago · 865 views
u/mfrxDiamond
n/vpsu/mfrx · 11mo ago

Some Linux VPS scripts I put together myself

Script online page


Collection of Linux scripts and commands

Here's a collection of commonly used Linux scripts and commands, covering system tuning, network management, Docker installation, VPS maintenance and more.


🔧 System tuning & management

1. Enable Swap virtual memory

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

2. TCP network tuning

wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh

3. Domestic DD reinstall (Debian 12)

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd 'your password'

4. NetCup VPS disk expansion

growpart /dev/vda 3
resize2fs /dev/vda3

🌐 Network & IP management

1. IP unlock check (streaming service / region check)

bash <(curl -sL IP.Check.Place)

or

bash <(curl -L -s check.unlock.media)

2. Fixing DNS resolution issues on BandwagonHost (BWG) VPS

Write the DNS config
sudo tee /etc/resolv.conf <<EOF
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 2001:4860:4860::8844
nameserver 2606:4700:4700::1111
EOF
Lock the DNS config (to prevent changes)
sudo chattr +i /etc/resolv.conf
Unlock the DNS config
sudo chattr -i /etc/resolv.conf

🛠️ Panels & tools

1. X-UI panel install (FranzKafkaYu version)

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

2. 3X-UI panel install (MHSanaei version)

bash <(curl -Ls https://raw.githubusercontent.com/MHSanaei/3x-ui/refs/tags/v2.5.8/install.sh)

3. One-click Docker install

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh

4. Kejilion script collection

curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

5. Fusion Monster test script (ECS all-round check)

bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

📌 Notes

  • Some scripts require root, so switch to an admin account with sudo -i or su root before running them.
  • Be careful with scripts from unknown sources — it's best to check what's inside before running them.
  • Some scripts may depend on wget or curl, so make sure they're installed:
apt install -y wget curl  # Debian/Ubuntu
yum install -y wget curl  # CentOS

That's the lot — bookmark it for later! 🚀

Translated by AI from 简体中文

34
26
Log into join the discussion.

26 replies

Sort order
  1. Nova Platinum 11mo ago

    感谢分享

    2
  2. will Gold 11mo ago

    谢谢分享

    1
  3. James 💯 Legend MANAGER 11mo ago

    感谢分享

    0
  4. lovoup Diamond 3 YEARS 11mo ago

    感谢分享,收藏备用

    0
  5. beteC Platinum 11mo ago

    感谢分享 点赞 收藏

    0
  6. mili Honorary Member Master Sages 11mo ago

    很全面 感谢分享

    0
  7. lengnode Gold 2 YEARS 11mo ago

    lovoup:
    感谢分享,收藏备用

    感谢分享,收藏备用

    0
  8. Arvin_Leung 🚗 Glory 3 YEARS 11mo ago

    感谢分享。 :xhj16:

    0
  9. kvj Gold 2 YEARS 11mo ago

    感谢分享

    0
  10. kvsn4p9mtz Diamond 3 YEARS 11mo ago

    感谢分享

    0
  11. tufei Diamond 11mo ago

    感谢楼主分享

    0
  12. tyedh 💕 Platinum 11mo ago

    感谢分享

    0
  13. unpack Gold 2 YEARS 11mo ago

    感谢分享

    0
  14. azhaoyihao Glory Flood King 11mo ago

    谢分享linux脚本

    0
  15. Grter Gold Never abandon, never give up 11mo ago

    支持!!!

    0
  16. kaylie Gold 11mo ago

    有用,收藏

    0
  17. luscious91 Platinum 11mo ago

    收藏一下

    0
  18. kof97zip Diamond 11mo ago

    谢谢大佬分享

    0
  19. andychris Gold 5mo ago

    太好了 很详细

    0
  20. kevin666 Gold 5mo ago

    Linux 发行版用的哪个?

    0
  21. Mooer Bronze 2d ago

    Really helpful for newbies, thanks for the guide!

    Translated by AI from 简体中文

    0
  22. llh Silver 1d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  23. GeorgeXie 💬 Master Never abandon 1d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  24. kewin Silver 1d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  25. Seraphim 1d ago

    Thanks for sharing

    Translated by AI from 简体中文

    0
  26. kure Gold 21h ago

    Thanks for sharing.

    Translated by AI from 简体中文

    0