- This topic has 5 replies, 4 voices, and was last updated Feb 6-12:39 pm by marcelocripe.
-
AuthorPosts
-
February 5, 2023 at 3:28 pm #98909Member
PPC
This idea is published here in order not to polute the antiX 23 alpha thread: Over there I initially published my idea of using zzzfm as GUI to install off-line .deb packages- because, since gdebi stopped working, antiX does not have a GUI to install off-line packages- and I think that’s such an essential task that it makes no sense that we have to keep telling people to use the terminal for that- most computer users are very basic, only have some tasks they need to do and they do not want to wast time learning to use the terminal- most people are spoleid by the permant GUI that other OS provides them and even following very basic tasks, like typing some words and dragging a file to a window, sometimes are just too much for them. I created a small GUI- deb-installer, that allows users to install/uninstall off-line deb packages- it’s available in the package ft10-transformation.
Now to the how to:
-Open zzzfm
– Right click a .deb package on your system
– On the contextual menu that shows up, right click on any entry that does not have a “>” on the right side (i.e.- does not lead to a submenu)
-Left click “+ New” > “Command”
-On the new window select the item name (i.e. what the contextual menu entry will displau): I suggest Install > left click the “ok” button.
-Now you should be in the “Command” Tab of the “Item proprieties” window.
On the empty rectangle on the lower halt of the window, paste this:export TEXTDOMAIN=zzzfm; var=$(echo "$(gettext "Complete!")") export TEXTDOMAIN=zzzfm; errortext=$(echo "$(gettext "Finished with error")") gksudo "zzz-debinstaller" if sudo true; then check="You are Root or running the script in sudo mode" else exit 1 fi roxterm --hide-menubar --title=zzz-deb-installer --color-scheme=GTK --zoom=0.8 -e /bin/bash -c "sudo apt install %F && zzzfm --dialog --label "${var}" --title zzz-debinstaller --button ok || zzzfm --dialog --label '$errortext' --title zzz-debinstaller --button ok"-Now click the “Context” Tab on the top part of the “Item proprieties” window.
– On the first line of this tab,make sure you get this (this is an aproximation, because my system is in pt, not in English):
Show item if context matches any of this rulesMime type contains application/vnd.debian.binary-package
-To finish: click the first time of this window “Menu item” and make sure you selected this icon:
/usr/share/icons/papirus-antix/48×48/mimetypes/application-vnd.debian.binary-package.png-Click the “ok” button on the lower right
Now you can test this: on zzzfm, right click any .deb file. The contextual menu will display the “Install” option, with the debian icon. Left click it. Enter your password, if asked to and a terminal window will pop up and perform the installation. A window will appear warning you if the process was successful or not.
To do:
The error message is localized, using zzzfm’s own localization files, but the “Completed” message is still work in progress (it’s not localized).Result:
This provides a nice “semi-gui” that allows users to install .deb files, without needing to know how to use the terminal…P.
February 5, 2023 at 3:45 pm #98910MemberPPC
::Change to the “mini script”: Now the message displayed after installing the .deb package is fully localized:
export TEXTDOMAIN=zzzfm; var=$(echo "$(gettext "Done")") export TEXTDOMAIN=zzzfm; errortext=$(echo "$(gettext "Finished with error")") gksudo "zzz-debinstaller" if sudo true; then check="You are Root or running the script in sudo mode" else exit 1 fi roxterm --hide-menubar --title=zzz-deb-installer --color-scheme=GTK --zoom=0.8 -e /bin/bash -c "sudo apt install %F && zzzfm --dialog --label "${var}" --title zzz-debinstaller --button ok || zzzfm --dialog --label '$errortext' --title zzz-debinstaller --button ok"February 5, 2023 at 6:05 pm #98932Forum Admin
anticapitalista
::Thanks.
As you mentioned in the thread about antiX-23-alpha1, I will use the MX deb-installer app
It seems to be light and fast and doesn’t need any policykit crap (after one tiny modification).Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
February 5, 2023 at 6:46 pm #98935MemberPPC
February 5, 2023 at 7:42 pm #98939Moderator
Brian Masinick
February 6, 2023 at 12:39 pm #98991Member
marcelocripe
::PPC, once again you’ve blown away the antiX community with your fantastic solutions.
I want to thank you for all your VOLUNTEER WORK and for this gift you give us with this new method of installing .deb packages by right clicking on the package. In addition to your fantastic “Debinstaller”, we now have “zzz-Deb-Installer”, meaning it’s one better solution than the other.THANK YOU VERY MUCH!About not using your programs in antiX (antiX solutions), I’m speechless…
marcelocripe
(Original text in Brazilian Portuguese language)– – – – –
PPC, mais uma vez vocĂȘ supreende a comunidade antiX com as suas soluçÔes fantĂĄsticas.
Eu quero te agradecer por todo o seu TRABALHO VOLUNTĂRIO e por mais este presente que vocĂȘ nos dĂĄ com este novo mĂ©todo de instalação de pacotes .deb com o clique do botĂŁo direito sobre o pacote. AlĂ©m do seu fantĂĄstico “Debinstaller”, agora temos o “zzz-Deb-Installer”, ou seja, Ă© uma solução melhor que a outra. MUITO OBRIGADO!Sobre a nĂŁo utilização dos seus programas no antiX (soluçÔes para o antiX), eu estou sem palavras…
marcelocripe
(Texto original em idioma PortuguĂȘs do Brasil) -
AuthorPosts
- You must be logged in to reply to this topic.