Skip to main content
Topic: Utilities shell script (Read 9132 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Utilities shell script

This is a project i've worked on for the past year and a half, it started off as a tool for personal needs, but after adding setup tools, option selectors and a custom menu, the result is a very user friendly utility.
It includes a service manager for our alternative init systems and more!

Any suggestions are welcome, have fun!
https://gitlab.com/Hitman_47/utilities.sh

Re: Utilities shell script

Reply #1
Cant wait to dive in!

But ill have to until my pc comes next week.
Cat Herders of Linux


Re: Utilities shell script

Reply #3
Self refreshing custom menu in terminal mode:



GUI menu in Qarma-qt5



GUI menu in plain gtk3 zenity. In the future i will also add KDialog compatibility


Re: Utilities shell script

Reply #4
Playing with it now.  I had a message about optional dependencies.  Good to know.  Will install some of them also.
TY for making this.
Cat Herders of Linux

Re: Utilities shell script

Reply #5
Code: [Select]
nohup: redirecting stderr to stdout
nohup: failed to run command './Utilities.sh': Permission denied
hp-i7:[catherdersoflinux]:~/Downloads/Utilities/utilities.sh-main$

tried to run it in gui mode.  i had to run it as sh ./Utilities.sh
Cat Herders of Linux

Re: Utilities shell script

Reply #6
Code: [Select]
brisk-menu 1:0.6.2-1
etcher-bin 1.7.9-1
gtk-theme-material-black 1.8.8-1
hypnotix-git 2.6.r3.g8a74209-1
linux-libre 5.17.3-1
linux-libre-headers 5.17.3-1
mintstick-git r225.c7dd0bc-1
python-pyparted 3.11.7-1
themix-export-spotify-git 1.2.5.r4.g4c09ec3-1
themix-full-git 1.14-1
themix-gui-git 1.14.r45.g1ca70eb2-1
themix-icons-archdroid-git 1.0.2.r1.g775b8c2c0-1
themix-icons-gnome-colors-git 5.5.5.r0.gcd8b05a-2
themix-icons-numix-git 21.10.31.r12.g10898a1dd-1
themix-icons-papirus-git 20220302.r44.gbd9c1565cd-1
themix-icons-suru-plus-aspromauros-git 3.0.r0.gd43a8ec4-1
themix-icons-suru-plus-git 30.0.r2.g9bd895f32-1
themix-import-images-git 1.14.r45.g1ca70eb2-1
themix-plugin-base16-git 1.3.1.r4.g85f85c4-1
themix-theme-materia-git 20210322.r50.gaf63425f-1
themix-theme-oomox-git 1.12.2.r3.gaff8b363-1
trousers 0.3.15-2
ttf-opendyslexic 1-3
vboot-utils 100.14526-1
woeusb 5.2.4-1
Press any key to continue..

my aur packages
Cat Herders of Linux

Re: Utilities shell script

Reply #7
Glad you like it, enjoy!
About the gui mode not opening from terminal, did you chmod +x the script? It depends on that. i should add a check to do this automatically, or a workaround to execute with sh like you did.
///
Didn't know about the Themix icon themes, i should give them a try. Here's my aur packages
Code: [Select]
7-zip 21.07-6
audacium 1.0.0-3
czkawka-gui 4.1.0-1
dooble 2022.04.04-1
gajim-plugin-omemo 2.7.15-1
gputest 0.7.0-1
icewm-extra-themes 1.2-5
it87-dkms-git 161.77abcbe-1
mprime 307b9-2
mystiq 20.03.23-1
ncurses5-compat-libs 6.3-1
nodejs-localtunnel 2.0.2-1
nspr-hg 4.26-1
nss-hg 3.73.0r16027.4b8ce9641338-1
ocenaudio-bin 3.11.11-1
olive-git continuous.r1621.g41a49c488-1
p7zip-gui 16.02-5
paru 1.10.0-1
qarma-git 85.6ee1a72-1
qdirstat 1.8-1
qjoypad 4.3.1-1
rpcs3-bin 0.0.22-3
uasm 2.55-1
unixbench 5.1.3-4
xnconvert 1.95.0-1
xnviewmp 1.00-1
zenmonitor 1.4.2-2
zenpower-dkms 0.1.12-2

Re: Utilities shell script

Reply #8
i didnt see an instruction for chmod.  is it chmod a+x something something?
Cat Herders of Linux

Re: Utilities shell script

Reply #9
Yeah. In gui file managers you just mark as executable, like with anything else
It makes me think of people packing elf binaries or scripts in .tar.xyz archives just to have the attributes already set, hehe

V5 coming soon with a disk space analyzer tool, i'll add a check to do chmod +x automatically.



Re: Utilities shell script

Reply #12
grep: /etc/sudoers.d/utilities: No such file or directory


what is lsattr?
Cat Herders of Linux

Re: Utilities shell script

Reply #13
grep: /etc/sudoers.d/utilities: No such file or directory
yeah i forgot the file check, it's for the sudoers password bypass rule, it asks you in the gui, and it creates that file. The error is just cosmetic, i will patch it today.

also for the sudoers rule to check the immutable attribute, it's more "secure" (an overused word, i know)