openwrt 默认配置编译(密码 语言 IP)

密码 password:

password加密后为:$1$zQaIXyAb$gyLqELl5w39SAgDAlg8A10:18376:0:99999:7

1
2
3
4
5
6
7
root:$1$zQaIXyAb$gyLqELl5w39SAgDAlg8A10:18376:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
nobody:*:0:0:99999:7:::
aria2:x:0:0:99999:7:::
dnsmasq:x:0:0:99999:7:::
中文支持:

make menuconfig

选项:LuCI  —> Modules  —> Translations

1
2
English (en)
Chinese (zh-cn)

修改源配置文件:

1
2
3
4
5
6
7
vi feeds/luci/modules/luci-base/root/etc/config/luci

修改为:
config core main
option lang zh_cn
option mediaurlbase /luci-static/bootstrap //bootstrap主题
option resourcebase /luci-static/resources

如果使用中配置主题出错,更换主题路径/etc/config/luci

opnwrt源码修改默认IP
1
vi package/base-files/files/bin/config_generate

搜索并修改:192.168.1.1

修改主机名,设定时区:

路径:package/base-files/files/bin/config_generate

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vi package/base-files/files/bin/config_generate

delete system.@system[0]
add system system
set system.@system[-1].hostname='OpenWrt'
set system.@system[-1].zonename='Asia/Shanghai'
set system.@system[-1].ttylogin='0'
set system.@system[-1].log_size='64'
set system.@system[-1].urandom_seed='0'

delete system.ntp
set system.ntp='timeserver'
set system.ntp.enabled='1'
set system.ntp.enable_server='1'
add_list system.ntp.server='0.openwrt.pool.ntp.org'
add_list system.ntp.server='1.openwrt.pool.ntp.org'
add_list system.ntp.server='2.openwrt.pool.ntp.org'
add_list system.ntp.server='3.openwrt.pool.ntp.org'


hostname Openwrt 设定主机名
zonename 时区上海
add_list server ntp服务器
1
2
3
4
5
6
7
8
9
10
csjtl@ubuntu:~/OpenWRT/openwrt$ vi package/base-files/files/etc/banner

_______ ________ __
.-----.-----.-----. .----. _
- _ -__ _ _
_______ _____________________ ____
__ W I R E L E S S F R E E D O M
-----------------------------------------------------
%D %V, %C
-----------------------------------------------------

页面尾部版本号显示:

1
csjtl@ubuntu:~/OpenWRT/openwrt$ vi package/base-files/files/etc/openwrt_release
openwrt更多内容:

https://tl8517.com/category/system/openwrt/

OpenWrt在线编译(官方网址)及自定义(openclash,设备名,密码等等)

openclash 自定义的本地节点转换(subconverter)

自用的节点商,对于非常高清的视频没有需求可以试试,关键便宜,一个月十几块。
闪电

shadow文件里的字段格式

https://www.cnblogs.com/Genesis-007/p/5367060.html