This is just a one-liner note to set up proxy for Ubuntu with authentication Setting up proxy at browser doesn’t affect terminal applicaitons such as aptitute package and so on. Also, system wide proxy requies you to touch network configuration like iptables. There are two easiest way to do.
There are 2 main files you should set up proxy:
For apt.conf,use vim, gedit or nano to open the file and add the proxy for each network protocols in the following format:
Alternative way is to put the following command in to .bashrc profile.
Plain passwords in file is bad idea but this is the most straightforward methond with no headache.