Giter Site home page Giter Site logo

openwrt_lxc_cloud's Introduction

说明

整个项目采用Actions-OpenWrt,按照说明使用模板即可,透明,只是修改了sh脚本增加了一些插件源,修改了默认IP,账号密码仍为root/password。

也有编译好的供下载直接使用,只保留最新编译,见编译更新记录。具体包可以参看config文件,主要是helloworld,pw,nps,kms,zerotier,adguard等。

编译更新

- 2022.02.10 云编译更新x86-64版本rootfs,可作为模板创建lxc。 https://molezz.lanzouj.com/iOYplzuwf1i 密码:4dh6 (版本跨度较大,如果从备份配置恢复,ssh登陆,编辑/etc/config/rpcd将option socket /var/run/ubus.sock 修改为option socket /var/run/ubus/ubus.sock,然后/etc/init.d/rpcd restart) - 2022.02.09 云编译N1的固件,利用rootfs文件import docker精简使用,仅hello,pw,nps等,N1为armbian系统。https://molezz.lanzouj.com/inHzezugy0f 密码:2ggk

  • 2021.06.14 利用github action云编译了一个rootfs,可直接作为模板创建lxc。 https://molezz.lanzoui.com/ilrvlq7vduh 密码:7y6v

  • 2021.04.27 第二次编译,去除默认的迅雷快鸟,uu加速等用不上的组件,加了一部分主题和iperf3测速,不占多少资源。启动内存较低,详见config中luci部分。或自行注释

  • 2021.04.26 第一次编译,已Actions-OpenWrt的Lean为整合Lienol和各插件,形成config记录

  • to do +ntfs-3g,fuse-utility -- kmod-ntfs, samb4


改动部分

1 build-openwrt.yml

可将 'SSH connection to Actions' 默认值改成 true, 用于触发config自定义, 也可以改回false, 删去默认config将某个合适的config改名为.config后启动编译

2 diy-part1.sh

添加源,丰富插件选择

sed -i '$a src-git kenzok8 https://github.com/kenzok8/openwrt-packages' feeds.conf.default
sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default

3 diy-part2.sh

修改默认IP


参考引用

cd lede/package
git clone https://github.com/kenzok8/openwrt-packages.git
git clone https://github.com/kenzok8/small.git
 
# 然后执行:

./scripts/feeds update -a
./scripts/feeds install -a

二次编译

进入lede目录
cd lede

备份config文件
cp -r .config xxx.config

更新系统软件包
sudo apt update && sudo apt upgrade -y

git pull 

更新Feeds
vi /lede/feeds.conf.default
添加
src-git kenzok https://github.com/kenzok8/openwrt-packages
src-git small https://github.com/kenzok8/small


./scripts/feeds update -a && ./scripts/feeds install -a

清除编译配置和缓存
rm -rf ./tmp && rm -rf .config 
make clean

进入编译配置菜单
make menuconfig

Tips

  • 软件包升级提示wget 8, 需要注释掉这几行,因为不存在更新ipk地址,或者采用其他编译好更新源.
  • 如想修改默认IP,可以在编译前修改diy-part2.sh中192.168.1.83部分为自己的

openwrt_lxc_cloud's People

Contributors

molezz avatar

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.