Live data from Hacker News

Hacker's Guide to Setting Up Your Mac

lapwinglabs.com

31–40 of 267 posts

Re: Hacker's Guide to Setting Up Your Mac

#31
post #27
post #24

A great alternative to Homebrew is pkgin because of it's speed and the amount of packages available in pkgsrc. More info here: http://saveosx.org/

This is the work of Jonathan Perkin (from joyent): http://www.perkin.org.uk/ It's great. It really is. I never understood why it's not used by more people. Homebrew is simply awful.

I also have a repo of 64bit packages built on Mavericks: http://pkgsrc.saveosx.org/Darwin/2013Q4/x86_64/All/

Re: Hacker's Guide to Setting Up Your Mac

#33
The next thing you should do is update the unix tools you already have on your mac. This is more relevant than ever since the recent "Shellshock" debacle.

How many developers are launching bash scripts with environment variables defined by third parties?

Re: Hacker's Guide to Setting Up Your Mac

#34

Earlier quoted context omitted.

I get the joke, and it was the first thing that popped in my head too. But in all seriousness, OS X is Unix as well, and can do pretty much any Unix based task that GNU/Linux can. Sometimes the best tool for the job is the one you already own.

BSD differs from Linux in some important ways. If one of those differences affect your works, than Mac OS X is useless, even if it is Unix (and Linux, some would say, isn't)

I get that, and I wasn't trying to say that GNU/Linux is Unix, either. In fact, what with systemd on most major distros these days, GNU/Linux is less Unix-y than ever (I'm not saying that's good or bad; I have my reservations about systemd but they are irrelevant to this discussion and I'm not being biased either way about it here).

That said, for just about any project I've ever worked on within a GNU/Linux ecosystem, I could have easily adapted it to Mac if that was my chosen platform. HTML is HTML, JavaScript is JavaScript, so for today's web-centric projects the OS you're running doesn't matter as much. Even languages like Python don't really care what's under the hood.

Of course, if you're doing Linux kernel development, or targeting a GNU/Linux deployment, then a Mac isn't the best idea. :)

Re: Hacker's Guide to Setting Up Your Mac

#36
post #16

i personally think Boxen is the easiest way to setup a brand new machine. it can also easily be distributed and updated the only downside is that it requires Xcode + command line tools. https://boxen.github.com/

And you can bootstrap that part of what you need for Boxen with one command:

`xcode-select --install`

Re: Hacker's Guide to Setting Up Your Mac

#38
post #27
post #24

A great alternative to Homebrew is pkgin because of it's speed and the amount of packages available in pkgsrc. More info here: http://saveosx.org/

This is the work of Jonathan Perkin (from joyent): http://www.perkin.org.uk/ It's great. It really is. I never understood why it's not used by more people. Homebrew is simply awful.

Just curious, what's wrong with Homebrew? I'm just a student, not a full-time developer, but I've never had problems with it and find it pretty pleasant to use.

Re: Hacker's Guide to Setting Up Your Mac

#39

This "cool hacker settings for your Mac" script turns off your laptop's power saving features (sleep, display dimming, hibernation even though sleep was off(?)), removes at least three kinds of backups for data loss (MobileTimeMachine, Resume, hibernation file), and changes AppKit settings in a way your customers will never be using (by turning off Automatic Termination, which is pretty harmless). Please don't run sc…

That's a common problem with all of these OS X setup helpers. I recall one floating around with a big batch of defaults settings, many of which I would never use.

That said, these projects are useful for showing off strategies for others to adopt. I treat them much like someone's heavily customized emacs or vim setups: a good reference for ideas, but only ever to be cherry picked into my own setup, and only after I understand the piece I'm picking.

Re: Hacker's Guide to Setting Up Your Mac

#40
After installing Mackup, the Mac backup tool mentioned in this guide, I noticed that it backed up my entire ~/.ssh directory to Dropbox. This included my id_rsa private key, which I would prefer not to have on Dropbox, even with a key passphrase.
Post reply on HN