-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
51 lines (41 loc) · 1.61 KB
/
setup.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
#!/bin/bash
apt-get -y update
apt-get -y dist-upgrade
apt-add-repository -y ppa:ansible/ansible ppa:webupd8team/terminix ppa:neovim-ppa/stable ppa:atareao/telegram
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
add-apt-repository -y "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
add-apt-repository -y "deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main"
add-apt-repository -y "deb [arch=amd64] https://repo.skype.com/deb stable main"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get -y update
apt-get -y install docker-ce ansible tilix code google-chrome-stable neovim slack fonts-inconsolata telegram
fc-cache -fv
cat <<EOF >> /etc/vim/vimrc
set nu
set ls=2
set scrolloff=5
syntax enable
set nocompatible
set autoindent
set tabstop=3
set cursorline
hi CursorLine ctermbg=235
hi Comment ctermfg=darkcyan
set showmatch
set hlsearch
set incsearch
set ignorecase
set expandtab
set paste
EOF
cat <<EOF >> /etc/profile
export GOPATH=~/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
#export EC2_INI_PATH=/etc/ansible/ec2.ini
EOF
sed -i 's/\[defaults]/&\n callback_whitelist = timer, mail, profile_tasks/' /etc/ansible/ansible.cfg
sed -i 's/\[defaults]/&\n nocows = 1/' /etc/ansible/ansible.cfg