Keep Network Drives Mounted on Mac OS X using Autofs

I have a Apple Mac Mini that I use as a HTPC using Plex. Connected to the Mac are two USB external drives, one called Media for movies, TV shows, etc… and the other one called PersonalMedia for photos and camcorder/home videos. I recently bought a Synology NAS, and copied the contents of the PersonalMedia into the Synology using RAID 1 redundancy (2x 2TB WD Red). With the NAS mounted using Finder and adding it to the “Login Item” for automatic mounting, I was all set, or so I thought…

Continue reading

How to edit the hosts file in Mac OS X 10.8 – Mountain Lion

The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s DNS servers.

The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.

Continue reading

Disable the Sudden Motion Sensor on a Mac Laptop

The Sudden Motion Sensor is designed to protect your Mac hard drive in the event of a computer being dropped or an unusually strong vibration. Essentially what it does is park the hard drive head when movement is detected, which prevents it from potentially scooting across the disk surface and scratching or otherwise damaging the drive or drive head.

Continue reading

How to find the MAC address in Mac OS X

Every physical interface of a computer has an associated MAC address which is a unique identifier. A MAC address is different from an IP address and is used for network access control and monitoring of network connectivity, such as applying MAC filtering on your Internet router to only allow specific machines to connect to the internet via your router. However, in order to do any of this you need to know the computers MAC address. This article explains how to find the MAC address of your MAC OS X machine.

Continue reading

How to edit the hosts file in Mac OS X 10.7 – Lion

The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s DNS servers.

The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.

Continue reading

Unhide Library Folder in Mac OS X 10.7 – Lion

In Mac OS X Lion (10.7), Apple has made the user Library folder hidden. Preferences, presets, and other user customisation settings are stored within this Library folder.

There are two ways to access this folder:

Temporary

To keep the folder hidden and to access it sporadically:

  1. In Finder, choose Go > Go To Folder
  2. In the Go To Folder dialog, enter ~/Library
  3. Click Go

Permanent

To unhide the folder permanently:

  1. Open a Terminal session
  2. Enter the following command (replace <username> with your actual username
  3. chflags nohidden /Users/<username>/Library
  4. Quit Terminal