Live data from Hacker News

Hacker's Guide to Setting Up Your Mac

lapwinglabs.com

61–70 of 267 posts

Re: Hacker's Guide to Setting Up Your Mac

#61

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.

Re: Hacker's Guide to Setting Up Your Mac

#62
post #6

Step 1. Install linux

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.

Have the Mac folks got focus-follows-mouse yet?

http://steve-yegge.blogspot.it/2008/04/settling-osx-focus-fo...

In general, I don't think I'd ever give up Linux. It's a hacker's OS, by and for hackers. Being able to pick apart and fiddle with any portion of, from the kernel on up, is a wonderful, empowering feeling, and something that has proved useful both personally and professionally over the years.

Re: Hacker's Guide to Setting Up Your Mac

#63
post #60

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 little hyperbolic. Sure, that script stops your Mac from automatically going to sleep, but it's not like it changes the CPU usage or power usage (and it will still sleep when you close the lid). Most of the settings in that script appear to be disabling automatic or "smart" things that average users don't want to think about and power users want done a specific way (e.g. backups, screenshots). Basically if y…

Actually, I was going to check if those commands changed the lid-closed behavior and edit the post, but guess they don't.

Still, it does turn off display dimming and automatic termination - those can both affect the leaving laptop on a table unplugged case, one much more than the other.

Re: Hacker's Guide to Setting Up Your Mac

#64
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!?

My understanding is that Homebrew does not clobber any system defaults — works with the OS, not against it. I could be wrong, though.

Re: Hacker's Guide to Setting Up Your Mac

#65
post #49

What is the difference between the cask installation suggested in the link and the cask installation procedure suggested on the cask home page? $ brew tap phinze/homebrew-cask ; brew install brew-cask $ brew install caskroom/cask/brew-cask FYI: The grep in homebrew/dupes is not a newer version of the grep provided by OSX. OSX grep is the BSD variant, hb/dupes provides GNU grep. I am always shocked by how poorly BSD g…

> What is the difference between the cask installation suggested in the link and the cask installation procedure suggested on the cask home page?

Two differences. One is that we moved to an org repo, so the first form is relying on the github redirect from the move. The other is that the second form relies on the semi-recently introduced "auto-tap" syntax in homebrew.

Functionally they will get you to the same place (we've got code to notice that your remote is pointing to the old repo location and update it), but the second form is newer and cooler. ;)

Re: Hacker's Guide to Setting Up Your Mac

#68
post #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.

Yep, it's meant for backup and restoring. I'm hoping that in future builds of Mackup you will be able to configure what you backup.

Right, or even if Mackup could add a Y/n confirmation prompt before copying that private key file over to Dropbox.

Re: Hacker's Guide to Setting Up Your Mac

#69
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!?

I would think you can't find recent Macports complaints because nobody uses Macports. I didn't even realize it was still being updated at all. I stopped using it many years ago because it was frequently long out of date and broke in ways that I found impossible to fix without wiping everything and starting over.

I switched to Fink, which broke occasionally but I was usually able to rescue it without too much hassle.

Eventually I stopped using Fink maybe a year (or two?) ago in favor of homebrew, and have not had any serious problems since. brew's structure combined with 'brew doctor' and a vast and frequently-updated array of available packages seem to have done a pretty good job of avoiding the "can't get there from here" problems I had with fink and macports.

Re: Hacker's Guide to Setting Up Your Mac

#70
post #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.

I don't like that it does this out of the box, but you can add something like the following to ~/.mackup.cfg

  [applications_to_ignore]
  ack
  bash
  git
  screen
  ssh
  tmux
  vim
Post reply on HN