openwrt安装自定义本地的ipk文件

 

美化 OpenWrt 的管理界面

默认的 OpenWrt 主题很是复古,这里我要介绍的是我很喜欢的一个主题,名字叫做 luci-theme-argon

操作实例

  1. 点击此处跳转到主题包release页面,下载最新版本的 *.ipk 文件即可

  2. 将主题包文件复制到路由器,电脑上打开终端模拟器,执行以下命令:

<span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">rm</span> -rf ~/.ssh <span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">scp</span> <span class="token string">'/home/eric/Downloads/luci-theme-argon_1.3-01-20191111_all.ipk'</span> root@192.168.1.1:/tmp The authenticity of host <span class="token string">'192.168.1.1 (192.168.1.1)'</span> can<span class="token string">'t be established. RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '</span>192.168.1.1<span class="token string">' (RSA) to the list of known hosts. root@192.168.1.1'</span>s password: luci-theme-argon_1.3-01-20191111_all.ipk 100% 1138KB 2.9MB/s 00:00
<span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">rm</span> -rf ~/.ssh <span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">scp</span> <span class="token string">'/home/eric/Downloads/luci-theme-argon_1.3-01-20191111_all.ipk'</span> root@192.168.1.1:/tmp The authenticity of host <span class="token string">'192.168.1.1 (192.168.1.1)'</span> can<span class="token string">'t be established. RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '</span>192.168.1.1<span class="token string">' (RSA) to the list of known hosts. root@192.168.1.1'</span>s password: luci-theme-argon_1.3-01-20191111_all.ipk 100% 1138KB 2.9MB/s 00:00
[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
  1. 登录到路由器:
<span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">ssh</span> root@192.168.1.1 root@192.168.1.1's password: BusyBox v1.30.0 <span class="token punctuation">(</span><span class="token punctuation">)</span> built-in shell <span class="token punctuation">(</span>ash<span class="token punctuation">)</span> _______ ________ __ <span class="token operator">|</span> <span class="token operator">|</span>.-----.-----.-----.<span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">|</span>.----.<span class="token operator">|</span> <span class="token operator">|</span>_ <span class="token operator">|</span> - <span class="token operator">||</span> _ <span class="token operator">|</span> -__<span class="token operator">|</span> <span class="token operator">||</span> <span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">||</span> _<span class="token operator">||</span> _<span class="token operator">|</span> <span class="token operator">|</span>_______<span class="token operator">||</span> __<span class="token operator">|</span>_____<span class="token operator">|</span>__<span class="token operator">|</span>__<span class="token operator">||</span>________<span class="token operator">||</span>__<span class="token operator">|</span> <span class="token operator">|</span>____<span class="token operator">|</span> <span class="token operator">|</span>__<span class="token operator">|</span> W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt SNAPSHOT, r1673-ea47656 ----------------------------------------------------- root@OpenWrt:~
<span class="token punctuation">[</span>eric@arch ~<span class="token punctuation">]</span>$ <span class="token function">ssh</span> root@192.168.1.1 root@192.168.1.1's password: BusyBox v1.30.0 <span class="token punctuation">(</span><span class="token punctuation">)</span> built-in shell <span class="token punctuation">(</span>ash<span class="token punctuation">)</span> _______ ________ __ <span class="token operator">|</span> <span class="token operator">|</span>.-----.-----.-----.<span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">|</span>.----.<span class="token operator">|</span> <span class="token operator">|</span>_ <span class="token operator">|</span> - <span class="token operator">||</span> _ <span class="token operator">|</span> -__<span class="token operator">|</span> <span class="token operator">||</span> <span class="token operator">|</span> <span class="token operator">|</span> <span class="token operator">||</span> _<span class="token operator">||</span> _<span class="token operator">|</span> <span class="token operator">|</span>_______<span class="token operator">||</span> __<span class="token operator">|</span>_____<span class="token operator">|</span>__<span class="token operator">|</span>__<span class="token operator">||</span>________<span class="token operator">||</span>__<span class="token operator">|</span> <span class="token operator">|</span>____<span class="token operator">|</span> <span class="token operator">|</span>__<span class="token operator">|</span> W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt SNAPSHOT, r1673-ea47656 ----------------------------------------------------- root@OpenWrt:~
[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:~
  1. 使用 opkg 安装主题包 luci-theme-argon
root@OpenWrt:~ Installing luci-theme-argon <span class="token punctuation">(</span>1.3-01-20191111<span class="token punctuation">)</span> to root<span class="token punctuation">..</span>. Configuring luci-theme-argon. uci: Entry not found uci: Entry not found uci: Entry not found root@OpenWrt:~
root@OpenWrt:~ Installing luci-theme-argon <span class="token punctuation">(</span>1.3-01-20191111<span class="token punctuation">)</span> to root<span class="token punctuation">..</span>. Configuring luci-theme-argon. uci: Entry not found uci: Entry not found uci: Entry not found root@OpenWrt:~
root@OpenWrt:~ 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 ,就已经是应用了新主题啦。

原文链接:https://www.cnblogs.com/housestudy/p/11925727.html

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享