前提:
- 先要把U盘插入路由器的usb口,大多数情况Openwrt都会自动挂载的吧,尽量找当前年或前一年的固件。ssh进路由器,可以看到/mnt/sda1
- 让路由器联网,因为需要从网络上下载安装包;(当然也可以提前下载发到/tmp下面安装。。。)
2. Python 安装的命令
mkdir /mnt/sda1/packages/
echo dest usb /mnt/sda1/packages/ >> /etc/opkg.conf
opkg update
opkg -dest usb install python pyopenssl python-openssl
# 文档都准备完毕后【可选】
cp -R /mnt/sda1/local/ /
# 配置wallproxy
## 1. Get GAE, done
## 2. Download Wallproxy 到U盘
## 3. Run: /mnt/sda1/packages/usr/bin/python2.7 /local/startup.py &
- /mnt/sda1/packages/usr/bin/python2.7 /mnt/sda1/local/startup.py &
## 4. Upload: /mnt/sda1/packages/usr/bin/python2.7 /mnt/sda1/server/uploader.py
# upload之前要修改如下配置文件测参数:
- ip = 0.0.0.0:8087
- ***1|***2 /* Enter the GAE app name*/
- ***@gmail.com /* Enter appengine/gmail account*/
- XXX /* Enter password*/
## 5. Update proxy.ini with in Router, By: i.e. 192.168.1.1:8087
- listen on 0.0.0.0
- uploaded appids.
- Update to open router’s firewall
## 6.
# 最后运行
/mnt/sda1/packages/usr/bin/python2.7 /local/startup.py &
或者:/mnt/sda1/packages/usr/bin/python2.7 /mnt/sda1/local/startup.py &
## 7. Import ca.crt for browser
## [Troubleshoot] on GAE:https://appengine.google.com/, app 运行是否正常?
- 是否因为 2-Step Verification is: OFF
- 使用ssh代理链接上网址后,查看app正常,是否是因为cmd中router无法链接到appengine.google.com?如何给它router一个代理?用来完成upload
- 2014Sep30, 用代理来完成上传,用mac来完成上传。。。继续尝试 resolved because of security setup, been defaulted
- 帐户所授权限 应用和网站 查看全部
不够安全的应用的访问权限
[已启用 ]设置
- Need to enable this