forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowsers.sh
executable file
·84 lines (50 loc) · 2.32 KB
/
browsers.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
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Browsers\n\n"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
printf "\n"
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"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
printf "\n"
install_package "Flash" "flashplugin-installer"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
printf "\n"
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"