My ubuntu proxy on virtual box

sudo apt-get install cntlm
sudo apt-get install docker.io
sudo apt-get install git vim

#add bartek to vboxsf group to access shared folder on vbox (relogin after)
sudo usermod -a -G vboxsf bartek

./no-proxy.sh:

#!/bin/bash
sudo cp ~/proxy/environment.orig /etc/environment
sudo rm /etc/apt/apt.conf.d/95proxies
sudo cp ~/proxy/resolv.conf.orig /etc/resolv.conf
cp ~/proxy/prefs.js.orig ~/.mozilla/firefox/q6dhtkuv.default/prefs.js
#cp ~/proxy/cntlm.conf.orig /etc/cntlm.conf
gsettings reset org.gnome.system.proxy mode
gsettings reset org.gnome.system.proxy.http port
gsettings reset org.gnome.system.proxy.http host
gsettings reset org.gnome.system.proxy use-same-proxy

./proxy.sh:

#!/bin/bash
sudo cp ~/proxy/environment.sabre-proxy /etc/environment
sudo cp ~/proxy/95proxies /etc/apt/apt.conf.d/
sudo cp ~/proxy/resolv.conf.proxy /etc/resolv.conf
cp ~/proxy/prefs.js.proxy ~/.mozilla/firefox/q6dhtkuv.default/prefs.js
#cp ~/proxy/cntlm.conf.proxy /etc/cntlm.conf
gsettings set org.gnome.system.proxy mode ‘manual’
gsettings set org.gnome.system.proxy.http port 3128
gsettings set org.gnome.system.proxy.http host ‘localhost’
gsettings set org.gnome.system.proxy use-same-proxy false

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s