Ultrasurf is an awesome way to use remote proxies via a locally created proxy server. As mentioned in my previous post, you can either set the browser proxy settings to use 127.0.0.1 (localhost) as the IP address and 9666 as the port number. This is the default setting used by Ultrasurf, which acts as a local proxy server and connects to remote proxies.
There could be situation where we have such a requirement. Suppose you are accessing a website via Ultrasurf and the website blocks the specific proxy IP address. In this case you will have to change the remote proxy server used by Ultrasurf. One way of doing this is via the Ultrasurf user interface, which gives an option of choosing one of three servers. However, it is not easy to programmatically change the remote proxy server Ultrasurf uses.
Note that, if you close the Ultrasurf application and reopen it, most of the time it connects to a new remote proxy server. Hence, a solution for the above problem is to close and reopen the Ultrasurf application as and when you need to change the remote proxy server used by Ultrasurf. This can be achieved from the following simple python code.
This blog is all about informatory articles based on my experience on various areas, including information technology, communications research, stock trading, traveling and cooking.
Showing posts with label popen. Show all posts
Showing posts with label popen. Show all posts
Saturday, 5 October 2013
Thursday, 22 August 2013
Running Ultrasurf in Ubuntu
Proxy servers become handy when you want to unblock a website or when you want to automate website querying. Ultrasurf provides the functionality of a proxy server. It runs a local proxy server at 127.0.0.1:9666. Here 127.0.0.1 is the IP address (localhost) and 9666 is the port used by the local Ultrasurf proxy server. You can change your browser proxy settings to point to this proxy server and start browsing.
Ultrasurf is a very useful tool if you are looking for secure proxy connections and if you have the need to change the proxy servers frequently.
In this article I present the steps to run ultrasurf in Ubuntu.
Ultrasurf is a very useful tool if you are looking for secure proxy connections and if you have the need to change the proxy servers frequently.
In this article I present the steps to run ultrasurf in Ubuntu.
I used the following in the steps described in this article:
1. ubuntu 12.04 lts
2. ultrasurf 13.01
3. wine 1.5
Steps:
1. Install wine 1.5 using terminal/command prompt - use folllowing commands in the given sequence
$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine1.5
$ sudo apt-get update
$ sudo apt-get install wine1.5
Please check http://www.winehq.org/ for more information on wine!
2. Download ultrasurf from http://ultrasurf.us/ and extract to any folder you prefer.
3. Run ultrasurf by double-clicking on the executable ultrasurf file u1301.exe. Alternately, the application can be launched by the following command:
$ wine u1301.exe
In one of my upcoming posts, I will explain how Ultrasurf can be used along with python programming language to auomate website queries.
$ wine u1301.exe
In one of my upcoming posts, I will explain how Ultrasurf can be used along with python programming language to auomate website queries.
Labels:
http proxy,
popen,
proxy,
python,
subprocess,
ubuntu,
ultrasurf,
wine
Subscribe to:
Posts (Atom)