-
Notifications
You must be signed in to change notification settings - Fork 0
/
apt_installs.sh
executable file
·88 lines (68 loc) · 2.93 KB
/
apt_installs.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
echo "do not run this script its crap user permission messed up"
exit 0
export DEBIAN_FRONTEND=noninteractive
export TZ=Europe
echo "---------------- making it larger this is dev stuff it makes a minimal ubuntu container larger -----------------------"
# unminimize - #only needed if running inside a container
echo "----------------- Getting initial tools needed for addint repos and certificates ect -------------------"
apt-get update && apt-get install -yq \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg-agent \
gnupg2 \
curl \
sudo \
apt-utils
echo "----------------------- Getting Docker Repo ---------------------------------------------------"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
echo "--------------------- Getting VIM repo --------------------------------------------------"
add-apt-repository ppa:jonathonf/vim
echo "------------------------ Getting Kubectl Repo -------------------------------------------"
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list
echo "--------------------------------- Getting Helm Repo -----------------------------------"
curl https://baltocdn.com/helm/signing.asc | apt-key add -
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list
echo "--------------------------------- Installing a lot of things --------------------------"
apt-get update && apt-get install -yq \
wget \
net-tools \
git \
zsh \
tmux \
nodejs \
npm \
yarn \
docker-ce \
docker-ce-cli \
containerd.io \
python3-venv \
python3-pip \
vim \
kubectl \
helm
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
export homedir=/home/philipusher
## curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh ## this didnt work so i used the interaqctive install
export ZSH_CUSTOM=${homedir}/.oh-my-zsh
git clone git://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting
cp zsh/zshrc ${homedir}/.zshrc
#TMUX CONF
cp tmux/tmux.conf ${homedir}/.tmux.conf
#VIM Plugins
curl -fLo ${homedir}/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp vim/vimrc ${homedir}/.vimrc
cp vim/coc-settings.json ${homedir}/.vim/coc-settings.json
mkdir -p ${homedir}/.config/coc
vim +'PlugInstall --sync' +qa
vim +'CocInstall -sync coc-python' +qa
chsh -s $(which zsh)