8

LEDE(OpenWRT)更换软件源方法以及部分源信息备份(中科大USTC开源镜像站)

 2 years ago
source link: https://hellodk.cn/post/33
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

一、LEDE更换软件源方法

LEDE基于OpenWRT,使用的是OPKG的软件包管理系统。

Linux嵌入式开发环境项目(Linux Embedded Development Environment,LEDE),是路由器固件项目OpenWRT的一个复刻分支项目,并继承原来OpenWRT的开发目标。2018年1月LEDE和OpenWRT正式宣布合并,合并后的项目使用OpenWrt的名字、LEDE的源代码。
————引用自「LEDE」条目维基百科中文版

lede中的opkg软件源由/etc/opkg/distfeeds.conf文件定义。更换软件源的方法可以更改该文件中的内容实现。

官方默认的源

src/gz openwrt_koolshare_mod_core http://downloads.openwrt.org/snapshots/targets/x86/64/packages
src/gz openwrt_koolshare_mod_base http://downloads.openwrt.org/snapshots/packages/x86_64/base
src/gz openwrt_koolshare_mod_luci http://downloads.openwrt.org/snapshots/packages/x86_64/luci
src/gz openwrt_koolshare_mod_packages http://downloads.openwrt.org/snapshots/packages/x86_64/packages
src/gz openwrt_koolshare_mod_routing http://downloads.openwrt.org/snapshots/packages/x86_64/routing
src/gz openwrt_koolshare_mod_telephony
http://downloads.openwrt.org/snapshots/packages/x86_64/telephony

1. SSH下使用文本编辑器,比如VIM

我习惯使用vim,执行vim /etc/opkg/distfeeds.conf后,该文本文件有6行,输入:1,6d命令后回车快速删除所有,然后按i进入insert状态,使用键盘shift+insert快速输入已经拷贝到剪贴板的内容。

2. 使用LEDE的网页管理界面

进入系统,然后软件包,找到配置OPKG,更改opkg/distfeeds.conf文本框中的内容后保存即可。

二、LEDE可用的其他源

目前只用过USTC中科大的源,有了解的可以在评论区告诉我呀,谢谢!

安徽省合肥市 中国科学技术大学(CMNET广东移动出口)IP:202.141.178.13(旧版)

src/gz openwrt_koolshare_mod_core http://openwrt.proxy.ustclug.org/snapshots/targets/x86/64/packages
src/gz openwrt_koolshare_mod_base http://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/base
src/gz openwrt_koolshare_mod_luci http://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/luci
src/gz openwrt_koolshare_mod_packages http://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/packages
src/gz openwrt_koolshare_mod_routing http://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/routing
src/gz openwrt_koolshare_mod_telephony http://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/telephony

安徽省合肥市 中国科学技术大学 IP:202.38.64.246(最新)

src/gz reboot_core http://mirrors.ustc.edu.cn/lede/snapshots/targets/bcm53xx/generic/packages
src/gz reboot_base http://mirrors.ustc.edu.cn/lede/snapshots/packages/arm_cortex-a9/base
src/gz reboot_luci http://mirrors.ustc.edu.cn/lede/snapshots/packages/arm_cortex-a9/luci
src/gz reboot_packages http://mirrors.ustc.edu.cn/lede/snapshots/packages/arm_cortex-a9/packages
src/gz reboot_routing http://mirrors.ustc.edu.cn/lede/snapshots/packages/arm_cortex-a9/routing
src/gz reboot_telephony http://mirrors.ustc.edu.cn/lede/snapshots/packages/arm_cortex-a9/telephony

PS: 更改源前,建议备份!!!比如在/etc/opkg/目录下执行:cp distfeeds.conf distfeeds.conf.backup


PSS:(多加几个关键词,友情指路)
恩山无线论坛:https://right.com.cn/forum/
koolshare:http://koolshare.cn/


end.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK