Change Host File On Mac App Switch

16 6 likes 130,972 views Last modified Jul 18, 2013 2:43 AM

Hello and welcome to my User Tip

Jun 19, 2018  Sometimes you may have a legitimate reason for changing which app your Mac automatically launches when you open a common file type – when a newly installed app assumes control of it, or when you.

  • Select the host’s file and open it. If you’re using Mac, you’ll need to open the Terminal app and enter this command to edit the host’s file: sudo nano /private/etc/hosts. Then, both Windows and Mac users need to enter the IP address you copied and your domain name at the bottom of the host’s file like this.
  • Jul 06, 2017  How to Change Your Computer Name on Mac OS X. Just open up System Preferences, go to Sharing, and change the computer name. You can also change it from the Terminal using this command, though obviously it’s much simpler to just change it under Sharing.
  • Mar 21, 2019  You can also use Hosts file on Mac to block adware and spyware websites, and even some time-wasting ones (e.g. Social media). Now let’s discover how we can actually change Hosts file on Mac. How to edit Hosts file on Mac. To edit Hosts file Mac features is not a difficult although completely non-obvious process.



People are buying Mac's used where the previous owner didn't know or clear the machine properly before selling it, so what occurs is the next owner can't update OS X or programs because their AppleID doesn't match the previous owner.


Some are just ignoring the requests for updates because they know to change ownership to them will require a complete erase of all the installed programs by the previous owner, which is a fact unfortunately.


Not being able to update OS X or programs means the machine is eventually going to run insecure ones which sets the stage for another large scale botnet of compromised Mac's like what occurred with Flashback, or at the very least banking and credit card information of the secondhand user could be compromised.




Changing ownership of a Mac


Change host file on mac app switch free


1: Copy what users files you do want to save off the machine to a regular external storage drive using drag and drop methods on your internal Home folders of Music, Pictures, Movies, Documents etc. If a TimeMachine window request appears, deny it as it will copy the entire drive, accounts and everything which is not what you need in your case at this time.


If any of those files are over 4GB in size (like large movies/projects or audio files) then the external drive needs to be formatted in Disk Utility first using the Erase option, the default formatting is GUID and OS X Extended Journaled which will work fine only for a Mac. If your going to share this drive also with a Windows PC, then take it to the oldest Windows version and right click on the drive and format exFAT. If it's a Windows XP machine first download the free exFAT download from Microsoft first and reboot. Note: Formatting a drive will erase all data on the drive, so make sure you have what you want off it first.


You cannot save most applications, especially Apple/or AppStore ones as they are now copy protected. Any applications that are non-copy protected and self-contained completely in the app icon in the Applications folder are better off reinstalled fresh from original sources anyway.


Don't forget to export bookmarks from your browsers, any information contained in AddressBook, email addresses in Mail, application license keys in programs you've installed or any other sort of vital information as the entire MacintoshHD partition containing OS X, files and programs will have to be erased to properly turn ownership of the machine to you.


If you have Windows installed in BootCamp, it's a good idea to backup the data there as well.




2: Do a Apple Menu > About this Mac and get information of what OS X version is currently installed on the machine (so you can upgrade back to that version later) and it's model identification and serial number, this information is needed depending upon if disks/USB keys are needed or if the machine can't upgrade to the latest OS X version on AppStore and you have to call Apple to order the in between versions like 10.7 for instance.


Mac Edit Hosts File How


3: On the Mac, be near a fast and reliable Internet connection, if you have a Ethernet cable connection to the router, that would be preferred as it's faster and more reliable than Wifi. If you know your Internet speed and it's not around 10 Mb/s or better and all to yourself, then you need something faster. There are various Internet speed tests online, search and use a few to get a accurate evaluation of your capability to reinstall OS X or take it to someone who has a faster connection.


Hold the command (cloverleaf looking), option/alt and r keys down and press the power button until something appears, connect to the Internet if on Wifi. What you will see on the screen is a globe icon as Internet Recovery is downloaded from Apple's (via Akamai's) Servers.


Mac Hosts File Google

