Mac OS

Tips & Tricks around Apple Mac OS


Installing dnsmasq on Mac OS X for local development

To install dnsmasq, you need to have installed homebrew first. Have a look at this article if you haven't got brew yet. You can install dnsmasq like this: brew install dnsmasq Next up, copy the configuration files and start dnsmasq: cp $(brew list dnsmasq | grep /dnsmasq.conf.example$) /usr/local/etc/dnsmasq.conf sudo cp $(brew list dnsmasq | grep […]


Securing Mac-OS from CVE-2014-7169 (Shellshock / Bash bug)

For this to work you need to have Xcode installed. If you don't have it, try: sudo xcode-select –install In a terminal execute these commands: mkdir bash-fix cd bash-fix curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf – cd bash-92/bash-3.2 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-054 | patch -p0 cd .. xcodebuild Wait until you […]


Securing Mac-OS from CVE-2014-6271 (Shellshock / Bash bug)

For this to work you need to have Xcode installed. If you don't have it, try: sudo xcode-select –install In a terminal execute these commands: mkdir bash-fix cd bash-fix curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf – cd bash-92/bash-3.2 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0 cd .. xcodebuild Wait until you see "BUILD SUCCEEDED". Backup your old executables: […]


Installing Homebrew on Mac OS X

Just type the following command on a command line: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" The output should be similar to this: ==> This script will install: /usr/local/bin/brew /usr/local/Library/… /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/doc ==> The following directories will have their group […]


Remove an App from Mac OS Launchpad

You may need to remove an application from your launchpad from time to time – an installation that did not work correctly or whatever. Just open a terminal and execute the following commands: sudo sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='<appname>';" killall Dock Whereas you replace <appname> with the name of your application, for […]


Setting up a transparent proxy for VPN via SSH using sshuttle

I found this tool and it's quite useful if you need to run VPN via SSH on Linux or Mac OS. You can download the tool from here via git or as a zip file. git clone https://github.com/apenwarr/sshuttle.git Then go to your sshuttle folder and start your proxy like this: ./sshuttle –dns -vvr <user>@<host> 0/0 <user> and […]