|
Kubuntu Proxy Configuration. |
|
|
|
|
Wednesday, 10 January 2007 |
I built a fresh Kubuntu Dapper box at work today for the first time and ran into some issues with setting up the proxy. I did a quick search on Google, but the results yielded crap and I didn't feel like searching. This is how I got around the issues. I assume this will work in Ubuntu Dapper and maybe earlier as well as later versions of (K)Ubuntu.
Update April 4th, 2007 - Kubuntu 7.04 Feisty: You can now use the global proxy through system settings. You will still need to add the apt.conf Acquire line below, but I recommend using the global proxy over adding an export to your bash profile in Feisty. Follow the instructions below for Dapper and Edgy.
Do not setup a global proxy in System Settings! If you already have then set it back to Direct Connect.
Everything must be manually handled. If it's a new iKubuntu nstall start Adept under the main system menu under System. Select Manage Repositories from the File menu and enable all lines starting with deb.
Open up the terminal so we can edit a couple of files. Kate is just a text editor, use whatever you like, gedit, vim, whatever. This command will open apt.conf file in Kate as root.
$ sudo kate /etc/apt/apt.conf
Comment # out what is already there and add your proxy. Should look like below with your auth info:
#Acquire { http { Proxy 'false'; }; }; Acquire::http::Proxy "http://usern:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
:port_num";
Now apt-get and Adept and updater should be happy. Now to setup the proxy under your account for use with other internet applications, Firefox, etc. About the same as above except this file is owned by you so no root permissions are needed.
$ kate /home/your_user_name/.bash_profile
Add:
export http_proxy = "http://usern:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
:port_num"
Life should be good for most things. If you need to use wget at the command line enter the export line before running wget i.e., export http_proxy = "http://usern:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
:port_num" for ftp support add this also if you need it: export ftp_proxy = "http://usern:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
:port_num" |