-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
60 lines (48 loc) · 2.04 KB
/
install.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# Update and install some fetchers.
sudo apt-get update -y && sudo apt-get dist-upgrade -y
sudo apt-get install git mercurial curl python-pip python3-pip
#Install some dotfiles.
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# bash
ln -fs ${BASEDIR}/bashrc ~/.bashrc
source ~/.bashrc
ln -fs ${BASEDIR}/profile ~/.profile
source ~/.profile
# git
ln -fs ${BASEDIR}/gitconfig ~/.gitconfig
#u2f
if [ -e "/etc/udev/rules.d/70-u2f.rules" ]; then
echo "U2F alredy enabled, proceeding..."
else
sudo cp ./70-u2f.rules /etc/udev/rules.d
fi
#Download some things
wget https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb
sudo dpkg -i google-chrome-unstable_current_amd64.deb
sudo apt-get -f install
# GCloud SDK
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install google-cloud-sdk google-cloud-sdk-app-engine-python google-cloud-sdk-app-engine-go google-cloud-sdk-datalab google-cloud-sdk-datastore-emulator google-cloud-sdk-pubsub-emulator google-cloud-sdk-bigtable-emulator kubectl
#install golang
GOVERSION="1.8.3"
DFILE="go$GOVERSION.linux-amd64.tar.gz"
wget https://storage.googleapis.com/golang/$DFILE -P ~/Downloads
if [ $? -ne 0 ]; then
echo "Download failed! Exiting."
exit 1
fi
sudo tar -C /usr/local -xzf ~/Downloads/$DFILE
mkdir -p ~/go/{bin,pkg,src/github.com/mikecb}
#Python dev
sudo apt-get install python3-numpy python3-scipy python3-matplotlib ipython3 ipython3-notebook cython3
sudo pip3 install yapf pystan
sudo pip3 install --upgrade tensorflow
#Protobufs
sudo apt-get install protobuf-compiler
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
#install atom & packages
sudo snap install --classic atom
apm install python-yapf git-plus minimap autocomplete-go go-plus go-debug sort-lines language-yara language-protobuf autocomplete-json