forked from thoughtbot/laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux.xfce
324 lines (240 loc) · 9.87 KB
/
linux.xfce
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
#!/usr/bin/env bash
### end common-components/bash-shebang
# Welcome to the thoughtbot laptop script! Be prepared to turn your laptop (or
# desktop, no haters here) into an awesome development machine.
# This file is auto-generated. Do not edit it by hand unless you know what
# you're doing. Please see 'CONTRIBUTING.md' for more information.
### end common-components/header
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT
set -e
### end common-components/exit-trap
if [[ ! -d "$HOME/.bin/" ]]; then
mkdir "$HOME/.bin"
fi
if [ ! -f "$HOME/.zshrc" ]; then
touch $HOME/.zshrc
fi
if [[ ":$PATH:" != *":$HOME/.bin:"* ]]; then
echo 'export PATH="$HOME/.bin:$PATH"' >> ~/.zshrc
export PATH="$HOME/.bin:$PATH"
fi
### end common-components/check-home-bin
fancy_echo() {
printf "\n%b\n" "$1"
}
### end common-components/shared-functions
if ! grep -qiE 'precise|quantal|wheezy|raring|jessie|saucy|trusty' /etc/os-release; then
fancy_echo "Sorry! we don't currently support that distro."
exit 1
fi
### end linux-common-components/distro-check
fancy_echo "Updating system packages ..."
if command -v aptitude >/dev/null; then
fancy_echo "Using aptitude ..."
else
fancy_echo "Installing aptitude ..."
sudo apt-get install -y aptitude
fi
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository -y ppa:rwky/redis
sudo add-apt-repository -y ppa:keithw/mosh
sudo add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo add-apt-repository -y ppa:vincent-c/nevernote
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo add-apt-repository -y ppa:saiarcot895/myppa
sudo add-apt-repository -y ppa:numix/ppa
sudo apt-get -y update
sudo apt-get -y install apt-fast
### end linux-common-components/debian-package-update
fancy_echo "Installing git, for source control management ..."
sudo apt-fast install -y git
fancy_echo "Installing base ruby build dependencies ..."
sudo apt-fast build-dep -y ruby1.9.3
fancy_echo "Installing libraries for common gem dependencies ..."
sudo apt-fast install -y libxslt1-dev libcurl4-openssl-dev libksba8 libksba-dev libqtwebkit-dev libreadline-dev
fancy_echo "Installing Postgres, a good open source relational database ..."
sudo apt-fast install -y postgresql postgresql-server-dev-all postgresql-contrib-9.3
fancy_echo "Installing ctags, to index files for vim tab completion of methods, classes, variables ..."
sudo apt-fast install -y exuberant-ctags
fancy_echo "Installing vim ..."
sudo apt-fast install -y vim-gtk
fancy_echo "Installing tmux, to save project state and switch between projects ..."
sudo apt-fast install -y tmux
fancy_echo "Installing ImageMagick, to crop and resize images ..."
sudo apt-fast install -y imagemagick
fancy_echo "Install ImageMagick dev tools..."
sudo apt-fast install -y libmagickcore-dev libmagickwand-dev
fancy_echo "Installing curl ..."
sudo apt-fast install -y curl
fancy_echo "Installing zsh ..."
sudo apt-fast install -y zsh
fancy_echo "Installing libicu-dev ..."
sudo apt-fast install -y libicu-dev
### end linux-common-components/debian-derivative-packages
fancy_echo "Install ubuntu update manager..."
sudo apt-fast install -y update-manager
### end linux-common-components/update-manager
if ! which ag &>/dev/null; then
fancy_echo "Installing The Silver Searcher (better than ack or grep) to search the contents of files ..."
git clone git://github.com/ggreer/the_silver_searcher.git /tmp/the_silver_searcher
sudo aptitude install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
sh /tmp/the_silver_searcher/build.sh
cd /tmp/the_silver_searcher
sh build.sh
sudo make install
cd
rm -rf /tmp/the_silver_searcher
fi
### end linux-common-components/silver-searcher-from-source
fancy_echo "Install bitstream vera sans"
sudo apt-fast install -y ttf-bitstream-vera
### end linux-common-components/vera-bitstream-sans
sudo apt-fast install -y python-software-properties
#sudo add-apt-repository -y ppa:rwky/redis
#sudo apt-fast update
sudo apt-fast install -y redis-server
### end linux-common-components/redis
fancy_echo "Installing whois..."
sudo apt-fast install -y whois
### end linux-common-components/whois
fancy_echo "Install ncurses-term for 256 terminal colors"
sudo apt-fast -y install ncurses-term
### end linux-common-components/ncurses-term
fancy_echo "Install irssi irc client..."
sudo apt-fast -y install irssi
### end linux-common-components/irssi
fancy_echo "Installing DNS utils"
sudo apt-fast -y install dnsutils
### end linux-common-components/dnsutils
fancy_echo "Installing keychain..."
sudo apt-fast install -y keychain
### end linux-common-components/keychain
fancy_echo "Installing kupfer..."
sudo apt-fast install -y kupfer
### end linux-xfce-components/kupfer
fancy_echo "Installing leafpad..."
sudo apt-fast install -y leafpad
### end linux-xfce-components/leafpad
### end linux-xfce-components/meld
fancy_echo "Installing xubuntu-icon-theme..."
sudo apt-fast install -y xubuntu-icon-theme
### end linux-xfce-components/xubuntu-icon-theme
sudo apt-fast install -y python-software-properties
#sudo add-apt-repository -y ppa:keithw/mosh
#sudo apt-fast update
sudo apt-fast install -y mosh
### end linux-common-components/mosh
fancy_echo "Installing firefox..."
sudo apt-fast install -y firefox
### end linux-common-components/firefox
fancy_echo "Installing Google Chrome..."
cd ~
sudo apt-fast install -y libxss1 xdg-utils libnss3 libnspr4 libappindicator1
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
rm google-chrome*.deb
### end linux-xfce-components/chrome
fancy_echo "Installing chruby..."
wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
fancy_echo "Installing ruby-install..."
wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz
tar -xzvf ruby-install-0.5.0.tar.gz
cd ruby-install-0.5.0/
sudo make install
### end linux-common-components/chruby
fancy_echo "Installing archive formats..."
sudo apt-fast install -y unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
### end linux-common-components/archive-formats
fancy_echo "Installing ubuntu restricted addons..."
sudo apt-fast install -y ubuntu-restricted-addons
fancy_echo "Installing gstreamer..."
sudo apt-fast install -y gstreamer0.10-plugins-bad-multiverse
fancy_echo "Installing libav-tools..."
sudo apt-fast install -y libav-tools
fancy_echo "Installing unrar..."
sudo apt-fast install -y unrar
### end linux-common-components/ubuntu-restricted-extras
fancy_echo "Installing ubuntu software center..."
sudo apt-fast install -y software-center
### end linux-common-components/software-center
fancy_echo "Installing synaptic..."
sudo apt-fast install -y synaptic
### end linux-common-components/synaptic
fancy_echo "Installing ttf-ubuntu-font-family"
sudo apt-fast install -y ttf-ubuntu-font-family
### end linux-common-components/ttf-ubuntu-font-family
fancy_echo "Installing Node JS and NPM..."
#sudo apt-fast install -y python-software-properties python g++ make
#sudo add-apt-repository -y ppa:chris-lea/node.js
#sudo apt-get -y update
sudo apt-fast install -y nodejs
fancy_echo "Install Yeoman..."
sudo npm install -g yo
fancy_echo "Installing angular generator for yeoman..."
sudo npm install -g generator-angular
fancy_echo "Installing Grunt CLI..."
sudo npm install -g grunt-cli
fancy_echo "Installing Bower..."
sudo npm install -g bower
### end linux-common-components/nodejs
fancy_echo "Installing conky..."
sudo apt-fast -y install conky-all
sudo apt-fast -y install conky curl lm-sensors hddtemp
### end linux-common-components/conky
fancy_echo "Installing Terminator..."Terminator
sudo apt-fast -y install terminator
### end linux-common-components/terminator
fancy_echo "Installing flash plugin..."
sudo apt-fast install -y flashplugin-installer
### end linux-common-components/flash
fancy_echo "Installing gimp..."
sudo apt-fast install -y gimp gimp-data gimp-plugin-registry gimp-data-extras
### end linux-common-components/gimp
fancy_echo "Installing git-gui..."
sudo apt-fast install -y git-gui
### end linux-common-components/git-gui
fancy_echo "Installing nixnote..."
#sudo add-apt-repository -y ppa:vincent-c/nevernote
#sudo apt-fast update
sudo apt-fast install -y nixnote
### end linux-common-components/nixnote
fancy_echo "Installing pidgin..."
sudo apt-fast install -y pidgin
### end linux-common-components/pidgin
fancy_echo "Installing Skype..."
#sudo add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
#sudo apt-fast update
sudo apt-fast install -y skype
### end linux-common-components/skype
fancy_echo "Installing thunderbird..."
sudo apt-fast install -y thunderbird
### end linux-common-components/thunderbird
fancy_echo "Installing VLC..."
sudo apt-fast install -y vlc browser-plugin-vlc
### end linux-common-components/vlc
fancy_echo "Installing Xclip"
sudo apt-fast -y install xclip
### end linux-common-components/xclip
sudo apt-fast install -y xbacklight
### end linux-common-components/xbacklight
fancy_echo "Installing wine..."
sudo apt-fast install -y wine
### end linux-common-components/wine
#fancy_echo "Installing Dropbox CLI tools..."
#mkdir -p ~/bin
#wget -O ~/bin/dropbox.py "http://www.dropbox.com/download?dl=packages/dropbox.py"
#chmod 755 ~/bin/dropbox.py
#~/bin/dropbox.py start -i
#fancy_echo "Installing Dropbox to run on startup..."
#~/bin/dropbox.py autostart y
fancy_echo "Installing Dropbox..."
sudo apt-fast -y install nautilus-dropbox
# fancy_echo "Installing Thunar integration for Dropbox..."
# sudo add-apt-repository -y ppa:xubuntu-dev/extras
# sudo apt-fast -y update
# sudo apt-fast -y install thunar-dropbox-plugin
### end linux-common-components/dropbox