Ug
2005-01-07, 01:26 PM CST
Got yourself a shiny copy of Fedora Core 3? Want to update it to the latest packages available? Yet feel let down by Fedora's inability to change the settings for the proxy server system wide via the "Preferences -> Network Proxy" dialogue? Then step inside...
First of all get your network proxy settings to hand. And keep them somewhere where you can see them. Then load up your favourite terminal of choice and execute:su -
cd /etc
cp wgetrc wgetrc.backup
gedit wgetrc &This will load up a config file for Wget after making a backup copy of it. Search through the config file until you find the area:# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on
Now edit this section to insert your proxy information. Remembering to remove the '#' signs infront of http_proxy, ftp_proxy and use_proxy. It should now look something like this:# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://wwwcache.nottingham.ac.uk:3128/
ftp_proxy = http://wwwcache.nottingham.ac.uk:3128/
# If you do not want to use proxy at all, set this to off.
use_proxy = onWith that done save the file and then close gedit, and execute the following on the command line:gedit /root/.bash_profile &At the bottom of the config file insert the following, where "yourproxyaddress:portnumber" is your proxy server information.http_proxy=yourproxyaddress:portnumber
export http_proxySave the file and close gedit. Whilst we're at it we may as well edit your user profile to incorprate the proxy settings. From the command line execute:gedit /home/<username>/.bashrc_profile &Then simlpy insert the same details as you did for root. Save the file and then close gedit. Yum should now be configured for your proxy server. To test simply use Yum as you normally would, for instance updating the system:yum update If you are unsure about how to use yum check out the FedoraFAQ (http://www.fedorafaq.org) and read the help provided with yum. This help can be accessed by issuing the following command in the terminal: yum helpI hope that helps some folks!
First of all get your network proxy settings to hand. And keep them somewhere where you can see them. Then load up your favourite terminal of choice and execute:su -
cd /etc
cp wgetrc wgetrc.backup
gedit wgetrc &This will load up a config file for Wget after making a backup copy of it. Search through the config file until you find the area:# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
# If you do not want to use proxy at all, set this to off.
#use_proxy = on
Now edit this section to insert your proxy information. Remembering to remove the '#' signs infront of http_proxy, ftp_proxy and use_proxy. It should now look something like this:# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://wwwcache.nottingham.ac.uk:3128/
ftp_proxy = http://wwwcache.nottingham.ac.uk:3128/
# If you do not want to use proxy at all, set this to off.
use_proxy = onWith that done save the file and then close gedit, and execute the following on the command line:gedit /root/.bash_profile &At the bottom of the config file insert the following, where "yourproxyaddress:portnumber" is your proxy server information.http_proxy=yourproxyaddress:portnumber
export http_proxySave the file and close gedit. Whilst we're at it we may as well edit your user profile to incorprate the proxy settings. From the command line execute:gedit /home/<username>/.bashrc_profile &Then simlpy insert the same details as you did for root. Save the file and then close gedit. Yum should now be configured for your proxy server. To test simply use Yum as you normally would, for instance updating the system:yum update If you are unsure about how to use yum check out the FedoraFAQ (http://www.fedorafaq.org) and read the help provided with yum. This help can be accessed by issuing the following command in the terminal: yum helpI hope that helps some folks!