-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRun.sh
More file actions
58 lines (54 loc) · 1.11 KB
/
Run.sh
File metadata and controls
58 lines (54 loc) · 1.11 KB
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
#!/bin/bash
clear
echo "|____________________________|"
echo "1) Disable tracking"
echo "2) Repair system"
echo "3) Clean system"
echo "4) Update drivers"
echo "5) Check autostart apps (this might not show all)"
echo "6) Show storage"
echo "7) Journalctl logs (this boot)"
echo "8) Quit"
echo "|____________________________|"
read -p "choose option 1-8: " option
case $option in
# disable tracking
1) sudo ubuntu-report disable
sudo apt remove popularity-contest
sudo systemctl disable apport.service
;;
# fix system
2) sudo apt --fix-broken install
sudo dpkg --configure -a
sudo apt install --reinstall ubuntu-desktop
;;
# clean system
3) sudo apt clean
rm -rf ~/.cache/thumbnails/*
rm -rf ~/.local/share/Trash/files/*
;;
# update drivers
4) sudo apt update
ubuntu-drivers autoinstall
clear
echo "reboot might be needed"
;;
# autostart apps
5)
ls ~/.config/autostart/
ls /etc/xdg/autostart/
systemctl --user list-unit-files --state=enabled
# show disks
;;
6)
lsblk
# journalctl
;;
7)
sudo journalctl -p 3 -xb
;;
# quit
8)
exit
;;
esac