Archive for January 24, 2014


Changing Proxy Settings in Linux

Ubuntu 12.10 will set proxy settings both in /etc/environment and /etc/apt/apt.conf when you set proxy from GUI (Network Settings).

Check your apt settings

grep -Hnri proxy /etc/apt/

will list out the current proxy settings used by apt in the following format.

filename:linenumber:proxy-setting

If you see any output, it corresponds to apt‘s proxy settings. They will have to be cleared.

sudoedit <filename>

will allow you to edit the corresponding configuration file. Copy the existing contents somewhere in case you need to restore them, and delete or comment the lines that look like
Acquire::<protocol>::proxy=<your proxy here>
(Add // at the beginning of a line to comment that line. Commented lines are ignored.)

Save the files, close the text editor, and retry. If the problem persists,

Check global default environment.

grep proxy -i /etc/environment

Should list any proxy settings that are applied globally. If you need to clear them,

sudoedit /etc/environment

will fire up the text editor. Lines that start with # will be ignored, so add a # before those lines that mention your proxy settings. Save the file and retry.

Cleaning the user environment

It is possible that the systemwide configuration is clean but apt is picking up proxy settings from the user’s environment. sudoin certain configurations by default, or when explicitly passed -E as an option, preserves the environment.

env | grep -i proxy

should list out any current environment proxy settings. unset <variable> can be used to unset or clear a variable. Unset all <protocol>_proxy variables. If they are automatically being set, you might comment out the corresponding entries from ~/.profile, ~/.bashrc, ~/.pam_environment

(Those are the most common files that contain the entries. All of them can be searched at once using grep -Hni proxy ~/.profile ~/.bashrc ~/.pam_environment )

 

Ubuntu 12.04

You shine upon my face like the morning sun,
Over the small walks, when we shared all the fun,
Unaware of the silent fire of attraction that still do burn.

Angel if you are, please grant my wish,
Roaming with you is all that I miss,
Endangering that friend zone that I stepped out, care to follow me O miss.

Searching for a place for only me and you,
Until I ask for anew meeting you,
Killing my time in metro for you,
At last we meet and go to Victoria with you,
Next on my list is the church say you,
Yo yo hold on, it’s already closed by this time, I say to you,
Another day turned so awesome by you,

I guess I missed another chance to say.. I love you.. to you!!

%d bloggers like this: