Difference between revisions of "Fedora"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
(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 …')
 
(Edit Hosts file)
Line 8: Line 8:
  
 
==Edit Hosts file==
 
==Edit Hosts file==
In general, I replace the hosts file[http://en.wikipedia.org/wiki/Hosts_file] 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[http://www.mvps.org/winhelp2002/hosts.htm] with a few additions I have made, but there are others available.
+
A hosts file[http://en.wikipedia.org/wiki/Hosts_file] is an easy way 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 found the MVPS hosts file[http://www.mvps.org/winhelp2002/hosts.htm] to be nice, but there are others available.  You can also edit the file to add domains to block individually.
  
 
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.
 
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.
 +
 
<pre>
 
<pre>
 
su -
 
su -

Revision as of 14:00, 25 February 2010

About Fedora

Fedora at Virginia Tech

Tips and Tricks

Edit Hosts file

A hosts file[1] is an easy way 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 found the MVPS hosts file[2] to be nice, but there are others available. You can also edit the file to add domains to block individually.

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'

Wacom Driver