Fedora
Revision as of 13:55, 25 February 2010 by 198.82.6.63 (talk) (Created page with '=About Fedora= =Fedora at Virginia Tech= =Tips and Tricks= ==Edit Hosts file== In general, I replace the hosts file[http://en.wikipedia.org/wiki/Hosts_file] on my computers …')
Contents
About Fedora
Fedora at Virginia Tech
Tips and Tricks
Edit Hosts file
In general, I replace the hosts file[1] on my computers to block a wide range of domains (ads, malware, etc). This works in Windows and Mac as well, but the file is in a different location. I use the MVPS hosts file[2] with a few additions I have made, but there are others available.
In Fedora, the hosts file is located in '/etc/hosts'. To edit or replace the file, you must be logged in as root. SELinux will not allow you to do this, so once you've moved your new hosts file, you have to restore the default security context.
su - (your password here) mv /home/(username)/hosts /etc/hosts restorecon -v '/etc/hosts'