-
Notifications
You must be signed in to change notification settings - Fork 0
/
macos.sh
executable file
·39 lines (33 loc) · 1.4 KB
/
macos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
echo ">>> Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
echo ">>> Installing Python2.7 for installing Powerline-shell..."
brew install python@2
sudo easy_install pip
echo ">>> Installing commonly-used packages..."
brew install python3 emacs gcc openssh curl wget zsh nmap
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
rm -f get-pip.py
pip3 install pipenv
pip install speedtest-cli
echo ">>> Installing megadecryptor..."
git clone https://github.com/denysvitali/megadecrypter
cd megadecrypter/
brew install crystal
crystal build --release src/megadecrypter.cr
sudo mv ./megadecrypter /usr/local/bin/
cd ..
rm -rf megadecrypter
brew uninstall libevent bdw-gc llvm@5 pcre crystal
echo ">>> Installing Java jre and jdk..."
brew cask install java
echo ">>> Installing docker and docker-compose"
brew install docker docker-compose docker-machine xhyve docker-machine-driver-xhyve
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
docker-machine create default --driver xhyve --xhyve-experimental-nfs-share
eval $(docker-machine env default)
docker-machine stop
echo ">>> Docker installed successfully, to enable docker \"$ docker-machine start\""