Thursday, 28 August 2014

Configure proxy on Ubuntu Terminal

To configure proxy for terminal in Ubuntu, you need to edit apt configuration file. You can do so by the following command:

sudo gedit /etc/apt/apt.conf

Add the line:
Acquire::type::proxy "http://proxyaddress:proxyport";

type can be http,https or ftp

Or on GUI:=>

Settings => System Settings => Network => Network Proxy

Select method as "Manual" and put in IP and Port.

Click "Apply System Wide" and enter password. You are done.


I was behind a http proxy server(10.10.78.22, port-3128) of institute and needed to configure proxy for the terminal. This line is what worked for me:

Acquire::http::proxy "http://10.10.78.22:3128";