Easiest way hands-down: YAD.
Install with:
And then to make a simple dialog with a button to run speedtest-cli, run this:
Code: Select all
yad --button=gtk-cancel:1 --button="Run a speedtest":'lxterminal -e speedtest-cli' --center
Screenshot:

- 2020-07-01-100713_1280x1024_scrot.png (4.14 KiB) Viewed 134 times
Edit: YAD is similar to Zenity, but much better in every way. You can fine-tune it to a higher degree, like button icons, custom images, and much more complex forms. By far the best YAD tutorial/doc I've found is
this one.
Want to make your own Raspbian image?
- Hard way: Mess with confusing terminal commands.
- Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a
VM,
Flash from the Internet at top speed,
Mount (to drop files in),
Edit partitions,
Shrink/Expand,
Repair, and more. Enjoy!
https://github.com/Botspot/Pi-Power-Tools