(If this doesn't work, then your older machine isn't capable of Internet Recovery and usually has a slot for a 10.6 OS X install disk or requires a 10.6 boot USB key from Apple. You'll have to erase the ENTIRE drive and install with that first, then upgrade OS X via AppStore (paid upgrade). How to erase and install Snow Leopard 10.6 )



4: You will see several options. You want to select Disk Utility and the disk0 selected on the left, then choose Erase.


If a slider option appears, move the slider one spot to the right for a Zero erase. If you move it further for more secure erase than a Zero, then it's just going to take a lot longer for no gain. The Zero option maps off bad sectors on hard drives and also deletes any fragments of the previous owners data less there be something illegal there that might false incriminate you. If your handling sensitive data, then certainly move the slider all the way to the right for the maximum. It takes some time for the Zero erase to complete, if it fails after a few hours like it's stuck, the hard drive is defective and needs to be replaced by Apple.


Mac menu bar on windows. Feb 02, 2018  Download Menu Timer - Menu Bar Timer for macOS 10.10 or later and enjoy it on your Mac. ‎MenuTimers is a simple, beautiful timer that support unlimited timers and lives in your menu bar. It allows quick setup and presets save/load easily for daily use. Key features:. Multiple timers support. Presets support. Show countdown in the menu bar. Start, Pause, Resume, Restart, Cancel you. Dec 22, 2018  Download Menu World Time for macOS 10.11 or later and enjoy it on your Mac. ‎Get times for cities around the world straight from the menu bar. Show a clock for each city right in the menu bar - Click the icon in the menu bar to quickly see city times - Accurate sunrise, sunset and twilight times - Select any place around the world to add to the menu.

If no slider for secure erase appears, it means your machine has a SSD or a Fusion/flash hybrid and there is no secure erase option available for these. Simply erase the drive, it doesn't erase it in reality, just reformats it and allows the old data to be overwritten. Keep that in mind when using your machine, NSA approved method for data destruction on a solid state drive is to gind it into a fine powder.



5: Select the Partition tab and that the drive has 1 Partition, click the box, Option: GUID and the format is OS X Extended Journaled and the name is MacintoshHD, if not, make it so.


Mac change hosts file


6: From the File menu select Quit Disk Utility and select the Install OS X option. Using your AppleID and password, install OS X and Quit the installer which should reboot the machine.



7: Next you will see a 'Welcome to Mac' video animation and select a language and setup your machine.


Be warned that if you enter your real personal information at this stage or at the registration screen, that Apple will take that information and personalize the machine placing your real name all over the machine, including broadcasting it wirelessly (short range) via Bonjour (can't disable it, risk in coffee shops etc), in emails, account name info, network connections, computer name etc., which will compromise your personal security and privacy.


At this stage you may wish to use a alias, if you later find out it hampers your use of Apple services such as iCloud/AppleID and so forth, you can create a additional user account and log into that with your real name or simply start all over from #3 above. You'll have to be your own judge on what your personal security needs are, because Apple doesn't provide any options to secure your personal information.



8: Once the accounts are set up, you log into AppStore and upgrade OS X to the version that was on the machine previously if you want your all your proprietary file format files to work as before as later OS X versions of software change their files. Internet Recovery installs the OS X version that came with the machine from the factory, any OS X upgrades that occurred later are tied to the previous owner, thus if you want to get back to the OS X version you had before erasing, you have to purchase the upgrade and install it.


Next you install all your additional software you think you need before you return your user files, especially if the computer has a boot hard drive as it will perform better if your users files are returned and written last on the drive.



9: Connect the external drive containing your files you backed up previously. Select the drive on the Desktop and from the Finder Menu (or right click) > Get Info and at the bottom unlock and 'Ignore Permissions on this volume'


When you transferred those files earlier, they were assigned to the previous user account. Well you changed the user account thus thus the ownership of those files belongs to the previous user account. By ignoring permissions your allowing the files to be copied, but they are still not entirely assigned to your new account.


Once you have placed your files or imported then into the appropriate programs and your all done you perform a #6 Repair Users Permissions step here.

One Switch Mac App




10: Next what you do is create a bootable backup of this ideal and pristine system state using a powered external drive and a copy of Carbon Copy Cloner. (I do not advise Superduper as it doesn't copy a necessary hidden partition you need to reinstall OS X if you upgrade the version later)


This bootable clone is accessible by holding the option/alt key down while booting the machine, it's awesome for the fact that you can easily copy your latest files, then erase and reverse clone any major software issues away in about a hour or so.


The object with a bootable clone is to keep it disconnected and only update it when you know you have a pristine OS X boot volume or before you do something major in software to the machine, like a OS X update, program install or tinkering. You can boot from the clone and make more clones on more external drives, but they will only boot to that machine, but you can use Apple's Migration Assistant to a new machine or use MacDrive to a PC if you ever need too. The first clone takes the longest, the updates to the clone go faster.


If TimeMachine pops up and asks to make the external drive a TM drive, deny it at this time, you can make one after the clone is completed.


After the bootable clone is created you may need a more always on and backing up solution, especially if your prone to deleting files by accident. Newbies especially should be using TimeMachine exclusively, more experienced Mac users usually use bootable clones instead or a combination of the two methods for more reliability.


TimeMachine software is always running on a Mac, if you connect a blank (or to be reformatted) external drive it's going to pop up a window asking you if you want to make one. Make sure the drive is free of data you want to keep and let TimeMachine do it's thing.




11: If you require more common questions answered about your machine there is plenty of advice in the User Tips


Modify your hosts file in Windows 10

Here’s how you can modify Hosts files in Windows 10, and map domain names to server IP addresses of your choice.

  1. Open Notepad with administrator privileges
  2. Browse to C:WindowsSystem32driversetchosts (Or paste this into the address bar)
  3. Open the file
  4. Make your changes

Applies to All Windows 10 Versions

Windows 10 still retains the old computing standard of having a hosts file for rudimentary hostname mapping. In simpler terms, the hosts file provides a mechanism to map domain names (such as “onmsft.com”) to server IP addresses of your choice.

Windows refers to the hosts file each time it connects over a network using a hostname. If it finds an entry for the hostname in the hosts file, it will contact the server specified in the file. Otherwise – and in the vast majority of cases – it will resolve the hostname using DNS (domain name service), which is the process used on the Internet to obtain the server IP address behind a domain name.

While it may sound technical, the hosts file is a really simple approach to network routing – and it’s easy to add your own entries. To get started, you just need to open the file. It resides in Windows’ internal “System32” folder, so to save your edits you’ll need administrator access.

The quickest way to open the file is using Notepad with administrator privileges. Search for Notepad (press the Start button and type its name) and right-click the app to display the context menu. Click “Run as administrator” to launch a privileged instance of the app. Note you may need to reauthenticate yourself or get an administrator’s password if you’re not already logged in as one.

With Notepad open in administrator mode, you’re ready to open the file. Click File > Open and browse to the file at C:WindowsSystem32driversetchosts (you can copy and paste this into the address bar at the top of the Open window). If you do browse through the folders graphically, remember to change the file type filter to “All Files” so the hosts file shows up.

Now you’re ready to edit the file. If you’ve never opened the hosts file before, all you’ll see is a short section of text describing its purpose and how to make edits. The introduction provides a useful overview of how the file is structured, but we’ll cover the basics here.

The hosts file is a simple mapping of IP addresses and hostnames. Each entry goes on a newline, with the IP address (that’s the numerical address) first, followed by a space or tab character and then the hostname (or domain). You can add comments to the file by placing a “#” character at the start of the line – this will make Windows ignore the line when reading the file.

Therefore, if you want to point “microsoft.com” to the IP 1.2.3.4, you’d write “1.2.3.4 microsoft.com” on a new line. Each time you try to visit microsoft.com, you’ll find yourself instead at the (non-existent) 1.2.3.4 website.

At this point, you may be wondering why you’d ever need to edit the hosts file. While it is more useful to technical users, there are also a few more general cases in which it might have value. One example is if you wanted to block a certain website, for example Google. By adding an entry for “google.com” to the hosts file, you can force Windows to point the address to a different location – so users won’t be able to visit the site.

To achieve this example, add a line such as “0.0.0.0 www.google.com” to the file. Save the file and try and visit Google in your browser. You should find the site fails to load.

Adobe genuine software verification failure cs6 mac download. Remember that this is a far from infallible way to block a site – another user could simply reverse the hosts file edit themselves. In addition, some software may employ its own techniques to lookup hostnames which might ignore the hosts file.

One far more realistic application of the hosts file is to block websites which serve up ads or spyware. Although we won’t be listing any here, if you map the addresses of prominent ad providers to an unused internal IP address (such as 127.0.0.1), you’ll suddenly be browsing an ad-free internet – in every browser.

Windows will resolve the ad URLs to an address that no longer points to the providers’ servers. Just remember that every address you add must be the hostname only (example.com), not the full web address (http://www.example.com).

That’s all about the hosts file. While you’re unlikely to use it outside of a development or network environment, it does have practical applications which could be of use to every PC consumer. You should also know that the hosts file also exists on Mac and Linux systems with the same syntax, albeit in a different location.

Share This Post: