默認情況下root是沒有密碼的,需設定密碼才能開啓ssh。
修改shadow文件,位於package/base-files/files/etc
1
|
root:$ 1 $wEehtjxj$YBu4quNfVUjzfv8p/PBo5.: 0 : 0 : 99999 : 7 ::: |
密碼經過加密,將密碼修改成admin。
2)修改路由連接數,優化網絡參數
連接數默認情況下是1.6萬多吧。可以選擇性修改。
修改sysctl.conf文件,位於package/base-files/files/etc
1
|
net.netfilter.nf_conntrack_max= 65535 |
65535自行替換。
3)默認中文,修改主機名,添加並修改默認主題,設定時區
默認中文,添加並默認主題
修改feeds/luci/libs/web/root/etc/config
1
|
option lang auto |
改爲
1
|
option lang zh_cn |
並添加
1
2
3
|
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這樣很快就定位到添加主題的地方了,在下面空白處增加一句
效果如下
1
2
3
4
5
6
7
8
9
10
|
$(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
1
|
option mediaurlbase /luci- static /openwrt.org |
可根據需要將openwrt.org修改爲Bootstap、openwrtcn、freifunk-bno、freifunk-generic
修改主機名,設定時區
修改package/base-files/files/etc/config/system
1
2
3
4
5
6
7
8
9
10
11
12
|
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服務器了。