Mac OS X Archive

0

Making a OS X 10.9 Mavericks Install USB Drive

Apparently the days of getting new releases of OS X on DVDs is long gone and instead it’s made available in the App Store. If you’re upgrading your existing OS X install you probably have no need for physical media to install it but if you’re willing to do a clean install the .dmg you get from the App Store isn’t very useful. You’ll have to make your own physical install media.

I’ve read about Lion Disk Maker and other extensive ways with multiple steps to build a USB thumb drive capable of installing OS X from scratch. But then I came across a single Terminal command line that does absolutely everything and leaves the USB thumb drive ready to install everything. You’ll need a comfortably sized drive – 8GB should be enough. If possible buy a new one and don’t use it for anything else other than being your OS X install media. First, download Mavericks from the App Store. Then open up a Terminal, plug in your USB drive and type the following – you can use TAB to autocomplete folder names:

sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction

Replace /Volumes/Untitled with /Volumes/YourUsbDriveName. Insert your password, wait for some time (I went to get dinner, when I came back ~20 mins later it was still running) and BAM – Bob’s your uncle. Reboot, pick booting from the USB drive (hold Option while booting so you can choose) and you’re good to go.

2

OS X Flashback trojan identification and removal

Despite what most OS X users think and say, OS X is in fact as vulnerable to trojans and/or rootkits as any other Operating System. Though it is significantly harder (or not) to do so in a Unix machine, the increase in Apple computer users has turned their operating system a viable target for mass infection and botnet operation.

This time around, a trojan named as Flashback has reportedly infected more than half a million computers worldwide. It earned it’s name due to the nature of the infection, pretending to be an Adobe Flash update and thus being granted administrator privileges by unsuspecting users to download and install it’s payload.

Apparently the trojan takes advantage of flaws within the Java versions found within latest versions of OS X. Although Oracle published a fix for it several weeks ago, Apple is only just now making it available to it’s users generating this way a fair amount of controversy.

An advanced description of the trojan as well as identification and removal methods can be found here, thanks to the folks at F-Secure.

 

Edit: F-Secure has made a tool available online to remove Flashback from OS X machines here.

0

OS X Boot Camp and hal.dll errors

So I made the decision to go back to a 32bit Windows installed on Boot Camp due to some compatibility issues with the Android SDK and flashing tools not recognizing a Samsung Spica, dishing out some weird errors and generally just not finding the device. Done full installs twice before and was about to do the third but then I ran into a problem.

Boot Camp partition made, I start the install process like in any other PC. Delete partition, create partition, format it ntfs, etc, and the install starts. First reboot comes up in the installer for whatever reason it reboots to continue the install process and then this error complaining about hal.dll not there comes up. Ahh crap. Tried it again, same error. Tried downloading an iso and install through it and there it was again. All the while googling around trying to find what the crap was happening. Spent hours trying to figure out what was borking the 2001 Space Odissey computer. Hours you ask? Yes, hours. Well, about two hours.

Read the rest of this entry »

0

Boot Snow Leopard in Verbose Mode and/or 64 Bits

I’ve always been a fan of verbose booting screens letting me know what’s going on while the OS is booting and recently this came to my attention, we can do it on OS X. Booting it once in verbose mode is as simple as holding Command+V when we power it up but if we want it to act like that by default we’ll have to open a Terminal window and type the following:

sudo nvram boot-args=”-v”

To disable verbose mode type the following:

sudo nvram boot-args=

Another option we have on Snow Leopard is booting into 64 bits mode on supported machines, we can hold the 6 and the 4 keys on boot if we want to do it once but if we want it booting into 64 bits by default we’ll have to follow a few necessary steps.

First of all we’ll need to know if we have a 64 bit EFI. Issue the following command on a Terminal window:

ioreg -l -p IODeviceTree | grep firmware-abi

We’ll either get a “EFI32” or a “EFI64” result. If we have a 64 bit EFI we’re good to go.

Find and edit /Library/Preferences/SystemConfiguration/com.apple.Boot.plist replacing:

<key>Kernel Flags</key>
<string></string>

With

<key>Kernel Flags</key>
<string>arch=x86_64</string>

Reboot :)

5

Setting up Time Machine on Ubuntu 10.04

Backups and redundancy are always important when dealing with data you’re not willing to loose overnight when your hard drives decide it’s time to meet their maker. Usually Seagate or Western Digital in my case, not that I’m complaining *knocks on wood*. Mistakes also happen and you’re bound to eventually delete or somehow damage important data on your hard drive.

Time Machine is a piece of software introduced by Apple when Leopard was launched, it allows us to set up an external or network drive as a backup drive and it backs up data from any given point in time onwards allowing us as well to go “back in time” to any given point in the backups.

Recently I’ve been dabbling a lot with Ubuntu and those of you who know my nerd side know already I’ve googled the hell out of it trying to maximize and/or improve stuff and I’ve come across several interesting articles I’d like to share with whoever reads this. I could just post some links, but that wouldn’t be fun and some of the links might be taken down leaving me without any source of information in case I want to repeat the process.

On with the interesting part, setting up Ubuntu 10.04 as a Time Machine network drive.

Read the rest of this entry »