Ask Your Question

How to set system wide proxy settings in Fedora 20?

asked 2014-07-06 03:13:48 -0600

remjg gravatar image

I'm planning on installing Fedora in my school. There are 20 computers and 300 different possible users.

How to set system wide proxy settings for every user, every software (Firefox) and every command line utility (yum)?

Trying a live disk, I have been able to configure the proxy settings through the Network menu from the GNOME Settings. But I still face some issues:

  • The Google web page informs me that there is a problem with the configuration of Firefox (something like SSL if I remember correctly).
  • yum is not working.

After more research, I found here that I need to edit the file /etc/yum.conf in order to make yum proxy aware. I also need to edit the .bash_profile file for each user in order to be sure everything works... Is there a way to dot it globally ?

edit retag flag offensive close merge delete


For editing .bash_profile, you could do `echo xxxyyy >> /home/*/.bash_profile

abadrinath gravatar imageabadrinath ( 2014-07-06 03:36:23 -0600 )edit

Also, wouldn't the Linux-newbies at your school be more comfortable with KDE or XFCE rather than GNOME?

abadrinath gravatar imageabadrinath ( 2014-07-06 03:51:32 -0600 )edit

Seeing every day my colleagues or my student in front of a computer, I think they couldn't do worse on GNOME. The average user doesn't use (efficiently) the taskbar so I think it should be fine (and there is GNOME classic in case they can't get use to it).

About the command line you offer, each time someone new connect to the the computer (LDAP), the corresponding home directory is created. Which means I would have to run again your command. Nice solution anyway!

remjg gravatar imageremjg ( 2014-07-06 13:23:10 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-06 04:30:39 -0600

NickTux gravatar image

The equivalent system-wide bashrc file is under /etc/ directory. You can edit this file, instead editing every user's .bashrc file separately.

Of course you will need root privileges to edit this file, and also have in mind that it could be changed in future, with a system update, thus you have to merge this file sometime (keep a backup somewhere).

edit flag offensive delete link more



Thanks, I should have found it myself! There is this disclaimer though:

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

So a future update might remove my changes?

remjg gravatar imageremjg ( 2014-07-06 13:25:54 -0600 )edit

So I should create a script in /etc/profile.d/ with lines like export http_proxy= and so on?

remjg gravatar imageremjg ( 2014-07-06 13:35:24 -0600 )edit

Yes, better is to create a file inside /etc/profile.d/

NickTux gravatar imageNickTux ( 2014-07-06 13:40:15 -0600 )edit

Okay, I'll try tomorrow and test with different shells (interactive and non interactive one might behave differently according to this post). I'll keep you informed about the result.

It works well, same solution is described here actually!

remjg gravatar imageremjg ( 2014-07-06 13:43:57 -0600 )edit

So a future update might remove my changes?

I assumed that this is referring to future versions of fedora and that the message was intended for the Fedora developer audience.

newbsooB gravatar imagenewbsooB ( 2016-10-25 10:35:47 -0600 )edit

Question Tools

1 follower


Asked: 2014-07-06 03:13:48 -0600

Seen: 29,446 times

Last updated: Jul 06 '14