PDA

View Full Version : HOWTO: Proxy Support


gecko
October 21st, 2004, 10:25 PM
Proxy Support

Proxy support for Synaptic Package Manager.
Start the software and click Settings-> Preferences-> Network Tab. Click Manual Proxy Configuration and enter your proxy information. If you have to login to the proxy then use the host format username:password@host.

Proxy support for apt-get package management
Define the http_proxy variable in the format http://host:port/. If you have to login then use the format http://username:password@host:port/. To define this variable add the following lines to the root login file /root/.bashrc.

http_proxy=http://username:password@host:port/
export http_proxy

Proxy support for Mozilla Firefox
Start Mozilla then click on Edit->Preferences. In the General section click on Connection Settings. Enter your proxy infomation here. If you have to authenticate against your proxy then Mozilla will prompt you for a username and password.

Proxy support for the Gnome desktop
Click on Computer->Desktop Preferences->Network Proxy
Enter your proxy information here. How do you enter proxy auth here?

Contribute!
When you find more proxy configuration steps for other applications then post it as a reply to this message. One day in the future this will be a simple applet that will ask you proxy settings and configure all this for you. *hint* *hint*

FLeiXiuS
October 22nd, 2004, 12:35 AM
Very nice, I think you should include the FireFox plugin which allows you to search for a proxy then connect instantly for web browsing.

jdong
October 24th, 2004, 04:18 PM
Proxy Support

Proxy support for apt-get package management
Define the http_proxy variable in the format http://host:port/. If you have to login then use the format http://username:password@host:port/. To define this variable add the following lines to the root login file /root/.bashrc.

http_proxy=http://username:password@host:port/
export http_proxy


Ok, extend this a bit:
Proxy support for the CLI
Add the following lines to the file /etc/environment

export http_proxy="http://username:password@host:port/"


This will also apply to apt at the CLI. Some applications may pick this up, too. If it doesn't work for you, add the line to /etc/bash.bashrc and /etc/profile, too.

khairillthegreat
January 17th, 2007, 05:24 AM
hi. i just want to ask where the proxy cinfiguration is saved. when i first install ubuntu the installer pop a dialog that asked my proxy configuration. in what text file is this setting saved?

airtonix
July 3rd, 2007, 02:27 AM
ok so :
if i previously used the gnome-gui to change proxy settings ..

then if i had removed the desktop enviroment, right back to terminal machine only....no gui

how do i edit those proxy settings?....like with nano...which file to open?

Jilbert
July 15th, 2007, 04:07 AM
am getting a permission denied error. I don't know how to enable the root account on the terminal. btw, just installed ubuntu server feisty and it doesnt come with gdm. :(

sageb1
November 1st, 2007, 09:34 AM
$ sudo nano -w /etc/bash.bashrc

then place the following at end of file:

# export http_proxy:port
if [ -z "$http_proxy" ]; then
export http_proxy="http://proxy_host_name:port/"
fi

Linfreak
January 12th, 2009, 08:21 AM
If the password in http://username:password@host:port/ contains a '@' symbol then it takes the username wrong.

eg:

if username = xxxx and password = zzzz@yyyy

then command would look like http://xxxx:zzzz@yyyy@host:port/

so when i use

$>apt-get update

it gives "connecting to yyyy@host:port" instead of
"connecting to xxxx:zzzz@yyyy@host:post/"

how do i actually make it take the username and password together?


Thanks in Advance,
Siva

michelkogan
July 19th, 2009, 02:24 PM
this saved me ... GOD THANKS ... for weeks I have a problem with anon-proxy and apt-get . Thanks ...

mozartlova
August 20th, 2009, 08:03 PM
i don't suppose anyone knows how to include the following into a http_proxy
variable that parses correctly when passed to wget (it seemingly doesn't
work when you just type it into the 'details' section of the network proxy
authentication either ...

username is domain\username@company.com
(i would imagine the "\" and "@" are the difficulties here)
password is blah
proxy server is proxy.company.com and
port is 8080

it works (of course) when you type it into the proxy authentication of a
browser, but fails to parse for me (not when doing the "export http_proxy")
when doing the wget.

MegaJim
October 21st, 2009, 04:19 AM
i don't suppose anyone knows how to include the following into a http_proxy
variable that parses correctly when passed to wget (it seemingly doesn't
work when you just type it into the 'details' section of the network proxy
authentication either ...

username is domain\username@company.com
(i would imagine the "\" and "@" are the difficulties here)
password is blah
proxy server is proxy.company.com and
port is 8080

it works (of course) when you type it into the proxy authentication of a
browser, but fails to parse for me (not when doing the "export http_proxy")
when doing the wget.

http_proxy=http://domain\\username@company.com:blah@proxy.company.co m:8080