_hacks – Page 5 – jozefmares.com
Home top_menu _hacks
Category:

_hacks

Puppet is cool automation and configuration management tool. I’m really happy with it since day I discovered it – and there is not so much tools that are that useful.

I have puppetized all kind of tasks on my servers like user management, service installation and configuration but on desktop there was nothing puppetized and automated. It’s time to change it.

I’m going to cover installation only in this post, next posts will cover application management, plist management and I hope I will find a way how to interact with keychain.

Installation is pretty simple compared to older days. :) Just visit Puppet labs download page and install latest versions of Puppet, Hiera and Facter.

You should install Facter first as Puppet need it.

Next step is to create group and user by running:

sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/sbin/nologin'

If you want puppet to run in master/client setup add these plist files to your system. They will ensure that Puppet master and Puppet itself will start-up during boot:

wget http://docs.puppetlabs.com/guides/files/com.puppetlabs.puppetmaster.plist
wget http://docs.puppetlabs.com/guides/files/com.puppetlabs.puppet.plist

Move plists to /Library/LaunchDaemons, set rights and let launchd let know about them:

sudo chown root:wheel /Library/LaunchDaemons/com.puppetlabs.puppet.plist
sudo chmod 644 /Library/LaunchDaemons/com.puppetlabs.puppet.plist
sudo chown root:wheel /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist
sudo chmod 644 /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist

sudo launchctl load -w /Library/LaunchDaemons/com.puppetlabs.puppet.plist
sudo launchctl load -w /Library/LaunchDaemons/com.puppetlabs.puppetmaster.plist

You should also let know system where Puppet master is, for this basic setup you can just add this to your /etc/hosts:

127.0.0.1 puppet

For OS X I prefer standalone setup, but this will be covered in next post.

In my previous post was covered my hardware setup. It’s time to install some basic software like OS X.

Once I was pretty sure it is possible to install OS X on my hardware I visited Tony Mac X86 site and looked for some how-to.

I used this how-to and I was following pretty much everything mentioned on site.

But not everything was that straight! OS X won’t boot into install screen, after some time screen just went blank and there was no option left only to cold cycle computer. To fix this issue i had to go to UEFI and change primary screen adapter from discrete Geforce to integrated Intel graphic adapter. After this computer booted into install and i followed how-to.

After install my OS X won’t boot into setup finish (part when you add user and so on), and I had to add this option to bootloader:

GraphicsEnabler=No

This parameter fixed problem with graphic card. Without this there was only spinning wheel and no setup finish.

After this step my hackintosh has been installed. Only few steps needed to go, right? Wrong. There was problem with network adapter, bootloader, wifi card and sound card – none of them works out of the box.

You need to download Unibeast for Mountain Lion (login required) and install appropriate driver (kext – kernel extension).

For my motherboard I needed to install and enable these drivers/settings:
* UserDSDT or DSDT-Free installation
* Audio – ALC892
* TRIM Enabler with 10.8.1+ TRIM Patch
* FakeSMC Plugins
* Realtek – Lnx2Mac’s RealtekRTL81xx v0.0.90
* Patched AppleIntelCPUPowerManagement
* Boot Options – GraphicsEnabler=No and 1080p display
* System definitions for Mac Pro 5,1

Next part will cover usual problems and how to fix them. Happy hacking.

My Macbook Air mid 2011 was one of the best buys in my life. I love this piece of hardware. I have been using GNU/Linux on desktop for more than 10 years. But changes in recent years like KDE 4, Gnome 3, systemd made me think about switching.

On the other side I have been using Mac in parallel for two years in 2003. I had iBook G3 and it was also beautiful piece of hardware and great system. Many of my knowledge was born working in internet cafe on this device (funny is that I have been doing best job with no money, with only 12.1 inch screen – but this should be subject of other post).

So, this experience made me thing that it might be time to switch on desktop. To describe reasons briefly – simplified workflow (Mac Linux sync), consistent GUI and apps, no more tuning keyboard shortcuts to work same way on both platforms.

Cons was only that Mac Pro is expensive as hell and I have a pretty new desktop home. I do not like to spend that much of money (e.g. 120 000 CZK) for just a computer. Time to build Hack Pro!

If this decision came few months ago when I was building my computer i would go way of buying components based on this guide.

But I already had my hardware so let’s try it. These are my hardware specs (links to shop I bought hardware):

I’m very lucky guy – this setup was created for Linux (to work like a charm), but when I made decision about switching to hackintosh all seemed great. Building a hackintosh is always (at least according to how-to’s) about supported motherboard and graphic adapter. After quick googling hardware hardware has been looking good.

Next part will cover basic setup of my hackintosh – creating of install media, and USB installation.