Skip to content

verdammelt/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up a new machine

In the beginning

Drop box (via homebrew cask)

Launchbar (via homebrew cask)

1Password (via homebrew cask)

Basics:

Run setup.sh

  • copies in all dotfiles
  • copies in all shell scripts
  • corrects fetchmail permissions
  • installs brew
  • installs brew cask items
  • installs brew items

PATH

Edit /etc/paths:

/opt/homebrew/opt/findutils/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/gnu-which/libexec/gnubin
/opt/homebrew/opt/grep/libexec/gnubin
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/openssl@3/bin
/opt/homebrew/opt/unzip/bin
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

(or similar)

Postfix

Config files

  • Add gmail settings to /etc/postfix/sasl_passwd
    • “work-email work-email:<work-password>”
    • “[smtp.gmail.com]:587 <username>:<password>”
  • execute sudo postmap /etc/postfix/sasl_passwd"
  • Add gmail settings to /etc/postfix/sender_relay
    • “work-email [smtp.gmail.com]:587”
    • “home-email [smtp.gmail.com]:587”
  • execute sudo postmap /etc/postfix/sender_relay
  • append the following to /etc/postfix/main.cf
#### GMAIL
####
# Gmail SMTP relay
relayhost = [smtp.gmail.com]:587

# Enable SASL authentication in the Postfix SMTP client.
smtpd_sasl_auth_enable = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sasl_mechanism_filter = AUTH LOGIN

smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay

# Enable Transport Layer Security (TLS), i.e. SSL.
smtp_use_tls = yes
smtp_tls_security_level = encrypt
tls_random_source = dev:/dev/urandom

Start on boot

  • cp /System/Library/LaunchDaemons/com.apple.postfix.master.plist /Library/LaunchDaemons
  • edit file to:
    • change the label
    • remove -e 60 arguments
    • add <key>KeepAlive<key/><true/>
  • launchctl load /Library/LaunchDaemons/com.apple.postfix.master.plist

FetchMail

  • copy .netrc
  • copy .ssl directory into place
  • exucute c_rehash ~/.ssl/certs (c_rehash is in brew’s Cellar/openssl
  • execute cp $SRC/Files/mark.fetchmail.plist ~/Library/LaunchAgents
  • execute launchctl load ~/Library/LaunchAgents/mark.fetchmail.plist

GPG Keys

Copy keys from other machine

SSH Keys

Copy keys from other machine or create new.

Misc MacOSX defaults

  • defaults write com.apple.finder AppleShowAllFiles YES
  • defaults write com.apple.finder QuitMenuItem -bool YES
  • defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true
  • defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>' (globally disable CTRL-CMD-D (open dictionary definition)

Emacs:

  • link emacs from brew into /Applications
  • Add as custom list item in Launchbar

Other applications

Quicklisp

  • curl -O https://beta.quicklisp.org/quicklisp.lisp
  • sbcl --no-userinit --load quicklisp.lisp
  • (quicklisp-quickstart:install :path "~/.quicklisp")

Amphetamine

Flow