升级Ubuntu系统

sudo apt-get update

安装依赖

sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler

编译开始

git clone https://github.com/RabbitAkk/lede-2

CD lede-2

./scripts/feeds update -a

./scripts/feeds install -a

make menuconfig 

单编译

make -j1 V=s

多核编译

make V=s

install错误

PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g')

修改文件权限

sudo chmod 777 lean/ -R

云编译

cd openwrt && make menuconfig

单独编译ipk插件

 
一、插件源码下载
1.锐捷

git clone https://github.com/KyleRicardo/MentoHUST-OpenWrt-ipk

2.Rosy主题

git clone https://github.com/rosywrt/luci-theme-rosy.git

 
二、下载存放路径

lede/lede/package

 
三、配置
make menuconfig
选中,但不编译进固件
1.锐捷

-> Network

     -> Ruijie  <M> mentohust......................................... A Ruijie Client

Daemon
-> LuCI

   -> 3. Applications <M> luci-app-mentohust...................... MentoHUST 802.1X Client for LuCI

 
2.Rosy主题

-> LuCI -> 4. Themes luci-theme-rosy............................................... Rosy
Theme

 
四、编译

make package/luci-app-serverchan/compile V=99

 
五、ipk生成路径
路径:

bin/packages/mipsel_24kc/base

文件名

mentohust_0.3.1-1_mipsel_24kc.ipk

 
六、上传ipk至路由器
清除原有密钥

ssh-keygen -f "/home/cheng/.ssh/known_hosts" -R 192.168.10.1

拷贝至路由器

scp mentohust_0.3.1-1_mipsel_24kc.ipk root@192.168.10.1:/tmp
scp luci-app-mentohust_1.1.-0_all.ipk root@192.168.10.1:/tmp
scp luci-theme-rosy_git-19.069.38477-5ed9705-1_all.ipk root@192.168.10.1:/tmp

 
七、安装
ssh进入路由器

cd /tmp
opkg install luci-app-serverchan_1.39-5_all.ipk

 
八、安装状态

opkg install libncurses6_6.1-5_x86_64.ipk

Last modification:December 29, 2021
If you think my article is useful to you, please feel free to appreciate