1. ssh 沒密碼不讓登陸git
解決方法:使用串口登陸上 passwd root 設置密碼後 /etc/init.d/dropbear restartgithub
發現option BannerFile '/etc/banner' 被屏蔽掉了bootstrap
root@OpenWrt:/# vi /etc/config/dropbear
config dropbear
option PasswordAuth 'on'
option RootPasswordAuth 'on'
option Port '22'
# option BannerFile '/etc/banner'ssh
2. 編譯luci 是使用下面 地址的luci出現 500 status錯誤(luci 有問題),因此使用opkg install luci 安裝 出現下面錯誤ide
src-git luci https://github.com/openwrt/luci.gitlua
Collected errors:
* check_data_file_clashes: Package luci-proto-core wants to install file /usr/lib/lua/luci/tools/proto.lua
But that file is already provided by package * luci-basespa
解決方法: 加--force-overwrite opkg install luci --force-overwrite 但加以後仍是會出現500 status 錯誤rest
具體錯誤信息ssl
Status: 500 Internal Server Error
/usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'sysauth'.
A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/bootstrap/header'.
A runtime error occured: [string "/usr/lib/lua/luci/view/themes/bootstrap/hea..."]:78: attempt to index local 'boardinfo' (a nil value)
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>ci
解決方法: 將luci 所有卸除 opkg remove luci* 而後安裝 重啓後就ok了 不過版本很老0.11-1 版本 懷疑前一個最新版本不穩定
3. 加入proxy
vi /etc/opkg.conf
option http_proxy http://172.161.21.18:8080/
4. 卸載luci釋放更多空間
opkg remove luci* --force-depends
5. CC 版本須要openssl
apt-get install libssl-dev
6. intltool is too old
sudo apt-get install intltool
7. 安裝fdisk或其餘軟件,執行安裝的應用後不能運行 ,很怪異
root@OpenWrt:/usr/sbin# fdisk
-ash: fdisk: not found
解決方法: 估計是trunk版本上更新有問題,取固定穩定版本就ok
把下面的版本連接替換成固定穩定版本
#src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/base
#src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci
#src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/management
#src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages
#src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/routing
#src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/telephony
# src/gz chaos_calmer_targets http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/targets
替換成下面
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/management
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/packages/telephony
未解決的問題
root@OpenWrt:~# opkg update
Downloading ftp://192.168.1.10/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading ftp://192.168.1.10/base/Packages.sig.
Signature check failed.
Remove wrong Signature file.
經發現沒有生成chaos_calmer_base
root@OpenWrt:~# cat /var/opkg-lists/chaos_calmer_base
cat: can't open '/var/opkg-lists/chaos_calmer_base': No such file or directory
可能的解決方法沒有試 取CC一致的版本而後編譯,沒有太多時間去試了