macOS Development Setup


macosdevarchived

Programme

System konfigurieren

  • SSH Schlüssel einspielen oder erzeugen ( ssh-keygen -t rsa -C “john@doe.com” ggfl. ssh-add -K ausführen)
  • Automatische Rechtschreibkorrektur deaktivieren

Zsh

https://github.com/zsh-users/zsh-completions/issues/433#issuecomment-390600994

Werkzeuge

xcode-select --install
sudo easy_install pip
sudo pip install virtualenv
sudo pip install --no-deps stevedore
sudo pip install pycodestyle
sudo pip install --no-deps virtualenvwrapper
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install yarn gettext npm ssh-copy-id aha
brew link --force gettext
npm install -g less

Check Homebrew for latest version

Umgebungen verknüpfen

echo "source ~/Library/Mobile\ Documents/com~apple~CloudDocs/macOS/Bash/init.bash" >> ~/.bash_profile
echo "source ~/Library/Mobile\ Documents/com~apple~CloudDocs/macOS/Zsh/init.sh" >> ~/.zprofile
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/macOS/ssh/config.d config.d
# Enable dynmaic mounting
sudo chmod +a "USERNAME:allow:add_subdirectory" /Volumes

Python3

brew install python
ls -l /usr/local/bin/python*
ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python
python --version

FontAwesome Pro

npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \
  npm config set "//npm.fontawesome.com/:_authToken" 00000000-0000-0000-0000-0000000000000

git einrichten

git config --global user.name "John Doe"
git config --global user.email "john@doe.com"
git config --global push.default simple

Lokale Development tld einrichten

brew install dnsmasq
# address=/asd/127.0.0.1 in /usr/local/etc/dnsmasq.conf eintragen (asd = gewünschte tld)
brew services start dnsmasq
# nameserver 127.0.0.1 in /private/etc/resolver/asd eintragen

mysql-server

brew install mysql
mysql_secure_installation

postgres-server

brew install postgres
brew install postgis # optional
# ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
initdb # wenn /usr/local/var/postgres nicht existiert
# createdb

memcached server

brew install memcached

memcached.org

php & php-fpm

brew tap homebrew/php
brew tap homebrew/dupes
brew install php55 --with-fpm

# Test PHP
# lsof -Pni4 | grep LISTEN | grep php

Nützliche & Interessante Brew Pakete

ssh-copy-id, wget, gource, dnsmasq, libdvdcss, flake8

Meta-level


Article language
German
Article date
Feb. 16, 2017
Updated at
July 12, 2022