OpenWRT Tips
来自Jack's Lab
(版本间的差异)
(→参考) |
(→参考) |
||
(未显示1个用户的6个中间版本) | |||
第1行: | 第1行: | ||
+ | == Overview == | ||
+ | |||
+ | * https://openwrt.org/ | ||
+ | * [https://openwrt.org/docs/techref/targets/start 支持的处理器] | ||
+ | * [https://blog.ihomura.cn/2018/10/28/%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E7%9A%84%E4%B8%80%E7%82%B9%E5%BF%83%E5%BE%97%E2%80%94%E2%80%94%E6%8A%8Afish%E7%A7%BB%E6%A4%8D%E5%88%B0OpenWrt%E4%B8%8A/ 交叉编译的一点心得 —— 把 fish 移植到 OpenWrt 上] | ||
+ | * [https://blog.csdn.net/hui523hui523hui523/article/details/38366427 hello world] | ||
+ | * [https://www.openwrtdl.com/wordpress/%e4%bd%bf%e7%94%a8docker%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%baopenwrt%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83 docker build] | ||
+ | |||
+ | <br> | ||
+ | |||
== 编译 == | == 编译 == | ||
− | < | + | <source lang=bash> |
$ git clone git://git.openwrt.org/openwrt.git | $ git clone git://git.openwrt.org/openwrt.git | ||
− | |||
$ cd openwrt | $ cd openwrt | ||
− | |||
$ make menuconfig | $ make menuconfig | ||
− | |||
$ make -j4 | $ make -j4 | ||
− | </ | + | </source> |
更多编译输出: | 更多编译输出: | ||
第67行: | 第74行: | ||
* http://wiki.xinchejian.com/wiki/Install_OpenWRT_on_TPlink_WR703N | * http://wiki.xinchejian.com/wiki/Install_OpenWRT_on_TPlink_WR703N | ||
− | + | * http://www.fanyue.info/2014/07/openwrt.html openwrt 内置vpn | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<br><br> | <br><br> | ||
<br><br> | <br><br> | ||
<br><br> | <br><br> |
2021年2月8日 (一) 17:29的最后版本
目录 |
[编辑] 1 Overview
[编辑] 2 编译
$ git clone git://git.openwrt.org/openwrt.git $ cd openwrt $ make menuconfig $ make -j4
更多编译输出:
$ make V=s
[编辑] 3 增加软件包
软件包索引存储在 feeds 文件夹中 packages.index 中
在 packages/ 目录中增加新软件包的 Makefile 后,运行:
scripts/feeds install -a
[编辑] 4 默认开启无线
打开 package/kernel/mac80211/files/lib/wifi/mac80211.sh,找到:
119 $ht_capab 120 # REMOVE THIS LINE TO ENABLE WIFI: 121 option disabled 1
注掉 'option disable 1' ,重新编译即可
[编辑] 5 默认主机名
打开 package/base-files/files/etc/config/system,修改 hostname 后面的内容即可
1 config system 2 option hostname OpenWrt <------- 主机名 3 option timezone UTC 4 5 config timeserver ntp 6 list server 0.openwrt.pool.ntp.org 7 list server 1.openwrt.pool.ntp.org 8 list server 2.openwrt.pool.ntp.org 9 list server 3.openwrt.pool.ntp.org 10 option enable_server 0
[编辑] 6 参考
- http://www.fanyue.info/2014/07/openwrt.html openwrt 内置vpn