Coder Social home page Coder Social logo

pve-openwrt-tools's Introduction

proxmox



1 安装curl、wget、squashfs-tools工具

温馨提示:以下请在PVE命令行中操作

使用root用户登录,执行以下命令

apt update && apt install -y curl wget squashfs-tools


2 PVE一键换源、去订阅等


方式一:PVE中输入以下命令安装pve.sh,然后在PVE命令行中直接输入 pve 运行 推荐

wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/hyamine/pve-openwrt-tools/main/pve.sh -O /usr/bin/pve && chmod +x /usr/bin/pve

在PVE命令行中输入以下命令即可运行脚本

pve

方式二:直接运行

bash -c  "$(curl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/hyamine/pve-openwrt-tools/main/pve.sh)"



3 LXC容器OpenWrt安装、更新


3.1 下载


方式一:PVE中直接使用 openwrt 命令运行自动安装更新脚本 推荐

wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/hyamine/pve-openwrt-tools/main/openwrt.lxc.sh -O /usr/bin/openwrt && chmod +x /usr/bin/openwrt

在PVE命令行中输入以下命令运行脚本,进行安装或更新操作!

openwrt

方式二:直接运行

bash -c  "$(curl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/hyamine/pve-openwrt-tools/main/openwrt.lxc.sh)"

完成!


3.2 设置


固件下载相关

选项 说明 默认值
仓库地址 github用户名称/仓库名称 hyamine/openwrt-build-actions
TAG名称 所在release的tag名称 AutoUpdate-x86-lxc
API文件 所在release的附件api文件名称 zzz_api
固件格式 .tar.gz或.img.gz格式固件;
设置为default,默认获取云端两种格式固件;
设置为.tar.gz,则只获取云端.tar.gz格式固件;
设置为.img.gz,则只获取云端.img.gz格式固件
default

OpenWrt容器相关

选项 说明 默认值
容器ID lxc容器id,需要>=100 100
容器名称 lxc容器管理页面显示的名称 OpenWrt
CPU核心 lxc容器分配CPU核心数 4
内存大小 lxc容器分配内存大小,单位MB 2048
磁盘大小 lxc容器分配磁盘大小,单位GB 2
网络接口 lxc容器分配的网络接口数量 1
开机自启 是否启用开机自启动,1为开启,0为不开启 1
启动顺序 在所有PVE虚拟机的启动排序 1


openwrt.png



返回顶部

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.