Aqui está o script que eu criei para a abordagem da força bruta # 1:
#!/bin/bash
filelist1='at-spi-registryd.desktop
bluetooth-applet.desktop
gdu-notification-daemon.desktop
gnome-at-session.desktop
gnome-keyring-daemon.desktop
gnome-screensaver.desktop
gnome-user-share.desktop
gnome-volume-control-applet.desktop
gpk-update-icon.desktop
nm-applet.desktop
polkit-gnome-authentication-agent-1.desktop
pulseaudio.desktop
restorecond.desktop
seahorse-daemon.desktop
spice-vdagent.desktop
user-dirs-update-gtk.desktop
vino-server.desktop'
if [ ! -d /etc/xdg/autostart ]; then
echo "The assumptions of this script are flawed. Aborting"
echo "Directory /etc/xdg/autostart does not exist."
exit
fi
cd /etc/xdg/autostart
mkdir -p save
for f in $filelist1;do
if [ -f $f ]; then
mv $f save;
else
echo "/etc/xdg/autostart/$f not found";
fi
done
if [ ! -f /usr/share/gnome/autostart/libcanberra-login-sound.desktop ]; then
echo "The assumptions of this script are flawed. Aborting"
echo "The file /usr/share/gnome/autostart/libcanberra-login-sound.desktop does not exist."
exit
fi
cd /usr/share/gnome/autostart
mkdir -p save
mv libcanberra-login-sound.desktop save
if [ ! -f /usr/share/gnome/shutdown/libcanberra-logout-sound.sh ]; then
echo "The assumptions of this script are flawed. Aborting"
echo "The file /usr/share/gnome/shutdown/libcanberra-logout-sound.sh does not exist."
exit
fi
cd /usr/share/gnome/shutdown
mkdir -p save
mv libcanberra-logout-sound.sh save