-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomata.sh
executable file
·265 lines (233 loc) · 7.78 KB
/
automata.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
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
#!/bin/bash
# Set the colours you can use
black='\033[1;30m'
white='\033[1;37m'
red='\033[1;31m'
green='\033[1;32m'
yellow='\033[1;33m'
blue='\033[1;34m'
magenta='\033[1;35m'
cyan='\033[1;36m'
pink='\e[1;31m'
endcolor='\e[0m'
echo ""
echo -e $cyan"##############################################"
echo -e $pink"# STARTING SYSTEM CONFIG SCRIPT #"
echo -e $cyan"##############################################"
echo ""
echo -e $cyan"$(whoami), Are you ready $yellow?$endcolor"
select yn in "Yes" "No"; do
case $yn in
Yes ) break;;
No ) echo -e $cyan "\nGood bye my friend ;( \n" $endcolor; exit 1;;
*) echo -e $red "Answer must be$blue 1 or$blue 2 " $endcolor
esac
done
echo ""
echo -e $cyan"##############################################"
echo -e $pink"# UPDATING YOUR SYSTEM #"
echo -e $cyan"##############################################"
echo ""
echo -e "$pink"
sudo apt update -y && echo "" && \
sudo apt dist-upgrade -y && echo "" && \
sudo apt upgrade -y && echo "" && \
sudo apt autoremove -y && echo "" && \
sudo apt autoclean -y && echo "" && \
echo ""
echo ""
echo -e $cyan"##############################################"
echo -e $pink"# STARTING APPLICATIONS INSTALLER #"
echo -e $cyan"##############################################"
echo ""
echo -e $cyan"Checking non-free sources... \n"
#list of allow non-free sources
list=(
software-properties-common
software-properties-gtk
ubuntu-restricted-extras
python-software-properties
)
for app in ${!list[*]}
do
echo -e $pink""
if test ! $(which ${list[$app]}); then
echo -e "Installing ${list[$app]} \n"
sudo apt install -y ${list[$app]}
fi
done
echo -e ""
echo -e $cyan"Installing archive formats \n"
#list of archive formats
formats=(
unace
rar
unrar
p7zip-rar
p7zip
sharutils
mpack
arj
cabextract
lzip
lunzip
)
for app in ${!formats[*]}
do
echo -e $pink""
echo -e "Installing ${formats[$app]} \n"
sudo apt install -y ${formats[$app]}
done
echo -e ""
echo -e $cyan"Installing general apps \n"
echo -e "$pink"
if test ! $(which amd64-microcode); then
#Processor drivers: amd64-microcode, intel-microcode #replace that u need
echo -e "Installing processor drivers... \n"
sudo apt install -y amd64-microcode
echo -e ""
fi
if test ! $(which libreoffice); then
#libreoffice
echo -e "Installing libreoffice app... \n"
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt update
sudo apt install -y libreoffice libreoffice-templates libreoffice-style-elementary libreoffice-l10n-es myspell-es hyphen-es
sudo apt install -y ttf-mscorefonts-installer #ms fonts
echo -e ""
fi
if test ! $(which gdebi); then
#gdebi .deb installer
echo -e "Installing gdebi app... \n"
sudo apt install -y gdebi
echo -e ""
fi
if test ! $(which vlc); then
#vlc Media Player
echo -e "Installing vlc app... \n"
sudo apt install -y vlc
echo -e ""
fi
if test ! $(which elementary-tweaks); then
#tweaks for customize eOS
echo -e "Installing Elementary-tweaks \n"
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt-get update
sudo apt-get install elementary-tweaks
echo -e ""
fi
if test ! $(which spotify-client); then
#Spotify linux client
echo -e "Installing Spotify Client for Linux"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt update
sudo apt install -y spotify-client
echo -e ""
fi
#device compatibility
echo -e "Installing Compatibility with Android $ IPhone"
sudo apt install -y mtp-tools ipheth-utils ideviceinstaller ifuse
#steam
echo -e "Installing Steam Client"
sudo add-apt-repository multiverse
sudo apt update
sudo apt install -y steam
echo -e $cyan"Installing developer apps \n"
#open source chrome browser
echo -e "Installing chromium-browser \n"
sudo apt install -y chromium-browser
#mozilla firefox
echo -e "Installing firefox-browser \n"
sudo apt install -y firefox
#google chrome 64Bits
echo -e "Installing google-chrome-browser \n"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo gdebi google-chrome-stable_current_amd64.deb
#deleting .deb after installed
sudo rm -r google-chrome-stable_current_amd64.deb
#git
echo -e "Installing Git \n"
sudo apt install -y git-core
#NodeJS
echo -e "Installing NodeJS & NPM \n"
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y nodejs
#Heroku CLI - replace x64 to x86 if necessary
echo -e "Installing Heroku CLI \n"
wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz
tar -xvzf heroku.tar.gz
mkdir -p /usr/local/lib /usr/local/bin
mv heroku-cli-v6.14.20-darwin-64 /usr/local/lib/heroku
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
#VS Code
echo -e "Installing VS Code Text-Editor \n"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install -y code
#Atom
#echo -e "Installing Atom Text-Editor \n"
#sudo add-apt-repository ppa:webupd8team/atom
#sudo apt update
#sudo apt install -y atom
# install add-ins with apm - Feel free to edit this packages
#apm install file-icons
#apm install atom-beautify
#apm install indent-guide-improved
#apm install git-plus
#apm install highlight-selected minimap minimap-highlight-selected minimap-find-and-replace
#apm install pigments
#Sublime Text 3
#echo -e "Installing Sublime Text-Editor 3 \n"
#wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
#sudo apt install -y apt-transport-https
#echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
#sudo apt update
#sudo apt install -y sublime-text
#dconf-editor
echo -e "Installing dconf-editor \n"
sudo apt install -y dconf-editor
#Oh my zsh terminal - Source: http://choyan.me/oh-my-zsh-elementaryos/
echo -e "Installing Oh My Zsh \n"
sudo apt-get update && sudo apt-get install -y zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
sudo chsh -s $(which zsh) $(whoami)
#JAVA
echo -e "Installing JAVA \n"
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt update
sudo apt install -y oracle-java9-installer
echo ""
echo -e $cyan"##############################################"
echo -e $pink"# ADDING THEMES & ICONS REPOSITORIES #"
echo -e $cyan"##############################################"
echo ""
echo -e "Adding ppa's repositories \n"
sudo add-apt-repository ppa:yunnxx/elementary #Loki FlatBlackPurple Theme
sudo add-apt-repository ppa:papirus/papirus #Papirus Icon
sudo add-apt-repository ppa:snwh/pulp #PaperMonoDark Icon
sudo add-apt-repository ppa:moka/daily #icon
sudo add-apt-repository ppa:oranchelo/oranchelo-icon-theme #icon
sudo apt update
echo -e "Installing custom themes \n"
sudo apt install -y elementary-lokiflatblackpurple-theme
sudo apt install -y papirus-icon-theme
sudo apt install -y paper-icon-theme #icon theme
sudo apt install -y paper-cursor-theme #cursor theme
sudo apt install -y paper-gtk-theme #gtk theme
sudo apt install -y moka-icon-theme #icon
sudo apt install -y faba-icon-theme faba-mono-icons #icon
sudo apt install -y oranchelo-icon-theme #icon
# remove elementary softwares
echo -e $yellow"Cleaning eOS \n"
sudo apt purge epiphany-browser epiphany-browser-data
sudo apt purge midori-granite
sudo apt purge noise
sudo apt purge bluez
sudo apt purge modemmanager
sudo apt purge geary
sudo apt autoremove
sudo apt autoclean
#Fin