proxy authentication in gnome-terminal

Asked by MaXo

hi..
first of all, i'm using Intrepid Ubuntu 8.10, Gnome..
I'm having a problem in "gnome-terminal", I set the proxy settings and authentication in Synaptic and "Network Proxy"..
Synaptic, "gnome-app-install", and Update Manager works fine with the proxy settings..
but when I use 'apt-get' in gnome-terminal, it gives me an " 407 Proxy Authentication required" ?!?!

I can "ping" google and it gave me the IP, but no received packets (I think thats normal)..

when I run "gconftool -a /system/http_proxy", it shows the settings correctly:
  use_http_proxy = true
   use_authentication = true
   host = stuproxy.kfupm.edu.sa
   authentication_user = stu\s200*****0
   ignore_hosts = [localhost,127.0.0.0/8,*.local,*.kfupm.edu.sa]
   use_same_proxy = true
   authentication_password = ****
   port = 80

is there a solution?
thank you in advance..

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

Try to create and set a proxy value into the /etc/apt/apt.conf.d/proxy open a terminal and type:
sudo gedit /etc/apt/apt.conf.d/proxy

Put a row in it, here what i have in my proxy file, i don't use user and password:

Acquire::http::Proxy "http://192.168.1.40:3128/";

If you must authenticate with user and password try:

Acquire::http::Proxy "http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/";

You must also set, write them at the end of your $HOME/.bashrc:

export http_proxy="http://ip_proxy_address:ip_proxy_port/"
export ftp_proxy="http://ip_proxy_address:ip_proxy_port/"

or

export http_proxy="http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/"
export ftp_proxy="http://proxy_username:proxy_user_password@ip_proxy_address:ip_proxy_port/"

if you are under a Windows Domain network you must install and configure ntlmaps or cntlm
 ntlmaps - NTLM Authorization Proxy Server
 cntlm - Fast NTLM authentication proxy with tunnel

Hope this helps

Revision history for this message
MaXo (mahmood-188) said :
#2

marcobra you are the best ;)

it worked magically !
thanks a lot..

Revision history for this message
MaXo (mahmood-188) said :
#3

Thanks marcobra, that solved my question.

Revision history for this message
Ntsakzin (ntsakzin) said :
#4

Worked for me. Had to restart the terminal- almost pulled out my hair :)

Revision history for this message
hewigovens (hewigovens) said :
#5

Thanks. It works for me.~