Openwrt编译进阶-修改密码、路由连接数、时区及主题
来源:互联网 发布:java导出excel并下载 编辑:程序博客网 时间:2024/05/21 22:46
默认情况下root是没有密码的,需设定密码才能开启ssh。
修改shadow文件,位于package/base-files/files/etc
root:$
1
$wEehtjxj$YBu4quNfVUjzfv8p/PBo5.:
0
:
0
:
99999
:
7
:::
密码经过加密,将密码修改成admin。
2)修改路由连接数,优化网络参数
连接数默认情况下是1.6万多吧。可以选择性修改。
修改sysctl.conf文件,位于package/base-files/files/etc
net.netfilter.nf_conntrack_max=
65535
65535自行替换。
3)默认中文,修改主机名,添加并修改默认主题,设定时区
默认中文,添加并默认主题
修改feeds/luci/libs/web/root/etc/config
option lang auto
改为
option lang zh_cn
并添加
config
internal
languages
option en
'English'
option zh_cn
'chinese'
添加主题
1.首先打开trunk/feeds/luci/themes这个目录,你会发现里面有很多主题(除了base为基础包外)每一个文件夹就
是一个主题
2.我们得修改makefile文件,使其制定编译的时候能找到openwrtcn这个主题
找到路径为trunk/feeds/luci/contrib/package/luci下面的makefile文件双击打开
搜索OpenWrt.org这样很快就定位到添加主题的地方了,在下面空白处增加一句
效果如下
$(eval $(call theme,base,Common base
for
all themes))
$(eval $(call theme,openwrt,OpenWrt.org ))
$(eval $(call theme,bootstrap,Bootstrap Theme))
$(eval $(call theme,openwrtcn,openwrtcn Theme (
default
),,,
1
))
$(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\
Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
$(eval $(call theme,freifunk-generic,Freifunk Generic Theme,\
Manuel Munz <freifunk-at-somakoma-dot-de>))
保存退出即可。
修改默认主题
修改feeds/luci/libs/web/root/etc/config
option mediaurlbase /luci-
static
/openwrt.org
可根据需要将openwrt.org修改为Bootstap、openwrtcn、freifunk-bno、freifunk-generic
修改主机名,设定时区
修改package/base-files/files/etc/config/system
config system
option conloglevel
8
option cronloglevel
8
option hostname Openwrt
option timezone Asia/Shanghai
option timezone CST-
8
config timeserver ntp
list server
0
.openwrt.pool.ntp.org
list server
1
.openwrt.pool.ntp.org
list server
2
.openwrt.pool.ntp.org
list server
3
.openwrt.pool.ntp.org
option enable_server
0
option hostname Openwrt 设定主机名
option timezone Asia/Shanghai 时区设置为亚洲/上海
option timezone CST-8 正8区
list server 就是ntp服务器了。
- Openwrt编译进阶-修改密码、路由连接数、时区及主题
- Openwrt编译进阶-修改密码、路由连接数、时区及主题
- openwrt修改默认时区
- openwrt 编译进阶
- openwrt编译进阶
- Openwrt编译进阶
- Openwrt编译进阶
- openwrt修改登录密码
- OpenWRT 修改LuCI:语言、主题
- OpenWRT 修改LuCI:语言、主题
- mysql修改连接密码及root密码
- openwrt 显示当前时间及更改时区
- openwrt 显示当前时间及更改时区
- openwrt修改默认主题的方法
- 编译极路由的OpenWRT固件
- 修改ubuntu 时区及时间
- openwrt编译修改固件
- Oracl连接数查询及修改
- ROR资源列表
- C# 中yield使用
- ios7 ssl证书验证问题
- 实现图片缩放的Gallery
- 加入收藏 兼容性较好的 代码 兼容ie firefox chrome(经过测试 该代码无效)
- Openwrt编译进阶-修改密码、路由连接数、时区及主题
- 【县委书记拉二胡遭吐槽:公园大爷都比他强[衰]】
- lspci
- BPM Process Instances – Faults, Rollback & Recovery – Part 1
- mogodb 设置用户名和密码
- 下载apt-get源软件包
- 关于数组的几道面试题
- 【LeetCode】Find Minimum in Rotated Sorted Array 解题报告
- Distinct subsequence