Archive for February, 2014

You know …

February 24th, 2014 4 comments

that your login procedure is f**ked up when the manual describing how to log in is 60 pages long and contains flow charts covering a full page 😉

login flow chart

login flow chart

Categories: wtf Tags:

change shell on a mac

February 6th, 2014 1 comment


trying to change my login shell to zsh using the zsh built with homebrew i faced a small issue as OS X claimed:
chsh: /usr/local/bin/zsh: non-standard shell

The solution was to add the shell to the “approved” list:
echo "/usr/local/bin/zsh" >/etc/shells

The a simple chsh -s /usr/local/bin/zsh will do the trick.

Categories: Uncategorized Tags:

OSX from a stick

February 5th, 2014 No comments

My macbook completely crashed today trying to recover from some severe file system corruptions. The symptoms were system freezes that took between 5-45 seconds each. Using Xcode was impossible so I did some tests and dsikutil tried to fix it – a non bootable OS was the result.

No problem, I have backups (timemachine + tivoli) and fast wifi at work so I rebooted into recovery mode using the option key but disk util failed to format my 2 partition disk (bootcamp) into 1 new file system because it claimed a disk still being mounted (which turned out to be the recovery image itself – rather stupid setup…).

So I needed a Mavericks boot stick. Downloaded OSX installer from the app store, waited patiently and then ran the following command:

sudo /Applications/Install\ OS\ X\ --volume /Volumes/16GB --applicationpath /Applications/Install\ OS\ X\ --nointeraction

with /Volumes/16GB being the mountpoint of the USB-Stick I used (that one will be formatted – You have been warned).

Again wait patiently for the process to finish (expect ~30mins depending on your thumbdrive-speed) and you should have a bootable Mavericks installer:

Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.

Categories: software Tags:

Pipe view

February 4th, 2014 2 comments

a rather handy little helper is simply called “pv” – pipe view. I mainly use it when copying vms or lots of small files:
tar cf - ./src | pv --timer --rate --average-rate --bytes | ssh machine tar xpf - -C /dst
which then prints something like this:
4.54GiB 0:06:55 [11.2MiB/s] [11.2MiB/s]

pv can also be used to set a rate limit to the transfer using “-L 1m” to restrict the bandwidth to 1 MB/s. For the Mac users out there – homebrew has knows “pv”.

Categories: Uncategorized Tags: