Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: HOWTO: Update from behind a proxy server

  1. #1
    Join Date
    Oct 2005
    Beans
    26

    HOWTO: Update from behind a proxy server

    Situation: You are inside a large (or small) corporation with a proxy server as your only access to the outside.

    Use your installation account (which is a member of the admin group) or logon as root

    Access Synaptic Package Manager and enter this in the settings

    Settings -> Preferences -> Network ->

    Code:
    username:password@whatever.proxy.com (and port like 8080 in next column)
    Last edited by mlomker; October 28th, 2005 at 08:52 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Saint Paul, MN
    Beans
    2,907

    Re: HOWTO: Update from behind a proxy server

    For apt-get at the command-line

    Put the following into your /etc/bash.bashrc file (after putting in the proper servername/IP and port number). Just include the server/port if you have no authentication on your proxy server.

    Code:
    export http_proxy=http://user:password@my.proxy.server:port/
    export ftp_proxy=http://user:password@my.proxy.server:port/
    Add these lines, open a new root terminal, and then run your apt-get from the command line.

  3. #3
    Join Date
    Aug 2006
    Beans
    1

    Re: HOWTO: Update from behind a MS proxy server

    If your behind a Microsoft proxy server or need to auth. with a windows account, the format is like this:

    sudo vi /etc/bash.bashrc

    #proxy
    export http_proxy=http://DOMAIN\\USERNAME:PASSWORD@SERVER:PORT/
    #export ftp_proxy=http://user:password@my.proxy.server:port/
    Last edited by bodhi.zazen; February 1st, 2008 at 02:33 AM. Reason: Disabled smiles to increase readability

  4. #4
    Join Date
    Nov 2006
    Beans
    3

    Re: HOWTO: Update from behind a proxy server

    Hi,
    Thanks for your post so far, but what do you do when your password contains "@"
    and (for some strange reason) you are not allowed to change it.

    Regards,
    Mux.

  5. #5
    Join Date
    Nov 2006
    Beans
    19

    Re: HOWTO: Update from behind a proxy server

    you actually enter your password for the company / university in a text file? not very secure??

    if my proxy is http://wwwcache.lancs.ac.uk/:8080 what do I put in?

  6. #6
    Join Date
    Nov 2006
    Beans
    36
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Update from behind a MS proxy server

    I installed ubuntu inside my corporate network (and used a proxy server). Problem is I can't get rid of that setting now! i.e. When outside the proxy network updates always fail and include a remark that indicates the proxy server address is being applied to the destination address.

    I have graphically removed the proxy server address from the network settings dialog box and it doesn't change anything. I'm thinking somewhere else there is a configuration file that still has the original proxy server address in it. But where?

    I saw this thread and though that might help. I checked the bash.bashrc file and it has no mention of a proxy address in it, yet all repository updates go out through a proxy server that was encoded at install.

    Anybody have any other ideas where that address might be stored?

    My problem is opposite to the scenario susa described in that my updates only work over the proxy and I want to get rid of that. Maybe in poking around somebody knows another file that controls those settings.

    Thanks!

  7. #7
    Join Date
    Mar 2006
    Location
    Scotland
    Beans
    11
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Update from behind a proxy server

    Hi there. I'm also in a similar situation.

    Behind a proxy, would like to try these things out (modifying .bashrc), but a little confused still.

    Let's say I wanted to use my laptop in two places (University and Home) and needed to use apt-get and/or Synaptic at both places. What's the most convenient way of setting up switching between them? Do I have to modify the .bashrc file every time? Or write a shell script to do it for me?

    Also, what's the System -> Preferences -> Network proxy for? As it stands, putting anything in there doesn't do anything. The only thing I can actually use my Internet through is Firefox, by changing it's own proxy settings. Am I missing something, or is there a convenient way to set up alternating between global proxies?

    Thanks!

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HOWTO: Update from behind a proxy server

    Nice How-to



    This thread has been added to the UDSF wiki.



    bodhi.zazen
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Apr 2006
    Beans
    2

    Re: HOWTO: Update from behind a proxy server

    I activated the Universe repositories in Adept, then exited it. Next, I did the tweak to /etc/bash.bashrc to export the proxy settings.

    Both Adept and apt-get still failed, but on doing 'ps -ef' I found a zombied adept-manager process and killed it. The 'apt-get update' worked!

    Now apt-get works but Adept still doesn't. However, once I did 'apt-get update', Adept now lists all the packages available. So this is where I sit, using Adept only as a GUI search engine to find the package name, then using 'apt-get install' to actually get the package. Works for me, though I would like to get Adept fixed properly.

  10. #10
    Join Date
    Jul 2005
    Location
    Sunny Coast Australia
    Beans
    30
    Distro
    Hardy Heron (Ubuntu Development)

    Re: HOWTO: Update from behind a proxy server

    If you originally setup your computer behind a proxy, the settings are stored in "apt" itself,

    Checkout the following file and make it look like mine:

    /etc/apt/apt.com
    Code:
    root@elijah:/home/harrisj# cat /etc/apt/apt.conf
    APT::Authentication::TrustCDROM "true";
    Acquire::http::Proxy "false";
    root@elijah:/home/harrisj#

Page 1 of 4 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
  •