dotfiles with chezmoi
Create new Admin-User (adm
). Login once and create normal user (dan
). Switch to normal user.
-
Terminal:
# switch to user with admin permissions $ su adm # do not show adm account $ sudo dscl . create /Users/adm IsHidden 1 $ sudo chflags hidden /Users/adm # change computer name $ sudo scutil --set ComputerName 12inch $ sudo scutil --set LocalHostName 12inch # enable firewall with logging and stealth mode $ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on $ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingmode on $ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on $ sudo pkill -HUP socketfilterfw # add to sudoers file $ echo 'dan ALL = (ALL) ALL' | sudo tee /etc/sudoers.d/dan > /dev/null
-
Install Homebrew as normal user:
$ brew analytics off $ brew update
-
Generate ssh key (no password)
$ ssh-keygen -t ed25519 -C "dabio@users.noreply.github.com"
-
Install
chezmoi
and dotfiles:$ brew install chezmoi $ chezmoi init --apply git@github.com:dabio/chezmoi.git
-
Install Brewfile
$ brew bundle