The officially official Devuan Forum!

You are not logged in.

#1 2024-12-16 23:57:32

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

α-utilz -- a funky version of refractasnapshot/installer

Gitlab: α-utilz

this is my custom version of the famous refractasnapshot and installer
i have been plaiyng around with this a few years now,
it is still far from perfect, but it works for me

this is basically everything from refractasnapshot / istaller merged into a single sh script

  • with a custom menu system

  • added support for arch / artix / hyperbola and void

  • other new stuff like the iso tester, wich allows you to boot your iso in qemu with usb passthrough

maybe someone finds this usefull
let me know if something is not working, the artix stuff may already broke, i have not tested it for a while now
i think this should work fine on excalibur, but did not test this, let me know if someone tries this smile

screenshot1.png
screenshot2.png
screenshot3.png

Offline

#2 2024-12-17 17:02:49

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

Hi Michael,

I've been playing with alpha-utilz today and although I had to fiddle with it a bit, I was impressed to find I could actually create a Void snapshot from it! I've been hoping for something like this for a while as I'm not clever enough to work out how to do it myself, so well done. Nice work. smile

Moulder.

Offline

#3 2024-12-17 19:41:49

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

im glad to hear that smile
getting void to boot was really complicated, took me two weeks to realize that void expects the squash file to be named differently
i had to learn a bit how to use dracut to create a initramfs with dmsqash, maybe that will become handy when i finally have time to figure out how to setup a persistent boot option for the live iso
people say void cannot do this, and from what i see, not even ventoy does this for void
but i think this may be doable with some more dracut action cool

Offline

#4 2024-12-17 20:09:31

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

My main issue was getting the dependencies installed. It did offer to do that for me, but that didn't work so I had to do it manually.

It made the iso successfully and booted first time, but the installer wasn't going as well as I'd hoped, namely, I wasn't 100% confident my drive wasn't going to get wiped, and I have multiple OS's on it that I don't want to lose. So I borrowed void-installer from another live iso and used that instead. tongue

It needs a bit of tweaking, but it looks like I might have a nice solution to my requirements. I have no idea how you worked all that out, but thanks again.

Thanks also to fsmithred and whoever else is responsible for the Refracta suite of tools.

Moulder.

Offline

#5 2024-12-17 20:31:17

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

nice!
yes, defintely be carefull whit the installer, it would probaly have wiped that
if you wanted to use this installer in a dualboot setup, i would recommend, to not set a boot partition and set the bootloader to none
then let it install and copy the relevant files from /boot to your boot partition by hand

Offline

#6 2024-12-17 21:22:26

golinux
Administrator
Registered: 2016-11-25
Posts: 3,347  

Re: α-utilz -- a funky version of refractasnapshot/installer

@moulder61 . . . You can thank fsmithred for the refracta tools! IIRC, he took over that project from someone on the Debian forum long before systemd was a thing . . .

Offline

#7 2024-12-17 23:15:56

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

@golinux

I don't know who started it all, or who forked what from where, but I've only known about it as refracta via Devuan. So thanks fsr, wherever you are!

@alphalpha

I've been burned before! Not mentioning any names, but fluxu... errrmm.... someone or other wrote a custom install script that trashed my drive even though I backed out before committing to it. Fortunately, testdisk save my backside and I've been more careful since. big_smile

Moulder.

Last edited by moulder61 (2024-12-18 13:28:15)

Offline

#8 2024-12-19 01:31:27

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 217  

Re: α-utilz -- a funky version of refractasnapshot/installer

This looks very interesting, especially if it can work on hyperbola, void, and artix. 

I tried to run the script on my devuan and void machines and I got the same reply from each on the terminal:

Error: function check_chown needs exactly two argumenrs.

Any quick instructions on how to use it?  I did not see anything on the gitlab project site.

As for dependencies, I have refracta-tools installed so its dependencies are installed as well.  Are there any other dependencies required?

