@@ -4,12 +4,13 @@ This is a small script I wrote to upgrade Kubuntu.
You can doubleclick it, it will show a pop-up that it's checking for updates and will ask for your sudo password.
If no updates are found you'll get a notification that the system is up-to-date.
If there are updates, it will show a pop-up to ask for your password and then upgrade and autoremove.
If there are updates, it will upgrade and autoremove.
The pop-up is what is used by the system by default, if no default is set, the script will create a utility in `$HOME/.local/bin` called `my-password-dialog`.
You can also use it with cron in which case you'll need to let it run by root. At this time using cron will NOT show pop-ups (but I would like it to be able to, so if you can make it happen, plz let me know how you do it).
Note that if you use `/etc/cron.hourly`, the filename can't contain a dot. See <https://askubuntu.com/questions/8426/cron-hourly-wont-run/39732#39732>
## How to use (manually)
## How to use
first clone the project, make `my-password-dialog` executable. Optionally you can make a link to the desktop so you can run it from there from time to time.
...
...
@@ -18,9 +19,16 @@ Concrete:
1. Open a terminal in the folder you want to keep this project (or open a terminal and navigate to the correct location) and run `git clone https://git.domainepublic.net/ilja/simple-kubuntu-upgrade-script/`
2. Open the folder `simple-kubuntu-upgrade-script`
3. Right-click `update-system.sh` > Properties > Permissions > Set "Is executable" > OK
4. Optionally you can drag the file `simple-kubuntu-upgrade-script` to the desktop and make it a link there. (You can also move or copy, but than you'll need to do this for every upgrade)
5. To run, simply double-click `update-system.sh`
### Manualy
1. Optionally you can drag the file `simple-kubuntu-upgrade-script` to the desktop and make it a link there. (You can also move or copy, but than you'll need to do this for every upgrade)
2. To run, simply double-click `update-system.sh`
### Cron
1. Make a link from any of the `/etc/cron.*` directories and check if it can run. E.g. if you add it to `/etc/cron.hourly`, you use `run-parts --test /etc/cron.hourly`. The output will show all script that will run hourly. See <https://askubuntu.com/questions/8426/cron-hourly-wont-run/39732#39732>
## Settings
If you open the file, you'll see General SETTINGS at the top of the file. One important setting is EXCLUDE_IF_RUNNING. This is a space separated list of packages that shouldn't be upgraded if they are running. By default firefox is listed because firefox always requires a restart after upgrading and that's annoying. If Firefox isn't running when the script runs, it will be updated.
If you open the file, you'll see General SETTINGS at the top of the file. One important setting is EXCLUDE_IF_RUNNING. This is a space separated list of packages that shouldn't be upgraded if they are running.