openwrt issues

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一致的版本而后编译,没有太多时间去试了

相关文章
相关标签/搜索