源碼編譯安裝Shadowsock

Shadowsock是一款翻牆利器,是Sock5代理,亦可以改做http代理等等

具體請查看http://zh.wikipedia.org/wiki/Shadowsocks

其對移動端的支持非常好,有各種版本的客戶端


我們在這邊下載python版本來安裝


我的系統 CentOS

如果直接安裝 可以使用

yum install python-setuptools && easy_install pip
pip install shadowsocks

如果源碼安裝 先下載

https://github.com/shadowsocks/shadowsocks

解壓 進入目錄

先得安裝python-setuptools

yum install python-setuptools

使用setup.py進行編譯,運行build命令

$python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/shadowsocks
copying shadowsocks/shell.py -> build/lib/shadowsocks
copying shadowsocks/udprelay.py -> build/lib/shadowsocks
copying shadowsocks/tcprelay.py -> build/lib/shadowsocks
copying shadowsocks/local.py -> build/lib/shadowsocks
copying shadowsocks/common.py -> build/lib/shadowsocks
copying shadowsocks/daemon.py -> build/lib/shadowsocks
copying shadowsocks/asyncdns.py -> build/lib/shadowsocks
copying shadowsocks/eventloop.py -> build/lib/shadowsocks
copying shadowsocks/server.py -> build/lib/shadowsocks
copying shadowsocks/encrypt.py -> build/lib/shadowsocks
copying shadowsocks/lru_cache.py -> build/lib/shadowsocks
copying shadowsocks/__init__.py -> build/lib/shadowsocks
creating build/lib/shadowsocks/crypto
copying shadowsocks/crypto/rc4_md5.py -> build/lib/shadowsocks/crypto
copying shadowsocks/crypto/table.py -> build/lib/shadowsocks/crypto
copying shadowsocks/crypto/util.py -> build/lib/shadowsocks/crypto
copying shadowsocks/crypto/sodium.py -> build/lib/shadowsocks/crypto
copying shadowsocks/crypto/__init__.py -> build/lib/shadowsocks/crypto
copying shadowsocks/crypto/openssl.py -> build/lib/shadowsocks/crypto

然後運行install命令

$sudo python setup.py install
running install
running bdist_egg
running egg_info
writing shadowsocks.egg-info/PKG-INFO
writing top-level names to shadowsocks.egg-info/top_level.txt
writing dependency_links to shadowsocks.egg-info/dependency_links.txt
writing entry points to shadowsocks.egg-info/entry_points.txt
reading manifest file 'shadowsocks.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'shadowsocks.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/shell.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/udprelay.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/tcprelay.py -> build/bdist.linux-x86_64/egg/shadowsocks
creating build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/rc4_md5.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/table.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/util.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/sodium.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/__init__.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/crypto/openssl.py -> build/bdist.linux-x86_64/egg/shadowsocks/crypto
copying build/lib/shadowsocks/local.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/common.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/daemon.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/asyncdns.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/eventloop.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/server.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/encrypt.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/lru_cache.py -> build/bdist.linux-x86_64/egg/shadowsocks
copying build/lib/shadowsocks/__init__.py -> build/bdist.linux-x86_64/egg/shadowsocks
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/shell.py to shell.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/udprelay.py to udprelay.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/tcprelay.py to tcprelay.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/rc4_md5.py to rc4_md5.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/table.py to table.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/util.py to util.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/sodium.py to sodium.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/crypto/openssl.py to openssl.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/local.py to local.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/common.py to common.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/daemon.py to daemon.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/asyncdns.py to asyncdns.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/eventloop.py to eventloop.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/server.py to server.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/encrypt.py to encrypt.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/lru_cache.py to lru_cache.pyc
byte-compiling build/bdist.linux-x86_64/egg/shadowsocks/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying shadowsocks.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying shadowsocks.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying shadowsocks.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying shadowsocks.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying shadowsocks.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
shadowsocks.local: module references __file__
shadowsocks.server: module references __file__
shadowsocks.shell: module references __file__
creating 'dist/shadowsocks-2.6.9-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing shadowsocks-2.6.9-py2.6.egg
removing '/usr/lib/python2.6/site-packages/shadowsocks-2.6.9-py2.6.egg' (and everything under it)
creating /usr/lib/python2.6/site-packages/shadowsocks-2.6.9-py2.6.egg
Extracting shadowsocks-2.6.9-py2.6.egg to /usr/lib/python2.6/site-packages
shadowsocks 2.6.9 is already the active version in easy-install.pth
Installing sslocal script to /usr/bin
Installing ssserver script to /usr/bin

Installed /usr/lib/python2.6/site-packages/shadowsocks-2.6.9-py2.6.egg
Processing dependencies for shadowsocks==2.6.9
Finished processing dependencies for shadowsocks==2.6.9

ok 安裝成功了 然後使用ssserver就可以了


Shadowsocks的歷史記錄啊 

http://www.v2ex.com/t/32777?p=1

好像得Fq


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章