一键添加1G Swap并固化的Shell脚本
写了一个一键添加1G Swap并固化的Shell脚本。 你可以直接复制运行👇: swap_setup.sh #!/bin/bash # 检查当前Swap状态 echo "当前内存和Swap情况:" free -h # 设置Swap文件路径和大小 SWAP_FILE="/swapfile" SWAP_SIZE="1G" # 创建Swap文件 echo "创建 $SWAP_SIZE Swap 文件..." sudo fallocate -l $SWAP_SIZE $SWAP_FILE 2>/dev/null || sudo dd if=/dev/zero…
Nuitka 在 Linux 下将 Python 脚本转换为二进制
Nuitka 在 Linux 下将 Python 脚本转换为二进制 1. 安装 Nuitka 在 Linux 下,先确保 Python 和 Nuitka 已安装: pip install nuitka 如果你的系统缺少 C 编译器(如 gcc),可以使用以下命令安装(以 Ubuntu 为例): sudo apt update && sudo apt install…
Common VPS Script Collection
# Common VPS Script Collection ## 1. DD Reinstallation Scripts ### The Most Powerful Script ```bash 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 'password'…
Common VPS Script Collection
# 常用VPS脚本整合 ## 1. DD重装脚本 ### 史上最强脚本 ```bash 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 'password' 萌咖大佬的脚本 bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11…
Openai Test
bash <(curl -L -s check.unlock.media) bash <(curl -sL IP.Check.Place)
Add luci ip change module
```bash #!/bin/sh # Define variables APP_NAME="ipchanger" APP_DIR="/usr/lib/lua/luci" CONTROLLER_DIR="$APP_DIR/controller/$APP_NAME" MODEL_DIR="$APP_DIR/model/cbi/$APP_NAME" CONFIG_FILE="/etc/config/$APP_NAME" CURRENT_THEME=$(uci get luci.themes.Theme_argon 2>/dev/null) # Create directories mkdir -p "$CONTROLLER_DIR" mkdir -p "$MODEL_DIR" # Create configuration file if [ ! -f "$CONFIG_FILE"…
ALLINONE
ALLINONE has been updated again within a day! This time, TG User ID, Token, and AES Key binding is mandatory. It is recommended to use Docker/Docker-Compose for one-click deployment. Apps like Tian…
Backup Openwrt rom & Compression Script
#!/bin/bash # Define the image file name IMG_NAME="rom.img" GZ_IMG_NAME="$IMG_NAME.gz" # Check if the required components exist, otherwise install them using opkg REQUIRED_COMMANDS=("fdisk" "pv" "gzip") OPKG_UPDATED_FLAG="/tmp/opkg_updated" # Update opkg (only if the update…