openwrt更换软件源
一、打开openwrt终端
vi /etc/opkg/distfeeds.conf
注释原有软件源,如下
x86架构源
src/gz openwrt_core http://downloads.openwrt.org/releases/23.05.0/targets/x86/64/packages src/gz openwrt_base http://downloads.openwrt.org/releases/23.05.0/packages/x86_64/base src/gz openwrt_luci http://downloads.openwrt.org/releases/23.05.0/packages/x86_64/luci src/gz openwrt_packages http://downloads.openwrt.org/releases/23.05.0/packages/x86_64/packages src/gz openwrt_telephony http://downloads.openwrt.org/releases/23.05.0/packages/x86_64/telephony
mips架构源
src/gz openwrt_core https://downloads.openwrt.org/releases/23.05.2/targets/ramips/mt7621/packages src/gz openwrt_base https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/base src/gz openwrt_luci https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/luci src/gz openwrt_packages https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/packages src/gz openwrt_routing https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/routing src/gz openwrt_telephony https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/telephony
Esc wq保存退出
更新源
opkg update
如遇认证报错,vi /etc/opkg.conf关闭认证,注释如下内容
#option check_signature
注释完再次opkg update
测试安装软件
opkg install snmpd opkg install snmp-utils
找到snmp配置文件打开添加如下
设置系统信息 sysLocation Location sysContact Admin admin@example.com 设置 SNMP 团体名(Community) rocommunity public 10.10.10.106
编译安装gcc(可选)
opkg install gcc make
安装shc
tar zxvf shc-release.tar.gz
wget https://github.com/neurobin/shc/archive/release.tar.gz cd shc-release/ ./configure make make install
cd src
cp shc /usr/bin
shc安装包下载:https://neurobin.org/projects/softwares/unix/shc/#usage
更多
作者:运维密码 出处:https://mefj.com.cn/ 本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 如果文中有什么错误,欢迎指出。以免更多的人被误导。 扫一扫 运维公众号 |