BASH SCRIPTING WITH A GUI

BASH SCRIPTING WITH A GUI

As I have been learning about bash programming I decided to take my Debian update script and add a user interface to it, partly to learn how the Whiptail [1] software works.   It is usually a good idea to have a project in mind.

I have done this with some help from the Debian users list and the Devon & Cornwall GNU Linux user group. The result is here.

Code for this can be found at

https://salsa.debian.org/zleap-guest/updatescript

update.sh is my original script

update2.sh is my updated script to add a text based menu

updatev3 is my latest with a whiptail interface.

I really need to figure out how to detect if a user is root and ask users to run the script AS root., but I was having issues with this.   So that is more work in progress.

Next task is to use the above idea to create a script using the checkbox function which was my original intention,  however it may be more appropriate to for users to run things one at a time to avoid issues that some times crop up during updates.

1. https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail