update hosts for Google and facebook in Ubuntu Kylin LTS 14.04
- Tools : scarpy and shell command
- Written by : Susreal at SJTU
- Version : 1.0
- 2015.04.03
1.install scarpy
tool for ubuntu
reference: http://www.linuxidc.com/Linux/2015-03/115306.htm
a)
pip
package : sudo apt-get install python-pip
b)
python dev
: sudo apt-get install python-dev
c)
SCRAPY
: sudo pip install scrapy
2.add twisted
sudo apt-get install python-twisted
3.copy 'getHosts' and 'updateHosts.sh' to /home
4.each time, just open the terminal and input:
sudo bash updateHosts.sh
Then, you can google free!
Notic : This tool will backup your hosts to getHost
and rename it hosts_backup
, so if you don't like the result, you can replace the hosts easily.
If there are ANY OTHER USEFUL hosts settings, DONNOT use this tool!
Susreal