前提:
- 先要把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