-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sh
executable file
·182 lines (103 loc) · 5.02 KB
/
main.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
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
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_apps() {
# Install tools for compiling/building software from source.
install_package "Build Essential" "build-essential"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# GnuPG archive keys of the Debian archive.
install_package "GnuPG archive keys" "debian-archive-keyring"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Software which is not included by default
# in Ubuntu due to legal or copyright reasons.
#install_package "Ubuntu Restricted Extras" "ubuntu-restricted-extras"
printf "\n"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Brotli" "brotli"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "google-chrome-unstable"; then
add_key "https://dl-ssl.google.com/linux/linux_signing_key.pub" \
|| print_error "Chrome Canary (add key)"
add_to_source_list "[arch=amd64] https://dl.google.com/linux/deb/ stable main" "google-chrome.list" \
|| print_error "Chrome Canary (add to package resource list)"
update &> /dev/null \
|| print_error "Chrome Canary (resync package index files)"
fi
install_package "Chrome Canary" "google-chrome-unstable"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Chromium" "chromium-browser"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "cURL" "curl"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "firefox-trunk"; then
add_ppa "ubuntu-mozilla-daily/ppa" \
|| print_error "Firefox Nightly (add PPA)"
update &> /dev/null \
|| print_error "Firefox Nightly (resync package index files)"
fi
install_package "Firefox Nightly" "firefox-trunk"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Flash" "flashplugin-installer"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "GIMP" "gimp"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Git" "git"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "GNOME Vim" "vim-gnome"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "ImageMagick" "imagemagick"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "opera"; then
add_key "https://deb.opera.com/archive.key" \
|| print_error "Opera (add key)"
add_to_source_list "https://deb.opera.com/opera-stable/ stable non-free" "opera.list" \
|| print_error "Opera (add to package resource list)"
update &> /dev/null \
|| print_error "Opera (resync package index files)"
fi
# Automatically answer `Yes` to the `package configuration` prompt.
# https://github.com/alrra/dotfiles/issues/17
printf "opera-stable opera-stable/add-deb-source boolean true\n" \
| sudo debconf-set-selections
install_package "Opera" "opera-stable"
printf "opera-beta opera-beta/add-deb-source boolean true\n" \
| sudo debconf-set-selections
install_package "Opera Beta" "opera-beta"
printf "opera-developer opera-developer/add-deb-source boolean true\n" \
| sudo debconf-set-selections
install_package "Opera Developer" "opera-developer"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "ShellCheck" "shellcheck"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "tmux" "tmux"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Transmission" "transmission"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "VLC" "vlc"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "xclip" "xclip"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! package_is_installed "yarn"; then
add_key "https://dl.yarnpkg.com/debian/pubkey.gpg" \
|| print_error "Yarn (add key)"
add_to_source_list "https://dl.yarnpkg.com/debian/ stable main" "yarn.list" \
|| print_error "Yarn (add to package resource list)"
update &> /dev/null \
|| print_error "Yarn (resync package index files)"
fi
install_package "Yarn" "yarn"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_package "Zopfli" "zopfli"
}
main() {
print_in_purple " Miscellaneous\n\n"
update
upgrade
printf "\n"
install_apps
printf "\n"
autoremove
}
main