debian 8 python SS server

apt-get install python-pip libsodium-dev  
pip install shadowsocks

创建配置文件/etc/shadowsocks.json

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"chacha20",
    "fast_open": false
}

后台运行ssserver

ssserver -c /etc/shadowsocks.json -d start (启动)
ssserver -c /etc/shadowsocks.json -d stop  (停止)

开机启动vi /etc/rc.local 在exit 0前添加启动命令

 

#END#

关于ipv6的一些配置和使用

Part1 :IPV6和IPV4同时使用网络变慢
通过配置系统的IPv4和IPv6优先级解决
以下部分内容来源http://www.netqna.com/2014/06/IPv6-Fallback.html
 Windows 設定方式
Windows: (::ffff:0:0即是指IPv4),此指令輸入後是永久生效,不必每次都重新設定。

C:\>netsh interface ipv6 show prefixpolicies
正在查詢使用中的狀態...

優先順序    標籤   首碼
----------  -----  --------------------------------
        50      0  ::1/128
        40      1  ::/0
        30      2  2002::/16
        20      3  ::/96
        10      4  ::ffff:0:0/96
         5      5  2001::/32


C:\>netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 100 4
確定。


C:\>netsh interface ipv6 show prefixpolicies
正在查詢使用中的狀態...

優先順序    標籤   首碼
----------  -----  --------------------------------
       100      4  ::ffff:0:0/96
        50      0  ::1/128
        40      1  ::/0
        30      2  2002::/16
        20      3  ::/96
         5      5  2001::/32

C:\>

- 阅读剩余部分 -

Ralink for linux Usb无线网卡驱动编译

已测型号:RT3070/RT3072/RT3370/RT5370/RT5372/RT3072

下载驱动包:http://pan.baidu.com/s/1wAGma

编译工具和依赖

debian/ubuntu:apt-get install make gcc build-essential dkms -y

opensuse :zypper in make gcc dkms -y

(其他linux发行版自行寻找以上依赖包名称,以下步骤相同)

解压并且进入目录2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO

cd 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO
#编辑os/linux/config.mk开启Wpa Supplicant
vi os/linux/config.mk

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
编译
make
make install

编译完成后重启网络管理器

/etc/init.d/network-manager restart

opensuse/debian/ubuntu ralink无线网卡驱动

 * Ralink RT2561 (RT2501/RT5201 chipset) firmware, version 1.2 (rt2561.bin)
 * Ralink RT2561S (RT2501 Turbo/RT5201 Turbo chipset) firmware, version 1.2 (rt2561s.bin)
 * Ralink RT2661 (RT2600/RT5600 chipset) firmware, version 1.2 (rt2661.bin)
 * Ralink RT2760/RT2790/RT2860/RT2890/RT3090 (RT2700P[D]/RT2700E[D]/RT2800P[D]/RT2800E[D]/RT3000E[D] chipset) firmware, version 34 (rt2860.bin, rt3090.bin)
 * Ralink RT2870/RT3070/RT3071/RT3072 (RT2800U[D] chipset) firmware, version 29 (rt2870.bin, rt3070.bin)
 * Ralink RT3071/RT3072 firmware, version 29 (rt3071.bin)
 * Ralink RT2571W/RT2671 (RT2501USB/RT5201USB chipset) firmware, version 1.8 (rt73.bin)
opensuse(启用non-oss): zypper in ralink-firmware
debian/ubuntu(启用non-free):apt-get install firmware-ralink