okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 5个月前
11. 编译过程中出现http 400 proxy 错误
使用root 权限 sudo -j8 V=s 可以解决
okass 在版块 WiFi Router 中发起了话题 Linux系统安装网络测速工具speed test 3年, 5个月前
1. For Ubuntu
## If migrating from prior bintray install instructions please first…
# sudo rm /etc/apt/sources.list.d/speedtest.list
# sudo apt-get update
# sudo apt-get remove speedtest
## Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
# sudo apt-get remove speedtest-clisudo apt-get install…[阅读更多]
okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 5个月前
10. 编译完后进入后台出错
/usr/lib/lua/luci/template.lua:97: Failed to execute template ‘sysauth’.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template ‘header’.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template ‘themes/argonne/header’.
A runtime error occurred: [string “/usr/lib/l…[阅读更多]okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 5个月前
9. 编译输出提示磁盘空间不够
error: ext4_allocate_best_fit_partial: failed to allocate 3819 blocks, out of space?
okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 5个月前
8. 提示passwall 架构不兼容
* pkg_hash_fetch_best_installation_candidate: Packages for luci-app-passwall found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package luci-app-passwall.
* satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-i18n-passwall-zh-cn:okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 5个月前
合入上面的passwall 包后编译错误
Collected errors:
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/openwrt/openwrt_en/openwrt/build_dir/target-x86_64_musl/root-x86/etc/hotplug.d/ntp/25-dnsmasqsec
But that file is already provided by package * dnsmasq
* check_data_file_clashes: Package dnsmasq-full wants to install file /home/op…[阅读更多]okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
10.[issue] Openwrt 编译过程太慢,如何优化
编译慢的原因
- 与硬件有关。高配置的电脑,编译更快,毫无疑问
- 与网络有关(主因)。
剖析
openwrt 编译过程会检查依赖库在本地是否缓存,如果没有就会下载,这是首次编译超级慢的主要原因
依赖库镜像都是在国外,天朝帝国内,访问不通畅,下载很慢,经常下载失败,即使有重试机制,但挂一个晚上也未必编译成…
okass 在版块 照明 中发起了话题 米家mesh球状灯泡蓝牙版本组网方案优化 3年, 6个月前
环境:
- 餐厅吊顶灯使用3个球泡蓝牙版,组成一个蓝牙mesh组进行统一控制
- 周围有多个蓝牙网关
现状:
- 该mesh组经常出现不稳定,无法开关控制等情况。
- 几个灯有时候动作不同步
- 重启周围的蓝牙网关等设备、更新固件都无法改善,这个问题必现。
解决措施:
- 在3个吊灯的入口出安装一个蓝牙mesh 通断器,接管mesh灯组的智能开关行为
- 蓝牙mesh灯组的色温控制等仍然由原先的设定进行控制。
okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 6个月前
6. openwrt 编译添加passwall 或第三方插件
源码地址:
SSR-plus源码地址:https://github.com/fw876/helloworld
PassWall源码地址:https://github.com/xiaorouji/openwrt-passwall1> 按照本站之前的编译教程: openwrt 固件编译及常见问题 操作,将openwrt的仓库克隆到本地:
# git clone https://github.com/Lienol/openwrt
2> 添加软件包源
# vim /openwrt/feeds.conf.default.
添加如下源:
src-git helloword h…[阅读更多]
okass 在版块 Linux平台 中回复了话题 ubuntu的ubuntu–vg-ubuntu–lv空间扩容 3年, 6个月前
LVM逻辑卷创建实验环境:
四.实验环境:
1. 首先从空的硬盘sdb上创建两个分区sdb1 1G,sdb2 2G. 为接下来做LVM做准备.
为了后期便于维护管理,记得给分区加上标示,这样即使你不在的情况下,别人看到标示了就不会轻易动这块区域了. LVM的标识是8e,设置完成后记得按w保存
1、创建逻辑卷
step1. 物理卷 pv. 将新创建的两个分区/dev/sdb1 /dev/sdb2转化成物理卷,主要是添加LVM属性信息并划分PE存储单元.
step2. 创建卷组 vgdata ,
并将刚才创建好的两个物理卷加入该卷组. 可以看出默…[阅读更多]
okass 在版块 Linux平台 中回复了话题 ubuntu的ubuntu–vg-ubuntu–lv空间扩容 3年, 6个月前
LVM逻辑卷创建实验环境:
四.实验环境:
1. 首先从空的硬盘sdb上创建两个分区sdb1 1G,sdb2 2G. 为接下来做LVM做准备.
为了后期便于维护管理,记得给分区加上标示,这样即使你不在的情况下,别人看到标示了就不会轻易动这块区域了. LVM的标识是8e,设置完成后记得按w保存
1、创建逻辑卷
step1. 物理卷 pv. 将新创建的两个分区/dev/sdb1 /dev/sdb2转化成物理卷,主要是添加LVM属性信息并划分PE存储单元.
step2. 创建卷组 vgdata ,
并将刚才创建好的两个物理卷加入该卷组. 可以看出默…[阅读更多]
okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 6个月前
5. openwrt 安装第三方主题
以argon 主题为例
1> 主题安装条件
- openwrt 原生系统 及其衍生类系统, lede等都可以
- 磁盘空间充足能够访问外网
2> 安装方法
A. 通过在线安装方法安装
# opkg update
# opkg install wget
# opkg install ca-certificates
#注意这里版本可能不是最新的,打开https://github.com/jerrykuku/luci-theme-argon/releases/可以看到最新链接
wget –no-check-certific…[阅读更多]
okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 6个月前
4. openwrt 如何升级安装软件包
1>登录SSH
2>更新软件列表
3>一键更新所有软件包opkg update
opkg list-upgradable | cut -f 1 -d ‘ ‘ | xargs opkg upgradeokass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
9. [issue] 自行编译的openwrt 无法ping通外网,无法更新软件包
[fixed]
请参考本章的文章: https://blog.wirelesslink.net/4840.html 对LAN口做配置。注意DNS一定要写,不然会出现无法ping通的情况
okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
8.[issue] x86_64 luci 编译错误
Fatal error: can’t create po2lmo.o: Permission denied
make[4]: *** [Makefile:2: po2lmo.o] Error 1
make[4]: Leaving directory ‘/home/openwrt/feeds/luci/modules/luci-base/src’
make[3]: *** [Makefile:45: /home/openwrt/build_dir/hostpkg/luci-base/.built] Error 2
make[3]: Leaving directory ‘/home/openwrt/feeds/luci/modules/luci-base’okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
8.[issue] x86_64 平台编译时错误
time: package/feeds/packages/golang/host-compile#0.38#0.16#8.50
ERROR: package/feeds/packages/golang [host] failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/golang/host/compile] Error 1
make[2]: Leaving directory ‘/home/openwrt’
make[1]: *** [package/Makefile:110: /home/openwrt…[阅读更多]okass 在版块 软件平台 中回复了话题 openwrt系统定制 3年, 6个月前
3. 安装luci主题
标准的openwrt编译完成后,基本进入不了后台,此时需要安装luci主题来完成
安装Web管理界面LuCY;
1.打开显示的路由器Linux终端中,输入“opkg update”,开始下载Packages.gz并更新;
2.输入“opkg install luci”,安装LuCY主体,先开始自动下载各种关联库,下载完会自动安装配置。
3.输入“/etc/init.d/uhttpd enable”回车,打开uhttpd服务;
4.输入“/etc/init.d/uhttpd start”回车,让uhttpd自启动;
5.在电脑端的浏览器中输入“xxx.xxx.xxx.xxx”,可访问路由器就表示LuCY安装成功;okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
7. [issue] 编译过程中出现如下错误
SHELL= flock /home/xxx/openwrt/openwrt/tmp/.linux-firmware-20211216.tar.xz.flock -c ‘ /home/xxx/openwrt/openwrt/scripts/download.pl “/home/xxx/openwrt/openwrt/dl” “linux-firmware-20211216.tar.xz” “eeddb4e6bef31fd1a3757f12ccc324929bbad97855c0b9ec5ed780f74de1837d” “” “@KERNEL/linux/kernel/firmware” ‘
okass 在版块 软件平台 中回复了话题 openwrt编译固件详细步骤及常见问题汇总 3年, 6个月前
6. 编译意外中断或者需要重新编译
先清理一下之前的编译产物,但是config配置不变,再继续编译
# make clean
# make menuconfig (如果需要增删配置,没有则跳过)
# make -j$(($(nproc) + 1)) V=s
okass 在版块 Linux平台 中回复了话题 Linux常见问题问题合集汇总 3年, 6个月前
12. Ubuntu提示根分区/root空间不足
执行
# sudo apt-get install gparted
安装硬盘分区管理器,并执行sudo gparted打开软件
调整home分区的大小,比如压缩100G,可以看到在最后有100G分区…[阅读更多]- 读取更多