Technical Requirements
For yad and xdialog, you’ll need to use a desktop implementation of Linux. It doesn’t much matter which distro you use, as long as the yad and xdialog packages are in the repository. Just use your distro’s normal package management tool to install them. (The yad and xdialog packages are also available for GhostBSD, which is FreeBSD with either the Mate or Xfce desktop environment. If you’re on a Mac, you’ll need to install yad or xdialog via Homebrew. Alas, neither one is available for OpenIndiana, and yad isn’t available for any of the RHEL 9-type distros.)
For the dialog section, you can use either a desktop or a text-mode server implementation of Linux.
And, as always, you can grab the scripts by running:
git clone https://github.com/PacktPublishing/The-Ultimate-Linux-Shell-Scripting-Guide.git
Okay, let’s begin by looking at yad.