openwrt安装自定义本地的ipk文件
美化 OpenWrt 的管理界面
默认的 OpenWrt 主题很是复古,这里我要介绍的是我很喜欢的一个主题,名字叫做 luci-theme-argon
操作实例
-
点击此处跳转到主题包release页面,下载最新版本的
*.ipk
文件即可 -
将主题包文件复制到路由器,电脑上打开终端模拟器,执行以下命令:
[eric@arch ~]$ rm -rf ~/.ssh
[eric@arch ~]$ scp '/home/eric/Downloads/luci-theme-argon_1.3-01-20191111_all.ipk' root@192.168.1.1:/tmp
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.
root@192.168.1.1's password:
luci-theme-argon_1.3-01-20191111_all.ipk 100% 1138KB 2.9MB/s 00:00
- 登录到路由器:
[eric@arch ~]$ ssh root@192.168.1.1
root@192.168.1.1's password:
BusyBox v1.30.0 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r1673-ea47656
-----------------------------------------------------
root@OpenWrt:~#
- 使用 opkg 安装主题包 luci-theme-argon
root@OpenWrt:~# opkg install /tmp/luci-theme-argon_1.3-01-20191111_all.ipk
Installing luci-theme-argon (1.3-01-20191111) to root...
Configuring luci-theme-argon.
uci: Entry not found
uci: Entry not found
uci: Entry not found
root@OpenWrt:~#
这个时候再用浏览器访问 192.168.1.1 ,就已经是应用了新主题啦。