Install brew, it will install xcode-shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Install basic packages, in terminal
brew install htop bmon mtr wget openvpn
add some instructions to .zshrc
igor@igormac ~ % cat .zshrc
alias ls='ls -G'
alias la='ls -lah'
alias pa='ps aux | grep'
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
export PATH="/usr/local/sbin:$PATH"
the last export is important!
Now let's fix DNS resolve issue on MacOS
~ % cd /usr/local/etc/openvpn
openvpn % wget https://raw.githubusercontent.com/andrewgdotcom/openvpn-mac-dns/master/etc/openvpn/update-resolv-conf
openvpn % chmod 755 update-resolv-conf
back home
cd ~
and fix the file my-verysecure.ovpn
, delete the following lines
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
and place fixed one
up /usr/local/etc/openvpn/update-resolv-conf
down /usr/local/etc/openvpn/update-resolv-conf
now connect to VPN
~ % sudo openvpn .ssh/my-verysecure.ovpn
...