Have to say, Linux really has a kind of the magic that people use to fall in love, just recently Ubuntu out of 16.04, then simply installed a Win10+ubuntu dual system, also is comfort that forever left in the old hard disk virtual machine bar.
Anyway, after the change on Ubuntu let me the only unhappy things may be unable to Google, So,ss walk ~
First, the installation of the SS
Please switch directly to the super user if you are not comfortable with the frequent sudo input password, and the following will be done by default with ordinary users (I am not responsible for any consequences caused by commands such as entering RM-RF when the Super user logs in)
There are basically two kinds of SS under Linux, one is the command line mode, the other is with the graphical interface, the two effects are the same, but here only the command line (personal preferences ~)
1. Preparatory work
Make sure your computer is connected to the Internet and that PIP is installed
What Not installed? sudo apt-get install PYTHON-PIP, if prompted to rely on the dependency also get on, too troublesome to use Yum, don't ask me what Yum is?
2. Installing the SS
There's nothing to say.
sudo pip install Shadowsocks
Second, configure the server and connect
There are two ways to enter configuration information, one is directly configured by the input command, and the other is to save the configuration information to a file and then read
1.
Direct Input CommandRun
Terminal input Sslocal-help can see the Help file,
After reading this should understand how to use it? The command is as follows
Sslocal-s 1.1.1.1-p 8388-k "Your passwd"-B 127.0.0.1-l 1080
-S behind with your server IP,-p followed by your remote port number (default 8388),-K followed by your password (written in double quotation marks), the other with the default option is good (want to change see the Help document)
2.
file read Run
In/etc/shadowsocks/config.json there is a profile, permissions for-rwr--r--, individuals do not recommend direct modification (just personal advice), copy the content is good, and then in your ~ directory to create a new. json file (or anywhere else, as you like)
Touch ss.json/home/dumblidor/#我的文件放在这里, please create a new file according to your actual situation
OK, anyway, now that we have a. json file, and then open the edit, the content is as follows
{ "Server":"1.1.1.1", "Server_port":8388, "local_address":"127.0.0.1", "Local_port": the, "Password":"your passwd", "Timeout": -, "Method":"AES-256-CFB"}
Where server fills your server ip,sever_port fill remote port number, local_address local ip,l_p local port, password fill password, timeout is the delay time, method is encryption method, fill in and save according to the actual situation
Run the following command (the path and file name are subject to actual)
Sslocal-c/Home/dumblidor/Ss.json
For normal startup, do not close the terminal
Third, configure the proxy mode
SS normal operation is not finished, want to science online also need some small settings
1. Global mode
Linux under the SS really not as good as other platforms, want to implement the global mode, please set as follows:
System Settings >> Network >> Network agents >> Methods >> Manual
Then fill in the IP and port of the socks host, and then click Apply to the entire system
2.PAC mode
To implement a PAC requires a PAC file, which is available in two ways, 1. Network 2. Local
If you want to get the Internet, you can find out how to use the local PAC file in this way.
First, we need to install Genpac to generate PAC files
sudo pip install Genpac
Then run the following command (if you change the local IP and port number, the following command needs to make the same change)
Genpac--proxy= "SOCKS5 127.0.0.1:1080"--gfwlist-proxy= "SOCKS5 127.0.0.1:1080"-O autoproxy.pac--gfwlist-url= "https ://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt "
You will find that your directory generates a. pac file, remembering its location (you can now modify the PAC file directly, and, of course, the unmodified version can be used directly), and then set the method as follows:
System Settings >> Network >> Network agents >> methods >> Automatic
At the configuration URL, fill in the file://followed by your PAC file path, and then click Apply to the entire system
Four, start-up operation
Many online methods, the spirit of being lazy is lazy principle, I was directly in rc.local Riga a command, as for other methods, please self-google~
Installation and use of the SS under Ubuntu