
The Update Notifier will check for updates approximately 2-3 minutes after computer startup. Thereafter, it will check every 6 hours. If updates are available, it will show a desktop notification and an icon in the system tray. Clicking the icon in the system tray will open an authentication window to enter your password. After entering your password, xterm will open to perform the updates. 

You will be asked if you want to proceed. If you do, click Enter or y on your keyboard. After the upgrade has finished, xterm will automatically close.

If you don't want to perform the upgrade, click n on your keyboard, and xterm will close.

See information after the instructions if you want to change some things in the scripts.
_________________________________

Dependencies:

bash 

yad 

policykit-1-gnome (or another polkit)

xfce4-notifyd (or dunst, notification-daemon, etc. Many desktop environments have their own desktop notifications)

xterm (unless you want to change the terminal that is used)
_________________________________

Installation Instructions: 

PERFORM STEPS 1-4 AS ROOT!!!

1. Move the five .sh scripts into /usr/local/bin/

Make sure their permissions are set to allow anyone to run them. They should already be set, but it never hurts to make sure. ;)


2. Move the updates.svg icon into /usr/share/pixmaps/ 


3. Move the 2 cron files (updates-sync-cron and updates-sync2-cron) into /etc/cron.d/

IF YOU UNZIPPED THE FILE AS A REGULAR USER, MAKE SURE TO CHANGE THE OWNER AND GROUP (OF THOSE TWO CRON FILES) FROM "your-name" TO "root"


4. Move the two Desktop files into /etc/xdg/autostart/

If your window manager doesn't recognize items in /etc/xdg/autostart/, add the following lines to your autostart file...

/usr/local/bin/notifier-first-run.sh 

/usr/local/bin/notifier-six-hours.sh


5. Reboot
_________________________________

If you don't want the desktop notification pop-up window...

As root, open the "update-notifer2.sh" script with a text editor, enable line numbers, and comment out lines 7 and 9. Then save and close the file.

Hovering your mouse over the system tray icon will give you the same information as the desktop notification does.
_________________________________

If you want to use a terminal other than xterm...

As root, open the "upgrade.sh" script with a text editor, and replace...

xterm -fa mono -fs 12 

...with your terminal of choice.

Save and close the file.

