Buy yourself a freedom 笔记版

发现有一点小Bug,现修改如下,方便大家使用。

Buy yourself a freedom

Original 2017-02-18 李笑来 学习学习再学习

版权声明

本文首发于微信公共帐号:
学习学习再学习(xiaolai-xuexi)
请注意:
无需授权即可转载;
甚至无需保留以上版权声明……
By the big word Freedom, here I only mean the freedom of watching netflix TV stream, rather tiny freedom, huh? It’ll cost you $60 per year, perhaps alone with $100 or so for a new router… and several hours of learning and researching by yourself.

Netflix doesn’t provide services all over the world, albeit we can buy membership regardless of our location.

  1. SS on Linode

So… we need an IP address located in US, and fortunately, it’s not hard to obtain… not hard at all. Simply signup linode.com, create a virtual machine (they call it a linode) running Ubuntu, in which you’d install a shadowsocks server.

And fortunately again, the settingup process is so easy that everyone can get it done perfectly.

Add a linode, the cheapest option will do (Linode 1024), which costs $5/mo, with 1TB transfer. IMPORTANT: Be careful, choose “Location” among these options: Fermont, CA / Dallas, TX / Atlanta, GA / Newark, NJ.(Newark亲测是可以用netflix)
In the linode Dashboard, click link “Deploy an Image”, choose image: Ubuntu 16.04 LTS, and setup a root password for later login.
Back to dashboard, click the “Boot” button, and wait for a while.
Click the “Remote Access” tab right after “Dashboard”, at the bottom of the page, click the link “Launch Lish Console”.
Type “root” and then press the “Enter” key on your keyboard (this is your login username of the linode), and type the root password (you set it up in step 2) and press the “Enter” key. You logged in!
Change “YOURPASSWORD” to your own password in the following code, and then copy and paste all the following code to the Lish window, wait for a while (maybe several couple of seconds) , and press the “Enter” key.

运行sudo apt-get install -y python-pip 这里会出错,我们需要改以下文件

vi /etc/sysctl.conf
加入这三行

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

然后 ESC 然后输入 wq 存档离开 ( vi 操作,进阶指南请网上搜索)
然后执行 sudo sysctl -p

sudo apt-get update
sudo apt-get install -y python-pip

sudo pip install shadowsocks
原文以下句子也有字符串的错误已经修改
sudo apt-get install -y python-m2crypto

此处有字符串的错误, 已经修改

cat >>/etc/shadowsocks.json<<EOF
{
"server":"0.0.0.0",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"yourpassword",
"timeout":300,
"method":"rc4-md5"
}
EOF

sudo chmod 755 /etc/shadowsocks.json

cat >>/etc/rc.local<<EOF
/usr/local/bin/ssserver –c /etc/shadowsocks.json
EOF

sudo ssserver -c /etc/shadowsocks.json -d start

Done!

Now you’ve got an IP address in United States, and a “tunnel” capable of sending Netflix streaming to you, and of course, you’d better buy a membership of Netflix.

BTW, Use my referral code on linode, you’ll get some small discount on linode price:

90e830ad0f9cccf433cbae2b24228d6c544a5b18

  1. Mac/Windows/iOS/Android

Find an appropriate SS client for your device here:

https://github.com/shadowsocks

  1. Android TV

MiBox, MiTV, Android Fire TV (or Stick), and many more “Smart TV”s are all running on Android system, and all have their ways to install apk. You can find apk files at:

https://apkpure.com

You’d look for:

Netflix
Ted
Shadowsocks
… and if you like, you could even look for NES emulator, huh.

  1. Routes

It would be nice that SS client set up in routes so that every device in the LAN can play netflix streaming without any configuration (so that you might need no SS client the previous section mentioned).

Mi Routes
Hiwifi
ASUS RT-AC68U
Every one of these routes will do. But messing up with routes need some patience, and you’ll have to do your own homework, but it’s still pretty simple, since all you need is asking Google, Yeap, search, search and search, that is what they call a “Research”.

Actually, I did this merely for watching coming season of House of Cards…

本来以为oK ,结果以上操作方式的surge不能用,用以下方式OK,特别感谢孙同学

sudo apt-get update
sudo apt-get install -y python-pip

sudo pip install shadowsocks
(出错locale.Error: unsupported locale setting的话,解决export LC_ALL=C 再执行一次上一句)
sudo pip install --upgrade pip

`sudo apt-get install -y python-m2crypto

cat >>/etc/shadowsocks.json<<EOF
{
"server":"0.0.0.0",
"server_port":443,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"woaibeijintiananmen",
"timeout":300,
"method":"aes-256-cfb"
}
EOF

sudo chmod 755 /etc/shadowsocks.json

cat >>/etc/rc.local<<EOF
/usr/local/bin/ssserver –c /etc/shadowsocks.json
EOF

sudo ssserver -c /etc/shadowsocks.json -d start

Comments

comments powered by Disqus