#!/bin/bash

sudo clear
echo "UPDATE SCAN CLEAN"
echo 'UPDATING/UPGRADING SYSTEM...'
sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo apt update
sudo snap refresh
sudo flatpak update
echo 'DONE UPDATING/UPGRADING.'
#read -n1; echo
echo 'INSTALLING/UPDATING SCANNERS/CLEANERS...'
sudo apt install -y clamav chkrootkit rkhunter bleachbit
sudo systemctl stop clamav-freshclam.service
sudo freshclam
sudo systemctl start clamav-freshclam.service
echo 'SCANNING...'
sudo clamscan --bell -r -v -a -o -z
sudo chkrootkit
sudo rkhunter -c -x --sk
echo 'DONE SCANNING.'
#read -n1
clear
echo 'CLEANING...'
bleachbit --clean system.tmp system.cache system.trash deepscan.tmp deepscan.thumbs_db deepscan.ds_store
sudo bleachbit --clean system.tmp system.cache system.trash deepscan.tmp deepscan.thumbs_db deepscan.ds_store
echo 'DONE CLEANING.'
echo 'UPDATED SCANNED CLEANED.'
read -n1
