首先生成SSH key:
ssh-keygen -t dsa复制SSH Key到ROS:
scp ~/.ssh/id_dsa.pub admin@192.168.1.21:登录到ROS导入SSH Key:
user ssh-keys import public-key-file=id_dsa.pub user=admin 然后就可免验证登录ROS了:
ssh admin@192.168.1.21 发布时间:May 26, 2013 // 分类:ROS // No Comments
首先生成SSH key:
ssh-keygen -t dsa复制SSH Key到ROS:
scp ~/.ssh/id_dsa.pub admin@192.168.1.21:登录到ROS导入SSH Key:
user ssh-keys import public-key-file=id_dsa.pub user=admin 然后就可免验证登录ROS了:
ssh admin@192.168.1.21 发布时间:May 26, 2013 // 分类:OpenWrt // 1 Comment
OpenWRT安装PPPoe:
opkg update
opkg install rp-pppoe-server配置PPPoe:
cat > pppoe-server-options << EOF
# PPP options for the PPPoE server
# LIC: GPL
require-chap
login
lcp-echo-interval 10
lcp-echo-failure 2
ms-dns 8.8.8.8
EOF设置PPPoe账号、密码:
cat >/etc/ppp/chap-secrets << EOF
#USERNAME PROVIDER PASSWORD IPADDRESS
www.haiyun.me * www.haiyun.me *
EOF启动PPPoe服务脚本:
cat >/etc/init.d/pppoe-server << EOF
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
start() {
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.0.1.0/24 -j MASQUERADE
/usr/sbin/pppoe-server -k -T 60 -I eth1.1 -N 100 -L 10.0.1.1 -R 10.0.1.2
}
stop() {
iptables -t nat -D POSTROUTING -s 10.0.1.0/24 -j MASQUERADE
killall pppoe-server
}
EOF
chmod +x /etc/init.d/pppoe-server遇到的问题1,客户端连接错误代码619,使用tcpdump监听数据包:
Generic-Error "RP-PPPoE: Child pppd process terminated"查看pppoe错误日志:
May 26 13:31:07 OpenWrt daemon.notice pppd[4972]: Connect: ppp0 <--> /dev/pts/1
May 26 13:31:07 OpenWrt daemon.notice pppd[4972]: Modem hangup
May 26 13:31:07 OpenWrt daemon.notice pppd[4972]: Connection terminated.解决方法:启动参数加-k,加载内核pppoe模块启动。
遇到的问题2,客户端连接错误代码691,原因:
用户名或密码填写错误
require-chap账号密码文件确认为chap-secrets 发布时间:May 11, 2013 // 分类:PHP // No Comments
cd php-5.2.17/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
make
make install编译时如遇到错误:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.安装imap库:
yum install libc-client-devel加载imap到php配置文件:
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension=imap.so