-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfedora-debloat.sh
executable file
·91 lines (78 loc) · 2.24 KB
/
fedora-debloat.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
#!/bin/bash
# configure dnf
printf "%s" "
fastestmirror=1
max_parallel_downloads=10
countme=false
" | sudo tee -a /etc/dnf/dnf.conf
# debloat
sudo dnf remove -y abrt* \
anaconda* \
libreoffice \
baobab \
bluez-cups \
boost-date-time \
cheese \
fedora-bookmarks \
fedora-chromium-config \
geolite2* \
gnome-calculator \
gnome-characters \
gnome-classic-session \
gnome-calendar \
gnome-clocks \
gnome-online-accounts \
gnome-contacts \
gnome-logs \
gnome-maps \
gnome-remote-desktop \
gnome-system-monitor \
gnome-tour \
gnome-user-docs \
gnome-weather \
yelp \
hyperv* \
kpartx \
mailcap \
mtr \
nano \
simple-scan \
sos \
firefox ## default firefox on Fedora is bs, self install & customise firefox when the script is done!
# run updates
sudo dnf autoremove -y
sudo fwupdmgr get-devices
sudo fwupdmgr refresh --fore
sudo fwupdmgr get-updates -y
sudo fwupdmgr update -y
# setup RPMFusion
sudo dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm
sudo dnf groupupdate core -y
# add RPMs to dnf
## Mullvad-vpn GUI
sudo dnf config-manager --add-repo https://repository.mullvad.net/rpm/stable/mullvad.repo
## veracrypt GUI
wget https://launchpad.net/veracrypt/trunk/1.26.7/+download/veracrypt-1.26.7-CentOS-8-x86_64.rpm
# install apps
sudo dnf install -y mullvad-vpn
sudo dnf install -y veracrypt
sudo dnf install -y keepassxc
wget https://telegram.org/dl/desktop/linux
# make system fully-update
sudo dnf upgrade -y
# use NTS rather than NTP
sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf
# randomize MAC address & disable static hostname
sudo bash -c 'cat > /etc/NetworkManager/conf.d/00-macrandomize.conf' <<-'EOF'
[main]
hostname-mode=none
[device]
wifi.scan-rand-mac-address=yes
[connection]
wifi.cloned-mac-address=random
ethernet.cloned-mac-address=random
EOF
sudo systemctl restart NetworkManager
sudo hostnamectl hostname "localhost"
# finish progresses
echo "The configuration is now completed :)"