Skip to content

rodfersou/dotfiles

Repository files navigation

Macbook install procedure

Update to Catalina

Open Apple store and update

Update XCode

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

Install Homebrew

https://brew.sh/

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Google Chrome

https://www.google.com/chrome/

brew cask install google-chrome

Install Firefox

brew cask install firefox

Install VSCode

code | brew cask install visual-studio-code

Install harvest

brew cask install harvest

Install iTerm2

https://iterm2.com/downloads.html

iterm | brew cask install iterm2 

In iTerm2:

  • Profiles -> Open Profiles...
  • Edit Profiles...
  • Keys tab
  • From Load Preset... drop-down, pick Terminal.app compatibility

Install Slack

https://slack.com/downloads/mac

brew cask install slack

Install Line

https://apps.apple.com/br/app/line/id539883307?l=en&mt=12

Install Wechat

brew cask install wechat

Install SSH

  • Enable full access to filesystem to iTerm
brew install openssh
sudo systemsetup -getremotelogin
sudo systemsetup -setremotelogin on
sudo systemsetup -getremotelogin

Install extra utilities

brew install p7zip htop zsh ranger watch httpie jq

Enable USB Tethering

jwise/HoRNDIS#102

brew cask install horndis

Install encfs

brew cask install osxfuse
brew install encfs

Install NTFS-3G

https://github.com/osxfuse/osxfuse/wiki/NTFS-3G

brew install ntfs-3g
  • Reboot macOS to Recovery Mode (Turn on your Mac and immediately press and hold Command (⌘)-R.)
  • Open Terminal in Recovery Mode from Menu bar -> Utilities -> Terminal
csrutil disable
diskutil list
  • Find the label Macintosh HD (my case disk2s5)
diskutil apfs unlockVolume disk2s5
cd "/Volumes/Macintosh HD/sbin"
mv mount_ntfs mount_ntfs.orig
ln -s "/Volumes/Macintosh HD/usr/local/sbin/mount_ntfs" mount_ntfs

cd "/Volumes/Macintosh HD"
ln -s "/Volumes/Macintosh HD/Users/rodrigo/.projects" srv

csrutil enable
  • Reboot to normal mac

Configure dotfiles

https://github.com/rodfersou/dotfiles

git clone https://github.com/rodfersou/dotfiles.git .dotfiles

Update git reference

(cd .dotfiles/.git && vi config)
[remote "origin"]
    url = git@github.com:rodfersou/dotfiles.git
    fetch = +refs/heads/*:refs/remotes/origin/*

Install Kdiff3

brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask/6a96e5ea44803e52a43c0c89242390f75d1581ab/Casks/kdiff3.rb

Install RCM

https://github.com/thoughtbot/rcm

brew tap thoughtbot/formulae
brew install rcm

Configure dotfiles

(cd .dotfiles && make)
(cd .dotfiles && make install)
(cd .ssh/ids && chmod 600 *)

Install Oh My Zsh

https://github.com/ohmyzsh/ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install terminal utilities

brew install screen tmux the_silver_searcher

Install VIM

brew install vim
curl -sS https://raw.githubusercontent.com/mkropat/vim-dwiw2015/master/bootstrap.sh | sh

Open vim and run

:PluginInstall

Install fonts in ~/.fonts

Install Karabiner

brew cask install karabiner-elements

Development environment

Some dependencies

brew install readline openssl xz zlib expat
brew link zlib --force

Install asdf

https://github.com/asdf-vm/asdf

brew install asdf --HEAD
brew install \
  coreutils automake autoconf openssl \
  libyaml readline libxslt libtool unixodbc \
  unzip curl

Install Python

https://github.com/danhper/asdf-python

brew install autoconf openssl@1.1 pkg-config readline sqlite3 xz zlib
asdf plugin-add python
asdf install python 2.7.17
asdf install python 3.7.5
asdf global python 3.7.5 2.7.17

Install Node.js

https://github.com/asdf-vm/asdf-nodejs

asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
brew install gnupg
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
asdf install nodejs 10.14.2
asdf global nodejs 10.14.2

Configure Development Environment

Create needed folders

mkdir -p Projects/cache/downloads
mkdir Projects/cache/eggs
mkdir Projects/cache/extens

Error fatal error: 'X11/Xlib.h' file not found

brew cask install xquartz
ln -s /opt/X11/include/X11 /usr/local/include/X11

Error ImportError: failed to find libmagic. Check your installation

brew install libmagic

Error ext/_yaml.h:2:10: fatal error: 'yaml.h' file not found

brew install libyaml

Setup Pillow

--- TKINTER support available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** LIBTIFF support not available
--- FREETYPE2 support available
*** LITTLECMS2 support not available
*** WEBP support not available
*** WEBPMUX support not available
brew install libpng libtiff freetype little-cms2 webp openjpeg freetype harfbuzz fribidi

Speed up terminal

defaults write -g InitialKeyRepeat -int 15
defaults write -g KeyRepeat -int 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published