Chrome with Goagent on ubuntu

14 Apr 2014

Install chrome on ubuntu

Run the commands below in the terminal to install chrome on ubuntu.


$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
$ sudo apt-get update
$ sudo apt-get install google-chrome-stable

Add goagent to work with chrome

Download the goagent, just click there: GoAgent, and then we need install some dependence, run the commands below.

$ sudo apt-get install python-dev python-greenlet python-gevent python-vte python-openssl python-crypto python-appindicator
$ sudo apt-get install python-dev python-pip && sudo pip install gevent --upgrade
$ sudo apt-get install python-openssl

Upload: go to the folder: "goagent/server/" run command: $ python uploader.zip; Then import certificate

$ sudo apt-get install libnss3-tools
$ certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n GoAgent -i 'path_to_goagent/local/CA.crt'

Make goagent run in the background default, we need write shell script: goagent.sh

Copy goagent.sh to folder (like: ~/soft/), then modify the file permission


$ sudo cp goagent.sh ~/soft/         # copy goagent.sh to folder /soft
$ chmod +x goagent.sh                # modify the file permission, in order to can be executed
$ sudo vim /etc/init.d/rc.local      # edit file rc.local
$ sh /home/your_name/soft/goagent.sh # add this line to below

Reference


https://code.google.com/p/goagent/
https://code.google.com/p/goagent/wiki/GoAgent_Linux
https://leowind.diandian.com/post/2012-07-04/40030165404
https://blog.csdn.net/marujunyy/article/details/8466255