Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: HOWTO: Proxy Support

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Sydney
    Beans
    20

    HOWTO: Proxy Support

    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*
    Last edited by gecko; October 23rd, 2004 at 05:36 AM.

  2. #2
    Join Date
    Oct 2004
    Location
    Binary Land, Maryland
    Beans
    632

    Re: HOWTO: Proxy Support

    Very nice, I think you should include the FireFox plugin which allows you to search for a proxy then connect instantly for web browsing.
    Regards,
    FL-ei-|X|-iu-S
    ][ My Blog ][

  3. #3
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Proxy Support

    Quote Originally Posted by gecko
    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.

  4. #4
    Join Date
    Jan 2007
    Beans
    1

    Re: HOWTO: Proxy Support

    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?

  5. #5
    Join Date
    Oct 2005
    Location
    Adelaide, South Australia
    Beans
    746
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Proxy Support

    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?
    Fear is the mindkiller....
    The little death that obliterates...

  6. #6
    Join Date
    May 2007
    Beans
    34

    Re: HOWTO: Proxy Support

    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.

  7. #7
    Join Date
    Jan 2007
    Location
    Surrey BC Canada
    Beans
    60
    Distro
    Ubuntu 6.06 Dapper

    Re: HOWTO: Proxy Support

    $ sudo nano -w /etc/bash.bashrc

    then place the following at end of file:

    # export http_proxyort
    if [ -z "$http_proxy" ]; then
    export http_proxy="http://proxy_host_nameort/"
    fi
    Last edited by sageb1; November 1st, 2007 at 02:35 PM. Reason: replace colon with forward-slash

  8. #8
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    32
    Distro
    Ubuntu 13.04 Raring Ringtail

    Exclamation Re: HOWTO: Proxy Support

    If the password in http://usernameassword@hostort/ 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@hostort/

    so when i use

    $>apt-get update

    it gives "connecting to yyyy@hostort" instead of
    "connecting to xxxx:zzzz@yyyy@hostost/"

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


    Thanks in Advance,
    Siva

  9. #9
    Join Date
    Jan 2009
    Location
    Tehran
    Beans
    14
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Proxy Support

    this saved me ... GOD THANKS ... for weeks I have a problem with anon-proxy and apt-get . Thanks ...

  10. #10
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: HOWTO: Proxy Support

    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.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •