-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·223 lines (201 loc) · 6.57 KB
/
install.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
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
#!/bin/bash
LOGFILE=/tmp/my-desktop-install.log
declare -a MY_PACKAGES=(
"apt-transport-https"
"ca-certificates"
"curl"
"software-properties-common"
"git"
"intel-microcode"
"xserver-xorg-video-intel"
"mesa-utils"
"mesa-utils-extra"
"xorg"
"ubuntu-drivers-common"
"fonts-ubuntu"
"lxappearance"
"gtk-chtheme"
"qt4-qtconfig"
"slim"
"zsh"
"rxvt-unicode"
"scrot"
"imagemagick"
"xautolock"
"pasystray"
"fonts-powerline"
"fonts-font-awesome"
"nfs-common"
"ranger"
"xbacklight"
"arandr"
"rofi"
"vlc"
"feh"
"mosquitto-clients"
"pavucontrol"
"aptitude"
"htop"
"qbittorrent"
"thunar"
"gimp"
"build-essential"
"automake"
"autoconf"
"bluez"
"cups"
"cups-client"
"cups-filters"
"sane"
"sane-utils"
"libsane-extras"
"xsane"
"libdbus-1-dev"
"network-manager"
"python3-pip"
"python3-setuptools"
"python-gobject"
"python3-yaml"
"libgio2.0"
"gobject-introspection"
"libgtk2.0-0"
"libnotify4"
"gettext"
"gir1.2-notify-0.7"
"libnotify-bin"
"libx11-dev"
"libxinerama-dev"
"libxrandr-dev"
"libxss-dev"
"libglib2.0-dev"
"libpango1.0-dev"
"libgtk-3-dev"
"libxdg-basedir-dev"
"libnotify-dev"
"libxml2:i386"
"libpulse-dev"
"meson"
"ninja-build"
"pkg-config"
"parallel"
"ruby-sass"
"sassc"
"optipng"
"inkscape"
"libgtk-3-dev"
"libgdk-pixbuf2.0-dev"
"libglib2.0-dev"
"libglib2.0-bin"
"libxml2-utils"
"librsvg2-dev"
"gnome-themes-standard"
"gtk2-engines-murrine"
"gtk2-engines-pixbuf"
"fonts-roboto-hinted"
"fonts-noto-hinted"
)
# system-config-printer-gnome
# indicator-printers
# hplip
# printer-driver-brlaser
# printer-driver-c2esp
# printer-driver-foo2zjs
# printer-driver-gutenprint
# printer-driver-hpcups
# printer-driver-min12xxw
# printer-driver-pnm2ppa
# printer-driver-postscript-hp
# printer-driver-ptouch
# printer-driver-pxljr
# printer-driver-sag-gdi
# printer-driver-splix
install_package() {
PACKAGE_NAME=$1
echo "====================== Installing $PACKAGE_NAME ======================"
apt-get install -y $PACKAGE_NAME
echo "=================== Done Installing $PACKAGE_NAME ===================="
}
if [ "$EUID" -ne 0 ]; then
echo "Need root permission to run, run as \"sudo $0\""
exit
fi
{
#echo "============================= Adding keys ============================"
#curl -fsSL http://apt.pop-os.org/proprietary/dists/bionic/Release.gpg | apt-key add -
echo "========================= Adding repositories ========================"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse"
#add-apt-repository "deb http://apt.pop-os.org/proprietary bionic main"
add-apt-repository ppa:system76/pop
echo "======================= Done Adding repositories ======================"
#apt-get update
for p in "${MY_PACKAGES[@]}"
do
install_package "$p"
done
# chrome
echo "========================= Installing Google Chrome ========================"
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
apt-get update
install_package google-chrome-stable
echo "====================== Done Installing Google Chrome ======================"
# i3
echo "============================== Installing i3 =============================="
/usr/lib/apt/apt-helper download-file http://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2018.01.30_all.deb keyring.deb SHA256:baa43dbbd7232ea2b5444cae238d53bebb9d34601cc000e82f11111b1889078a
dpkg -i ./keyring.deb
sh -c 'echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list'
apt update
install_package i3
install_package i3lock
install_package i3blocks
install_package i3status
echo "============================ Done Installing i3 ==========================="
# vs code
echo "============================ Installing vscode ============================"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
apt-get update
install_package code
echo "========================== Done Installing vscode ========================="
# python and pip
#"python3-minimal python3-pip
#pip install psutil netifaces requests power dbus i3ipc sensors
echo "========================== Installing pulsemixer =========================="
pip install git+https://github.com/GeorgeFilipkin/pulsemixer.git
echo "======================= Done Installing pulsemixer ========================"
# docker ce
echo "============================ Installing docker ============================"
groupadd docker
usermod -aG docker $USER
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
install_package docker-ce
echo "========================== Done Installing docker ========================="
# docker-compose
echo "======================== Installing docker-compose ========================"
curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo "====================== Done Installing docker-compose ====================="
# themes
echo "============================ Installing themes ============================"
mkdir -p ~/work/personal
cd ~/work/personal/
git clone https://github.com/tliron/install-gnome-themes
cd install-gnome-themes
./install-gnome-themes
echo "========================== Done Installing themes ========================="
# dropbox
echo "Next steps"
echo "1) install dropbox from its website."
#sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E
#sudo sh -c 'echo "deb http://linux.dropbox.com/ubuntu $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) main " >> /etc/apt/sources.list.d/dropbox.list'
echo "2) Install wicd and wicd clients:"
echo "sudo apt install -y wicd wicd-curses"
echo "3) Install ohmyzsh:"
echo "sh -c \"\$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\""
echo "4) Still todo: dotfiles and scripts"
} >> $LOGFILE 2>&1