Over the years, in DesdeLinux, we have created countless publications (articles) on tutorials and guides to carry out the most appropriate and correct maintenance and update processes of the respective GNU/Linux Distros, especially Debian and Ubuntu, and their derivatives. Also, about how to optimize and customize our appreciated free and open Operating Systems based on GNU/Linux.
And since, tasks like maintenance, updating, optimization and customization These are activities that we usually do frequently, the ideal is to automate as much as possible of them to make everything faster and easier. However, and despite the fact that there are many applications for each of these actions or activities, it is always great to be able to create our own Terminal (CLI) or Desktop (GUI) applications to carry out in a personalized and precise way what we want. Therefore, today we will show you how to make a simple app in the style of "LPI SOA Script".
But, before starting this present post on how to make a simple app in the style of "LPI-SOA Script", then we recommend you explore another previous related post:
LPI SOA Script: A template for creating a Linux app
About the LPI SOA Script
Since, in a previous post, we already discussed in more detail what this interesting script is about or app created by Tic Tac Project Community for purely educational purposes, we will immediately leave the link to it later so that they can remember or know what is it about:
LPI – SOA is a script that works as a Free Software application that emulates a traditional Virtual Technical Assistant. In such a way, to allow any user (Novice, Expert or Technician) to execute various tasks in an automated or guided (manual) way. Thus saving unquantifiable hours/labor on certain tasks, repetitive or not. In addition, being created with Shell Scripting using the Bash Shell, it is ideal for learning and teaching others to do their own development in this native Linux language. LPI – SOA: Advanced Optimization Script made in Bash Shell
CLI code
5 years ago, in a post called How to do a GNU/Linux Maintenance using a Script?, we exposed the CLI code that it had. While, currently said script has and recommends the following code (command commands) of Shell Scripting on Bash Shell for a quick and efficient task of updating and maintenance:
bleachbit --preset --preview; bleachbit --preset --clean
sudo bleachbit --preset --preview; sudo bleachbit --preset --clean
sudo apt update; sudo update-apt-xapian-index; sudo apt upgrade; sudo apt install -f; sudo apt install --fix-broken; sudo apt autoclean; sudo apt autoremove; sudo apt autopurge
sudo dpkg --configure -a;
sudo update-grub; sudo update-grub2; sudo update-menus; sudo update-initramfs -u
sudo df -h
sudo du -hs /* | sort -k 2
history -c
sudo apt list --installed > $HOME/listado-paquetes-instalados-apt-dpkg-milagros.txt
sudo dpkg-query -Wf '${Installed-size}\t${Package}\n' | column -t | sort -k1 > $HOME/listado-paquetes-instalados-peso-milagros.txt
Keep in mind that, to use the first 2 lines, the application must be installed and configured to your liking bleachbit. In this way, with and without the "sudo" command, the CLI script or app will automatically and unassisted, and following the parameters configured in the Bleachbit graphical interface, deep clean both the user's home space and the entire operating system.
Of course in your own script or CLI app you can add or remove what you want, and even replace each command command with the equivalent in your GNU/Linux Distro, other than Debian and Ubuntu, or some of their derivatives. For example, Arch, Fedora or others.
GUI code
The GUI app, that is, the LPI-SOA, is much larger and more complex than a simple script, so obviously we can't paste all the code here. however you can access all source code of it or the .deb file of version 0.3, to test, install, use and modify it to create your own Linux Desktop app, with gif and mp3 multimedia playback, desktop pop-up notifications and beautiful screens designed with Zenity and GXMessage .
Another important fact is that this script or GUI app for technical and educational use, despite being quite stable and functional, it is in full development, which is evident, since it is barely on version 0.3. Which tells us that it has not reached a mature stage of development.
In addition, its version 0.2 was only available for use and experimentation on the Respin MilagrOS in its version 3.1, created by the same Tic Tac Project Community. And just this version 0.3 is the one that can be tested outside of Community Respin itself, but it will come installed in the future version 3.2 of said Community Respin, which we will later address in a future post to learn about its news.
Therefore, we invite you to download it, try it and contribute with its development. Also, to use it for your own benefit.
Finally, so that you know a little more about this interesting Respin Miracles, and the experimental LPI-SOA app and a portion of its code, we leave you with the following screenshots:
Summary
In short, this useful script created by the Tic Tac Project community is an interesting proposal for create our own script or apps, terminal or desktop, that is, in CLI or GUI format, with different objectives. Which, can go perfectly, from performing simple tasks of maintenance, updating, optimization and customization to other more complex configuration actions of system files or third-party applications. Everything will depend on the level of knowledge of each one about Shell Scripting, Zenity, GXMessage, among others.
And if you liked this post, do not stop sharing it with others on your favorite websites, channels, groups or communities of social networks or messaging systems. Lastly, remember visit our home page en «DesdeLinux» to explore more news. And also, join our official channel of Telegram from DesdeLinux, West group for more information on today's topic.