-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebloat-zorin.sh
More file actions
65 lines (46 loc) · 1022 Bytes
/
Debloat-zorin.sh
File metadata and controls
65 lines (46 loc) · 1022 Bytes
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
#!/usr/bin/env bash
#--------------------------------
#setup Script
#uninstall Bloatware Apps
log() {
echo -e "\e[1;32m[INFO]\e[0m $1"
}
warn() {
echo -e "\e[1;33m[WARN]\e[0m $1"
}
error() {
echo -e "\e[1;31m[ERRO]\e[0m $1"
}
required_root() {
if [[ $EUID -ne 0 ]]; then
warn "Você precisa de root!"
exit 1
fi
}
uninstall_packages() {
log "Desinstalando pacotes..."
apt --purge remove -y \
gnome-weather simple-scan brasero gnome-power-manager gnome-maps zorin-connect gnome-music rhythmbox \
gnome-contacts gnome-connections baobab gnome-characters gnome-photos malcontent remmina gnome-camera*
}
update_system() {
apt update && apt upgrade
apt install --fix-missing -y
}
disable_unit_files() {
systemctl disable cups.service
}
System_clean_up() {
apt install -f
apt autoremove --purge -y
apt autoclean && apt clean
}
echo "All good now!!"
echo "please, restart the computer."
main(){
uninstall_packages
update_system
disable_unit_files
System_clean_up
}
main "$@"