-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlinux
134 lines (100 loc) · 4.74 KB
/
linux
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/usr/bin/env bash
### end common-components/bash-shebang
# Welcome to the codica laptop script! Be prepared to turn your laptop (or
# desktop, no haters here) into an awesome development machine.
RED='\033[0;32m'
NC='\033[0m'
fancy_echo() {
local fmt="$1"; shift
printf "\\n${RED}$fmt${NC}\\n" "$@"1
}
read -p "Enter your email to generate ssh key: " email
fancy_echo "Installing git, for source control management ..."
sudo apt install -y git
fancy_echo "Installing libraries for common gem dependencies ..."
sudo apt --ignore-missing install -y libxslt1-dev libcurl4-openssl-dev libksba8 libksba-dev libqtwebkit-dev libreadline-dev build-essential apt-transport-https ca-certificates gnupg-agent software-properties-common
fancy_echo "Installing snapd canonical package manager"
sudo apt install -y snapd
fancy_echo "Installing VLC media player"
sudo snap install vlc
fancy_echo "Installing Postman API development environment"
sudo snap install postman
fancy_echo "Installing simple screen recorder"
sudo apt install -y simplescreenrecorder
fancy_echo "Installing Joxi"
wget -q "http://dl.joxi.ru/linux/joxi-amd64.deb"
sudo apt install -y ./joxi-amd64.deb
rm joxi-amd64.deb
fancy_echo "Installing sqlite3, for prototyping database-backed rails apps ..."
sudo apt install -y libsqlite3-dev sqlite3
fancy_echo "Installing Postgres, a good open source relational database ..."
sudo apt install -y postgresql postgresql-server-dev-all
fancy_echo "Installing tmux, to save project state and switch between projects ..."
sudo apt install -y tmux
fancy_echo "Installing guake, a super terminal"
sudo apt install -y guake
fancy_echo "Installing ImageMagick, to crop and resize images ..."
sudo apt install -y imagemagick libmagickwand-dev
fancy_echo "Installing curl ..."
sudo apt install -y curl
fancy_echo "Installing Redis ..."
wget http://download.redis.io/redis-stable.tar.gz &&
tar xvzf redis-stable.tar.gz &&
cd redis-stable && make
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
fancy_echo "Installing Ngrok ..."
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && rm ngrok-stable-linux-amd64.zip
fancy_echo "Installing Sublime Text 3 ..."
sudo snap install --classic sublime-text
fancy_echo "Installing VS Code ..."
sudo snap install --classic code
fancy_echo "Installing Unity Tweak Tool ..."
sudo apt install -y unity-tweak-tool
fancy_echo "Installing zsh and making it default shell..."
sudo apt install -y zsh
chsh -s $(which zsh)
fancy_echo "Installing node, to render the rails asset pipeline ..."
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs
fancy_echo "Installing RVM"
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E37D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s -- --ignore-dotfiles
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
fancy_echo "Installing Ruby"
sudo apt install -y ruby
fancy_echo "Installing Heroku CLI client ..."
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
fancy_echo "Installing Heroku plugins ..."
heroku plugins:install heroku-accounts
heroku plugins:install heroku-config
fancy_echo "Installing chrome ..."
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt update
sudo apt install -y google-chrome-stable
fancy_echo "Generating ssh key"
ssh-keygen -b 4096 -t ed25519 -f /home/user/.ssh/key-ed25519 -q -N "" -C "$email"
sudo mv ~/.config/autostart/gnome-keyring-ssh.desktop ~/.config/autostart/gnome-keyring-ssh.backup
ssh-add /home/user/.ssh/key-ed25519
fancy_echo "Installing Docker"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
fancy_echo "Installing Wine"
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo apt update
sudo apt install -y --install-recommends winehq-stable
fancy_echo "Installing oh-my-zsh ..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
if [ -f "$HOME/.laptop-ubuntu.local" ]; then
fancy_echo "Running your customizations from ~/.laptop-ubuntu.local ..."
. "$HOME/.laptop-ubuntu.local"
fi