12月 162013
 

废话不多说了,下载源码: https://github.com/madeye/shadowsocks-libev

直接编译会出错:

/tmp/cciqCfzf.s: Assembler messages: /tmp/cciqCfzf.s:2903: Error: opcode not supported on this processor: mips1 (mips1) `sync'

修改 \shadowsocks-libev-master\libev 下的 ev.c :(其实跟RT-N66U+tomato编译安装gevent及pyOpenSSL 中gevent的修改是一样的)

找到 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory") 改为 #define ECB_MEMORY_FENCE __asm__ __volatile__ (".set mips2; sync; .set mips0" ::: "memory") 有两处,都改吧。

Continue reading »

12月 162013
 

首先从官网查询到M2Crypto最新版本为0.21.1,其基本需求为:

0.21.1: Python 2.3 or newer m2urllib2 requires Python 2.4 or newer OpenSSL 0.9.7 or newer Some optional new features will require OpenSSL 0.9.8 or newer SWIG 1.3.28 or newer required for building SWIG 1.3.30 or newer may be required with Python 2.5 or newer and Python 2.4 with Py_ssize_t patches

安装SWIG,ipkg install swig即可搞定。

Continue reading »

12月 222012
 

先来看一下官方对gevent的介绍

gevent is a Python networking library that uses greenlet to provide a synchronous API on top of libevent event loop. Features include: Fast event loop based on libevent (epoll on Linux, kqueue on FreeBSD). Lightweight execution units based on greenlet. API that re-uses concepts from the Python standard library (e.g. Event, Queue). Cooperative socket and ssl modules. Ability to use standard library and 3rd party modules written for standard blocking sockets (gevent.monkey). DNS queries performed through libevent-dns. Fast WSGI server based on libevent-http.

虽然新版本的GoAgent不再要求Gevent环境,但Gevent可以提高运行效率,那为什么不装呢?Google后发现这篇文章,本文参考这篇文章后编译成功,在此谢谢此文作者。

Continue reading »

9月 012012
 

asus的RT-N66U绝对可以称得上是家用级无线路由器中的性能怪兽,600MHz cpu,256MB ram,32MB flash,双usb2.0接口,RT-N66U 提供2.4GHz 和 5GHz 同步双频的传输速度均可分别达到450Mbps,致使总速得以提供稳定的高达900Mbps的连接速度。4 x RJ45 for 10/100/1000 BaseT for LAN, 1 x RJ45 for 10/100/1000 BaseT for WAN,更重要的是其内置的microSD(TF)卡插槽,可玩性极强。

71y4HsB9eJL._AA1500_

自从3月份海淘入手后,第一时间就拆机插入一张16GB 的TF卡,拆机过程中发现其做工也绝对是旗舰级别的,这半年来的使用感受来说,绝对是物有所值!其实一直想把RT-N66U+tomato安装openware的过程写一下的,但一直懒得动手。前几天刚好闲下来,把小站从godaddy迁到Linode,就顺便写了几篇。今天就再把optware安装过程写一下吧。废话就扯到这里。下面正式开始!

Continue reading »