Article View: cn.comp.hacker
Article #13396UBUNTU下架设及使用GAPPProxy
From: RSS Feed For GFW Blog
Date: Sun, 04 Oct 2009 10:06
Date: Sun, 04 Oct 2009 10:06
57 lines
5675 bytes
5675 bytes
作者:令狐葱 来源:[令狐葱@关注互联网][1] 一、服务器的架设 1. 必须要有个Google帐号并申请了Google app engine,地址为[http://appengine.google.com/(][2]注:申请要手机号的) 2. 下载并安装Python,可以使用新立得。 3. 下载并解压安装Google App Engine 的开发包,地址为[http://code.google.com/appengine/downloads.html(][3]我安装在/home/dennis/google_appengine)。 4. 去[http://code.google.com/p/gappproxy/][4] 中下载fetchserver-1.0.0beta-fix.tar.gz这个文件,并解压到Google App Engine SDK安装目录里(即/home/dennis/google_appengine)。 5. 把fetchserver中的app.yaml用编辑器打开,修改内容如下: 第一行的部分填你的application帐号,比如你的AppEngine地址是[aaa.appspot.com][5],那就是application帐号就是aaa 6. 终端运行下面的命令,上传文件。输入:appcfg.py update fetchserver 然后它会提示你输入google帐户和密码 dennis@dennis-laptop:~$ cd google_appengine/ dennis@dennis-laptop:~/google_appengine$ python appcfg.py update fetchserver appcfg.py:41: DeprecationWarning: the sha module is deprecated; use the hashlib module instead os.path.join(DIR_PATH, 'lib', 'antlr3'), Scanning files on local disk. Initiating update. Email: [jiguofei@gmail.com][6] Password for [jiguofei@gmail.com][6]: Cloning 3 application files. Deploying new version. Checking if new version is ready to serve. Will check again in 1 seconds. Checking if new version is ready to serve. Will check again in 2 seconds. Checking if new version is ready to serve. Closing update: new version is ready to start serving. 即说明已经成功了。 二、本地设置 1. 下载网址上的完整源码包,把里面的localproxy解压出来放在任意文件夹内,比如localproxy 2. 用文本编辑器编辑文件夹中的proxy.conf,里面有三行fetch_server = …….的,随便改一行为[http://abcde.appspot.com/fetch.py][7]并且去年本行前面的#就可以保存了。 3. 用cd命令进入localproxy然后运行python proxy.py即可,如果看到以下四行,说明成功: dennis@dennis-laptop:~/gappproxy-1.0.0beta/localproxy$ proxy.py -------------------------------------------- HTTP Enabled : YES HTTPS Enabled: YES Direct Fetch : YES Local Proxy : Fetch Server : [http://linghucong.appspot.com/fetch.py][8] -------------------------------------------- 4. 设置浏览器的本地代理,就是把代理IP设置成为127.0.0.1,端口设为8000。当然也可以使用autoproxy。 5. 如果图方便可以在桌面建立一个launcher,Type类型选application in terminal,命令Command写上python /file_folder/localproxy/proxy.py。(其中file_folder是localproxy目录的路径) [1]: http://blog.donews.com/jiji262/archive/2009/10/04/1564428.aspx [2]: http://appengine.google.com/( [3]: http://code.google.com/appengine/downloads.html( [4]: http://code.google.com/p/gappproxy/ [5]: http://aaa.appspot.com [6]: mailto:jiguofei@gmail.com [7]: http://abcde.appspot.com/fetch.py [8]: http://linghucong.appspot.com/fetch.py 敬请订阅我们:http://feeds2.feedburner.com/chinagfwblog,在twitter跟随我们:http://twitter.com/cdt。翻墙工具介绍和下载:http://www.sesawe.org/和http://www.sesawwe.net/。![][9] [9]: https://blogger.googleusercontent.com/tracker/5500297126185736776-2664250291374795340?l=www.chinagfw.org Contentes HTML URL: http://www.chinagfw.org/2009/10/ubuntugappproxy.html Send By Feed RSS2eMail BOT V2.65 Admin By Liuxing99
Technical Details
Message-ID:
<4ac88616@news.liuxing99.3322.org>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xbb.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!61.160.212.82.MISMATCH!www.shinco.com!news.liuxing99.3322.org!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 85629cb6ee,b02db4a595d17f64,start X-Google-Attributes: gid85629cb6ee,public,usenet X-Google-NewGroupId: yes X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!Xbb.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!61.160.212.82.MISMATCH!www.shinco.com!news.liuxing99.3322.org!not-for-mail From: RSS Feed For GFW Blog <gfwblog-list@szb66.vicp.net> Newsgroups: cn.comp.hacker Subject: UBUNTU下架设及使用GAPPProxy Date: Sun, 04 Oct 2009 10:06:00 -0000 Organization: A poorly-installed InterNetNews site Lines: 57 Message-ID: <4ac88616@news.liuxing99.3322.org> NNTP-Posting-Host: 58.209.242.18 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Trace: www.shinco.com 1254655551 16437 58.209.242.18 (4 Oct 2009 11:25:51 GMT) X-Complaints-To: news@www.shinco.com NNTP-Posting-Date: Sun, 4 Oct 2009 11:25:51 +0000 (UTC) Received-Path: <gfwblog-list@szb66.vicp.net> X-Feed-By: news.liuxing99.3322.org User-Agent: Feed RSS2eMail BOT V2.65 X-Gateway-Administrator: bianlule@bianlule.3322.org X-Gateway-From: dnews-gateway@news.liuxing99.3322.org