This was tried on my devuan unstable (ceres) install.

Offline

#9 2024-12-19 04:04:15

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

Error: function check_chown needs exactly two argumenrs.

well that sounds like it failed somewhere to set a variable
unless this happened before it creates the log, there should be a log file in .config/alpha-utilz/logs
if you could send me that log via email or post it here if it is not terribly long, i will have a look

as for dependencies, it should install them automatically, but moulder already said that it did not work for him on void
although i remember it worked for me on void, maybe try a "xbps-install -Su" before you run the script
the log file should show if there are missing dependencies

Any quick instructions on how to use it?

there is not much to say, just select create a snapshot and hit enter
maybe enable uefi if you need it and thats basically it

Last edited by alphalpha (2024-12-19 04:43:51)

Offline

#10 2024-12-19 13:16:20

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 217  

Re: α-utilz -- a funky version of refractasnapshot/installer

Ok, I have the program loading now.  It did not automatically create the folder /home/snapshot , and this caused the problem.  After manually creating the folder, it works.

The only file that was created in the /.config/alpha-utilz folder was "snapshot.conf".  No log was created.  I guess the failure was before the point of log creation.

I have something to use now.  Thank you.

Offline

#11 2024-12-19 15:30:46

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 217  

Re: α-utilz -- a funky version of refractasnapshot/installer

This is interesting.  My first try using on devuan was not a failure, but it was not a success either.  It had to do with the configuration of the script especially with the excludes_list part of my host system that caused me to bail out of this attempt.  I will try again.

However, I successfully tested the creation of a snapshot on a Void system on a virtual machine, successfully.  As a matter of fact, I am posting this from within the live system running in a virtual machine now.

The first thing that I noticed in the alpha-utilz.sh script is that there is a scrolling and selection error on the screen where options are highlighted and selected.  The scrolling will change the selected option, which is confusing. 

I have come this far, so I may as well try the void-install, soon.  I am mainly interested in using this for other systems.  For Devuan, the default refracta-tools are hard to improve upon, in my opinion.

Thank you for this alphalpha.

Offline

#12 2024-12-19 18:25:37

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

the excludes file should be in .config/apha-utilz/snapshot_exclude.list
you can just use the default excludes list from fsmithred:

cat /usr/lib/refractasnapshot/snapshot_exclude.list > ~/.config/aplha-utilz/snapshot_exclude.list

but if there is something wrong, i really hope we can figure it out

@ the person who had problems with the kernel
when you go to "--> Options", there should be a line "Kernel = /boot/somekernel"
the script failed to detect your kernel, probably you have a custom kernel or something
make sure that line has a valid kernel
if you send me the log, i will try to improve ther kernel detector function

thanks everyone who tested this so far smile

i am really busy right now, i hope i can finish my shed tomorrow and then i'll start moving cool
so please forgive me if i dont push any updates right now
i hopy by the end of the year i have 0.0.1b ready, but i promise nothing
meanwhile we keep collecting bugs

btw, on sunday i will possibly hang out at my channel on libera.chat (i will tell you the name when it is open)
that is, if i have electricity by then, i will probably have to cut the power cord from some old psu and rip out a wall plug somewhere sacrifice a power strip, lovely big_smile

Last edited by alphalpha (2024-12-19 18:31:19)

Offline

#13 2024-12-19 20:47:13

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

@alphalpha

I emailed the person that mentioned the kernel error and he said he was using a converted VM image, apparently. We think that that probably caused the issue?

Moulder.

Offline

#14 2024-12-19 22:24:34

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

im not sure what a converted vm image is, but i think this should work in a vm

Offline

#15 2024-12-19 23:21:56

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

Sorry, I didn't explain what he told me clearly enough.
He said he had a Void VM and your script worked OK but he couldn't boot into the iso it created.
So, he converted his VM (qcow2? or something) into an install "on the metal", which seems not to have worked either.
I'm not sure which was the kernel error?
Anyway, he said he will try again but not in a VM this time.
I hope that makes sense?

