There are plenty of tutorials about how to setup a minimum Goagent server and client. I won’t reinvent the wheel here. Who may want to read this post.
- You have already setup the Goagent server and client, and it seems working ok.
- You still can’t visit Google+, Twitter, Facebook, or so on.
- You want to wipe out all the warning information, and make your Goagent work perfectly.
I used my virtual Ubuntu Server 12 to simulate the problem. By default I will talk about Ubuntu, then add necessary tips about Mac. Firstly make sure your Goagent version is newer than mine. Then check your user’s privilege.
If you get a warning above, try sudo python proxy.py , then the program will try to install the certificate for you automatically.
On Mac you may need to install the certificate by directly open it in the Finder.
Now it’s not the end of the story. You may have noticed that there’s still another warning.
You have installed Python but you may haven’t installed the pyopenssl or gevent library. (The pyopenssl is import if you want to visit sites now only support https protocol. The gevent makes your proxy run more efficiently, if you are concerned about your cpu’s temperature and global warming : D).
On my machine, the pyopenssl is already available. I recommend to install easy_install first, it’s similar to the famous gem in ruby world, please follow their official instructions to install them if you don’t have one. Then just run the command sudo easy_install pyopenssl .
When installing the gevent library with sudo easy_install gevent , you may meet the problem below.
You need to install some development tools to compile the gevent. Install it by sudo apt-get install python-dev and sudo apt-get install libevent-dev , then run sudo easy_install gevent again. Finally start your Goagent again, you will get a none warning environment.
On Mac things become much more complicated or more time consuming. I recommend to follow these steps.
- Install the latest Xcode (you need gcc compiler).
- Install macports (works similar to the ubuntu’s apt-get, better not to choose homebrew).
- sudo port install libevent-dev .
- Install easy_install.
- sudo easy_install gevent.
- sudo easy_install pyopenssl.
Now you have built up the basic platform to run the Goagent. Then you should be careful of the setting of it, the proxy.ini file.
Your current proxy profile should better on https mode.
At the end you get somethings like this.
If you still have any problem on your Goagent, please let me know.