Here are two different ways to configure Linux to recognize a proxy server or proxy configuration file.
Export Command for Proxy Environment Variables
Use the following commands to configure your proxy for http and ftp traffic on the command line
export http_proxy=http://: export ftp_proxy=http://:
If your proxy requires login/authentication, you can use the format:
To have this applied every time you log in, place these lines in your .bashrc in your home (~) directory.
Network Proxy Settings
For GNOME, go to Computer->Desktop Preferences->Network Proxy
For KDE desktop manager, you can get to the network proxy settings under System Settings > Network Settings > Proxy
In the setting, you can configure either by your proxy server and port, by the network, or a file via a URL/file location (e.g.
These settings work with most other applications (e.g. other browsers like Chrome, OS commands).
Some applications and commands need to be configured individually. Below are some common examples.
You can manually set up the Firefox proxy in Options. Go to the General tab then Network Settings.
In older versions, go to Options > Advanced > Settings.
Fedora – Yum Package Manager
yum proxy settings can be found in the file system at
Add a line to the file with the following information:
The next time you run yum, it will pick up that proxy.
Here is a similar how to article on configuring proxy settings in Ubuntu covering Synaptic Package Manager, Gnome, apt-get, and Firefox.