follow the blog here

Shadowsocks is an open source socks5 proxy that can be used to bypass firewall and unblock websites. Originally developed by a Chinese called clowwindy on Github, now the application has been implemented in all kinds of programming languages such as C, C++, Go, Python and the like. This Tutorial will guide you through setting up your own Shadowsocks server and how to use it on your desktop computer, android and iOS. I assume you already have access to a VPS or dedicated server.

Shadowsocks VS VPN

As you may already know, you can use VPN (Virtual Private Network) to bypass firewall and protect your anonymity on the web. Do you need another software like shadowsocks to do the same? One thing you can find is that When you are using VPN, all your Internet traffic is routed through VPN. Because VPN servers are usually located outside your country, this can slow down your Internet speed especially when you are visiting websites inside your country.

Shadowsocks comes to the rescue! Besides a global proxy setting, shadowsocks can also be setup in a way that some of your applications go through shadowsocks and other applications go through normal traffic. For example, you can use Google Chrome to bypass firewall, visit Google, Facebook, YouTube and use Firefox to visit sites that isn’t blocked in your area.

By the way, shadowsocks client will automatically reconnect to shadowsocks server if there’s a disconnect. Although you can configure VPN client to do the same, but that will take extra work.

Setting Up Shadowsocks on Your Server

There are many ways to install shadowsocks on Linux server, but I will show you the easiest way.

First install

 python pip and then use pip to install shadowsocks. m2crypto will make encryption a little faster

Debian/Ubuntu

sudo apt-get install python-pip python-m2crypto
sudo pip install shadowsocks

Create a configuration file:

sudo vi /etc/shadowsocks.json

Put the following text into the file.

{
"server":"your_server_ip", 
"server_port":8000, 
"local_port":1080, 
"password":"your_passwd", 
"timeout":600, 
"method":"aes-256-cfb" 
}

Explanation of each field:

  • server:  your hostname or server IP (IPv4/IPv6).
  • server_port:  server port number.
  • local_port:  local port number.
  • password:  a password used to encrypt transfer.
  • timeout:  connections timeout in seconds.
  • method:  encryption method, “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4”, etc. Default is table, which is not secure. “aes-256-cfb” is recommended.

Replace the green text with your info. Save and close the file, then start shadowsocks server.

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

To stop shadowsocks server:

sudo ssserver -d stop

Restart Shadowsocks server:

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

Check Shadowsocks log

less /var/log/shadowsocks.log

You may need to allow traffic through your Shadowsocks server port in iptables firewall by running command: 
sudo iptables -I INPUT -p tcp --dport 8000 -j ACCEPT

Auto Start on System Boot

If you want shadowsocks server to automatically start on system boot, then edit /etc/rc.local file

sudo vi /etc/rc.local

Add the following line to the file above exit 0 line

/usr/bin/python /usr/local/bin/ssserver -c /etc/shadowsocks.json -d start


By Whitson Gordon on  at 

Say you have a film on DVD, but you want to watch it on your phone, tablet, somewhere else. You can “rip” that DVD—or turn it into a video file on your computer—to play it wherever you want. Here’s how to do it.

Ripping a movie to your hard drive can seem like a complicated task, but it’s actually pretty simple. There are a lot of ways to do it and a lot of different programs out there, but our favorite method uses a program called Handbrake. It’s easy to use, it’s available for Windows, Mac, and Linux, and it’ll convert your file into compatible formats for any device, like an iPad or Android phone. The video above should walk you through the process, but you can follow along with these instructions.

  1. Head to Handbrake’s homepage and download the program. Install it to your computer as directed.
  2. By default, Handbrake can rip unprotected DVDs, but most DVDs you buy from the store have copy protection. To get around this, you’ll need to install libdvdcss. On Windows, you can download this file separately (here for 32-bit systems and here for 64-bit systems), rename it to libdvdcss.dll (Note: the file should be left its name of libdvdcss-2.dll when downloaded, but it could be safe have another copy with name of libdvdcss.dll in the Handbrake program folder) , and put it in your Handbrake program folder (C:\Program Files\Handbrake). If you’re on a Mac, download this file and double-click to install it.
  3. Insert the DVD you want to rip, and open Handbrake.
  4. Click the Source button in the upper left-hand corner and choose your DVD drive from the list. It will start scanning your DVD, which could take a few minutes.
  5. When it’s done, head to the “Title” drop-down menu in the upper left hand corner of the window. This is where you’ll select which part of the DVD you want to rip. In the case of movies, it’s usually the longest title, so just pick that one. If you’re ripping episodes of a TV show, it’s usually the 22 or 44 minute ones, and you’ll have to rip them each separately.
  6. Click the Browse button on the right side of the window. Navigate to where you want to save your movie file, and type in a file name in the box. Click OK.
  7. Next, head to the bar on the right labeled “Presets”. This is where you’ll choose what format the resulting file will be in. If you just want to watch it on your computer, the “Normal” or “High Profile” preset is fine. If you want to watch it on something like your iPod or iPhone, though, pick the correct preset from the list.
  8. Hit the Start button at the top of the window. This will take awhile, so you’ll probably want to grab a cup of tea.
  9. When it’s done, you’ll get a popup notification. From there, you can double-click on your movie file to watch it, or sync it to your device of choice. Enjoy!

It seems like a lot of steps at first, but it really isn’t very difficult—especially after your first time through. Once you’ve installed the libdvdcss file, for example, you can skip that step in the future.

It’s just a matter of picking the right chapter from the DVD and ripping it to the right format. Note that if you’re going to be ripping a lot of DVDs, you can head to Tools > Options (or Handbrake > Preferences, if you’re on a Mac), and hit “Browse” next to “Default Path” to choose a location for all the other movies you rip in the future. You can also click “Add to Queue” instead of “Start” and rip multiple files at once, which is great for ripping TV shows.

Good luck and enjoy your newly ripped DVD!