Automatic Updates

1. Edit the /etc/rc.local file using editor like Pluma

gksudo pluma /etc/rc.local

… the contents

#!/bin/sh -e
#
# rc.local
#
# By default this script does nothing.
sleep 60
apt-get update && apt-get -y upgrade | tee /home/username/update.txt
sleep 3
chown username /home/username/update.txt
exit 0

PS. replace username using the real username.

2. Make a startup file who shows what happened.

pluma ~/.config/autostart/pluma.desktop

… the contents

[Desktop Entry]
Type=Application
Exec=pluma update.txt
Hidden=false
X-MATE-Autostart-Delay=70
X-MATE-Autostart-enabled=true
Name[fi]=update.txt
Name=update.txt

If there has no ~/.config/autostart folder, make it first

mkdir ~/.config/autostart

Note! This way can install unstable packages also, so better to use official way for upgrading.

PS. If using some another desktop like Cinnamon, replace pluma using gedit and X-MATE using X-GNOME

With Mint 13 Mate delayed autostart Pluma must made a different way.

1. Make a script and make it executable

pluma update.sh

… the contents

#!/bin/sh
sleep 70
pluma ~/update.txt

.. make it executable

chmod +x update.sh

2. Make a startup file

pluma ~/.config/autostart/update.desktop

… the contents

[Desktop Entry]
Type=Application
Exec=/home/username/update.sh
Hidden=false
Name=update.txt

#############################################

See also Search Results for: update