Live data from Hacker News

Hacker's Guide to Setting Up Your Mac

lapwinglabs.com

91–100 of 267 posts

Re: Hacker's Guide to Setting Up Your Mac

#91

You still have to replace /bin/bash and /bin/sh binaries, even after doing a `brew install bash`. ...right? `brew install bash` will just give you /usr/local/bin/bash, and then use that as your interactive shell.

No, you change your user shell to the shell you want. You can do this in the "Accounts" preference pane by control-clicking a user, selecting "Advanced Options" from the context menu, and changing the "Login shell" setting to your preferred shell.

I think the parent poster is talking about eliminating all known-vulnerable bash shells from his machine, not just having the default user shell change.

Re: Hacker's Guide to Setting Up Your Mac

#92

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.

Try using cpan to install basic modules like MySQL

I've never gotten CPAN to work reliably with any OS's included copy of Perl. As with Python and Ruby, if you want to use things not available via the OS's package manager, you're best off installing a separate copy.

Re: Hacker's Guide to Setting Up Your Mac

#93
post #73

Earlier quoted context omitted.

#!/bin/bash

That should be #!/usr/bin/env bash, particularly for BSD which does not install bash in /bin. Nothing new about absolute executable paths being non-portable, #!/bin/bash is as bad as #!/usr/bin/python.

I'm not saying you should use that. It's just that "#!/bin/bash" shows 18 million results on Google while "#!/usr/bin/env bash" shows only 121,000.

Re: Hacker's Guide to Setting Up Your Mac

#95
I like having separate "work" and "play" accounts on my machine, and Cask isn't really set up to work with multiple accounts (issue #5887 in their github issue tracker). That's something you'll need to keep in mind if you use this approach.

Re: Hacker's Guide to Setting Up Your Mac

#96
post #87
post #43

Earlier quoted context omitted.

It's slow and it has to build the packages most of the time. pkgin will install a precompiled packages very quickly. It is also a whole C program and Homebrew is just ruby scripts.

So the opaque pre-compiled blob that installs other pre-compiled blobs is somehow better than a collection of scripts that lets you build from source? I don't think so... As an update is something that is done occasionally and in the background "slow" is not exactly a reason to change.

So the opaque pre-compiled blob that installs other pre-compiled blobs...

Why use OSX, then? Shouldn't you be using Gentoo?

Re: Hacker's Guide to Setting Up Your Mac

#97

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…

Yeah, well done on OP for introducing it with a warning:

> This script should not be run without prior examination. It's quite opinionated and intended to be modified.

Re: Hacker's Guide to Setting Up Your Mac

#98
post #42

I do not wants to flame, but is there a reason people dislike Macports so much. I tried Homebrew when it was 1-2 years old, but stuck with ports bc it was so stable, compiles from source, and I never heard a serious problem. I heard the opposite complaint on the net, but almost all Macports hate was from many years before. I am the only one who chose not to rely on Homebrew!?

People don't really dislike Macports, they just like shiny new things on github.

Homebrew isn't exactly new

Re: Hacker's Guide to Setting Up Your Mac

#99
post #87
post #43

Earlier quoted context omitted.

It's slow and it has to build the packages most of the time. pkgin will install a precompiled packages very quickly. It is also a whole C program and Homebrew is just ruby scripts.

So the opaque pre-compiled blob that installs other pre-compiled blobs is somehow better than a collection of scripts that lets you build from source? I don't think so... As an update is something that is done occasionally and in the background "slow" is not exactly a reason to change.

actually the "src" in pkgsrc means that you have the choice of using binary packages (pkg) or building from source. The best of both worlds!

Give it a try, you might like it (because it rocks!)

Re: Hacker's Guide to Setting Up Your Mac

#100
> allowing you to setup a new Mac in a matter of hours, not days

Wow, it takes days for people to set up their Macs? I would be interested in something that would make this take minutes, not hours. It's already pretty easy to setup a Mac for development in a few hours.

Post reply on HN