Monday, October 12, 2009

Leopard Mac Hosts File - How to Edit

How to edit the hosts file in Mac OS X – Leopard

Step 1 – Open the Terminal.app

Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal.

Step 2 – Open the hosts file

Open the hosts by typing on the Terminal that you have just opened:
view source
print?

1.$ sudo nano /private/etc/hosts

Type your user password when prompted.

Step 3 – Edit the hosts file

The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 – localhost). Append your new mappings underneath the default ones. Or edit one of the default values

You can navigate the file using the arrow keys.

Step 4 – Save the hosts file

When done editing the hosts file, press control-o to save the file. Press enter on the filename prompt, and control-x to exit the editor.

Step 5 – Flush the DNS cache

On Leopard you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect: view source print?

1.$ dscacheutil -flushcache

You can now test your new mapping on the browser!

Monday, June 22, 2009

Parallels 3, iTune 8.2 and iPhone 3.0

My iPhone 3G is finally upgraded and synched with my Windows iTunes 8.2 running with Parallels 3 on my MacBook Pro. It wasn't easy but I fially figured out that I must run the USB ports in guest mode when synching my iPhone. I will eventually upgrade to Parallels 4, but that will be at a later date.

Wednesday, January 14, 2009

My MacBook and LED Cinema Display Arrived

2009 New Year's Resolution - Run Windows on My MacBook Pro

Yes, in 2009, I am retiring my PC laptop and and going to use an Apple MacBook Pro for my main machine. I still need to run Windows since I'm not ready to divorce Microsoft Outlook yet, so I'll be running Parallels.

At the end of December, I went to the Apple Store and bought the following:

-15" MacBook Pro (320 GB, 2.8GHz, 4GB DDR3 SDRAM) as my main machine

- Apple LED Cinema Display (24" flat panel) for my office.

This blog is about my experiences switching from Windows to the Mac. This includes Parallels Coherence Mode, Managing Parallels Devices and Windows Mac File Sharing. It's also about the peripherals and migration issues because my iPhone, iTouch and iPod are now working perfectly fie. I'm a frequent iTunes music purchaser and my music is all stored on my PC laptop.

This is my second attempt to switch from a PC to a Mac. Last year to switch to the 13" MacBook, but the screen was just too small.

This is an amazing computer. I believe it's the best 15" Apple laptop you can buy! In addition, with the 24" flat panel display for my office, it makes it the "Porsche" or "Ferrari" of computing power and elegance!

I am looking forward to using this computer in 2009!