Add authenticated proxy to terminal based applications

aboSamoor | October 5, 2008 | 11:28 am

My friend Mustafa talked about adding proxy as environment variable by exporting the http proxy server in a previous post.
I another problem,found what about a proxy server that needs authentication ? There is no problem if the application read the Gnome/KDE proxy settings because you can add the authentication parameters easily there, the problem comes from wget and other terminal based programs…
Read the rest of this entry »

How to configure proxy on terminal, apt-get proxy terminal?

Mustafa | March 10, 2008 | 8:03 pm

To configure the proxy on terminal and be able to use apt-get just do this :
sudo gedit /etc/bash.bashrc
add this line with your “proxy_ip” and “port_number” at the end of the file :
export http_proxy=http://"proxy_ip":"port_number"/
for sure you can do the same to export your other protocols proxies.

ENJOY!
Mustafa Mustafa