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)
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.
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/
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.
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?
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!
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!
Re: HOWTO: Update from behind a proxy server
Nice How-to
This thread has been added to the UDSF wiki.
bodhi.zazen
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.
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#