Moulder.

Offline

#16 2024-12-20 00:02:30

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 160  

Re: α-utilz -- a funky version of refractasnapshot/installer

now that i think about it, i only ever tested this on legacy bios, never uefi
i know that devuan works with uefi but for the other distros there needs to be some additional commands in the grub line
and i do not remember adding those to the grub config
a dirty workaround could be:
select "--> Advanced" and then "> Copy isolinux"
that will create /home/snapshot/work/iso/isolinux/live.cfg
then make sure whatever is behind APPEND, somehow makes it into the grub.cfg
(modify the grub file inside /home/snapshot/work, then "--> Advanced" and "> Re-run xorriso only.")

Last edited by alphalpha (2024-12-20 00:07:04)

Offline

#17 2024-12-20 00:37:24

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

That's why I never wrote the script. It's way too complicated for me. tongue
But, it did what I needed, so I'm happy. smile
I could be tempted to try to make a gui for it, but it's a bit out of my league really.

Moulder.

Offline

#18 2024-12-20 05:42:16

dyfi
Member
Registered: 2020-01-24
Posts: 7  

Re: α-utilz -- a funky version of refractasnapshot/installer

Retested my ISO in virtual machine, which is set to legacy  and it booted.

Offline

#19 2024-12-20 15:30:10

greenjeans
Member
Registered: 2017-04-07
Posts: 669  
Website

Re: α-utilz -- a funky version of refractasnapshot/installer

I could be tempted to try to make a gui for it, but it's a bit out of my league really.

Yad is your friend. wink The learning curve is very small, once you figure it out it's pretty fun messing with it.

Yad+shellscript and you can make a machine do anything, i'm having a blast with it last few days, mocked up a script+gui last night to adjust xset settings in lieu of using a dedicated screensaver/power manager.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded 12/24!
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#20 2024-12-20 15:57:05

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

@greenjeans

I have dabbled with yad here and there. smile I think refractas gui front end uses yad, possibly?

I paid for a commercial version of basic about 20 years ago and am trying to get my moneysworth out of it!

So, if anything, I'd try to do it in that. If it doesn't work, it doesn't matter. It would just be an experiment to see if I could or not?

Moulder.

Offline

#21 2024-12-20 22:03:16

greenjeans
Member
Registered: 2017-04-07
Posts: 669  
Website

Re: α-utilz -- a funky version of refractasnapshot/installer

Yep, Refracta uses it, that's where I first ran across it and started using it. MUCH smaller than Zenity, yet does everything I need it to so far.

Just noticed your link to MIYO based projects, gonna have to download that and give it a try, I love me some Miyo, all the stuff I do now is originally based on Miyo from back in 2017.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded 12/24!
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#22 2024-12-20 23:34:22

moulder61
Member
Registered: 2024-07-06
Posts: 55  

Re: α-utilz -- a funky version of refractasnapshot/installer

@greenjeans

I took the 2022 MiyoLinux JWM build and updated it to Daedalus then "converted" it to my configs. It's a minimal XFWM setup, very much of the "make it your own" philosophy. Miyo(Dan) himself quite likes it too. wink

I'm currently working on my own version with a lot fewer packages, and possibly using Calamares as an installer. It's slow going as I have a lot of other projects I'm juggling at the moment, none of which are getting finished!

Moulder.

Last edited by moulder61 (2024-12-21 13:38:15)

Offline

#23 2024-12-27 03:27:44

greenjeans
Member
Registered: 2017-04-07
Posts: 669  
Website

Re: α-utilz -- a funky version of refractasnapshot/installer

@moulder61 Nice! Working on a theme project now that includes lots of Miyolinux, he really nailed it at multiple instances with his experimentation, everything I do is based on that philosophy of "make it your own" which to me is the heart and soul of linux in general.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded 12/24!
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

Board footer