Page 1 of 1

MX Snapshot - 2 features requests

Posted: Tue Aug 23, 2022 11:03 am
by ~FLOW~
Hello my excelent friends,
it would be very usefull for MX Snapshot to have a shutdown option when finished.
And all the output log to be written into a text file in the same place where the snapshot was made.

Re: MX Snapshot - 2 features request

Posted: Tue Aug 23, 2022 11:11 am
by Adrian
I don't think I would use that, but seems like an easy enough to implement feature.

Re: MX Snapshot - 2 features request

Posted: Tue Aug 23, 2022 1:00 pm
by ~FLOW~
for me it makes perfect sense because the iso takes about 2:50 hours...it's on external HDD.
So I don't touch the keyboard in this time, when I come back I want to be sure that everything went well.

Re: MX Snapshot - 2 features request

Posted: Tue Aug 23, 2022 7:24 pm
by Adrian
Do you want to give it a try?
https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

There's two ways to trigger the shutdown when done: there's a checkbox in GUI before you start taking the snapshot, or you could use a --shutdown option in the CLI.

Re: MX Snapshot - 2 features request

Posted: Wed Aug 24, 2022 1:50 am
by ~FLOW~
PERFECT !!
it works, I can read the log afterwards.
Thank you so so much !! :number1:
I think in the future would be even "more" perfect if maybe I, as a user, I could edit the shutdown line, from the GUI.
Thank you for all your work !!

Re: MX Snapshot - 2 features request

Posted: Wed Aug 24, 2022 11:28 am
by Adrian
You are welcome!

What do you mean by this? I'm not sure I understand, how do you want to edit the line?
~FLOW~ wrote: Wed Aug 24, 2022 1:50 am I think in the future would be even "more" perfect if maybe I, as a user, I could edit the shutdown line, from the GUI.

Re: MX Snapshot - 2 features request

Posted: Wed Aug 24, 2022 11:44 am
by ~FLOW~
Instead of a check box, to have a text box, default to be --shutdown
Screenshot_20220824_183704.png
So maybe I want to edit that line with something like :

Code: Select all

--kill firefox &&  shutdown
But now if I don't want to shutdown, I have to delete everything from that text box.
So it would complicate things without a good reason 9_9

It's perfect the way it is in this version - 22.8.02
:toast:

Re: MX Snapshot - 2 features request

Posted: Wed Sep 07, 2022 7:11 am
by ~FLOW~
Hello again,
I found a bug ...
I selected Steam and Virtualbox to be excluded,
Screenshot_20220907_140055.png
yet in the iso I found them both.
I now I have a 82Gb iso instead of ~16Gb.

Code: Select all

~/.local/share/Steam/steamapps/
and

Code: Select all

~/VirtualBox/
Yes, I changed the name for the Virtualbox default folder...
So there should be an option to change the paths for some ?
Otherwise part of the selection is useless.

Re: [SOLVED] MX Snapshot - 2 features request [SOLVED]

Posted: Wed Sep 07, 2022 7:27 am
by Eadwine Rose
If it is not solved, kindly remove all three solveds from the title in the first post ;)

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 9:21 am
by Adrian
Yes, I changed the name for the Virtualbox default folder...
For this kind of situation you need to edit the exclusion list.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 9:43 am
by ~FLOW~
Adrian wrote: Wed Sep 07, 2022 9:21 am
Yes, I changed the name for the Virtualbox default folder...
For this kind of situation you need to edit the exclusion list.
I understand that, but for Steam, it doesn't work out of the box. I didn't rename or change location for anything and it's still included.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 9:48 am
by Huckleberry Finn
You checked that and it's still included?

Edit: Yes, I saw your attachment just now.

Re: [SOLVED] MX Snapshot - 2 features request [SOLVED]

Posted: Wed Sep 07, 2022 10:14 am
by Adrian
Eadwine Rose wrote: Wed Sep 07, 2022 7:27 am If it is not solved, kindly remove all three solveds from the title in the first post ;)
It's solved because whatever he requested in the first place was solved. He should have probably opened a new thread with a bug report since this has nothing to do with the feature request.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 10:15 am
by Adrian
~FLOW~ wrote: Wed Sep 07, 2022 9:43 am
Adrian wrote: Wed Sep 07, 2022 9:21 am
Yes, I changed the name for the Virtualbox default folder...
For this kind of situation you need to edit the exclusion list.
I understand that, but for Steam, it doesn't work out of the box. I didn't rename or change location for anything and it's still included.
It's possible Steam change the place of their files, I will doublecheck and update the program.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 10:51 am
by Adrian
Installed Steam and install a game, all the stuff went to ~/.steam there's no ~/.local/share/Steam folder on my system.

Since this is not a general configuration I won't change the snapshot program, you can handle this with the exclusion file, that's the purpose of it to give options to people to exclude what they want, the buttons are just for convenience and as you noticed not always reliable.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 10:53 am
by ~FLOW~
Adrian wrote: Wed Sep 07, 2022 10:51 am Installed Steam and install a game, all the stuff went to ~/.steam there's no ~/.local/share/Steam folder on my system.
With .deb from Steam site or from MX packages ?

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 11:14 am
by Adrian
~FLOW~ wrote: Wed Sep 07, 2022 10:53 am
Adrian wrote: Wed Sep 07, 2022 10:51 am Installed Steam and install a game, all the stuff went to ~/.steam there's no ~/.local/share/Steam folder on my system.
With .deb from Steam site or from MX packages ?
From the installer. Steam is available in Debian non-free repo

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 11:34 am
by ~FLOW~
yes, but there are all shortcuts, installed games will be in
~/.local/share/Steam/steamapps/common/

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 11:42 am
by Adrian
~FLOW~ wrote: Wed Sep 07, 2022 11:34 am yes, but there are all shortcuts, installed games will be in
~/.local/share/Steam/steamapps/common/
Not on the package coming from Debian repo. But I will add the exemption in case people install Steam from their package.

Re: MX Snapshot - 2 features requests

Posted: Wed Sep 07, 2022 11:46 am
by ~FLOW~
Thank you !! :happy:

Re: MX Snapshot - 2 features requests

Posted: Thu Sep 08, 2022 2:25 am
by ~FLOW~
Last info : now the iso is only 8Gb !!
I keep being amazed of how awesome this distro is !!!
Thank you for your work and prompt solutions !!

Re: MX Snapshot - 2 features requests

Posted: Thu Sep 08, 2022 4:34 pm
by Adrian
~FLOW~ wrote: Thu Sep 08, 2022 2:25 am Last info : now the iso is only 8Gb !!
I keep being amazed of how awesome this distro is !!!
Thank you for your work and prompt solutions !!
Please be aware that the 22.9 version has a bug that can create problems when you try to burn the ISO to a flashdrive
https://forum.mxlinux.org/viewtopic.php ... 31#p694931

But is fixed in 22.9.01 that should come shortly from the repo (by tomorrow) or get it from our github repo: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

Re: MX Snapshot - 2 features requests

Posted: Thu Sep 08, 2022 4:43 pm
by ~FLOW~
Adrian wrote: Thu Sep 08, 2022 4:34 pm
~FLOW~ wrote: Thu Sep 08, 2022 2:25 am Last info : now the iso is only 8Gb !!
I keep being amazed of how awesome this distro is !!!
Thank you for your work and prompt solutions !!
Please be aware that the 22.9 version has a bug that can create problems when you try to burn the ISO to a flashdrive
https://forum.mxlinux.org/viewtopic.php ... 31#p694931

But is fixed in 22.9.01 that should come shortly from the repo (by tomorrow) or get it from our github repo: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb
You know, this morning I started to open a new bug about this, but I didn't had enough time to gather all the information and printscreens about this ? But I waited, because 1 in 4 iso writings was ok :))
:toast:
I will make some new tests after the update.

Re: MX Snapshot - 2 features requests

Posted: Tue Oct 25, 2022 10:09 am
by ~FLOW~
Hello,
can you bring back the creation of the info file in the same dir where the snapshot is made ?
It's gone again.
Only the ISO is there.

Re: MX Snapshot - 2 features requests

Posted: Tue Oct 25, 2022 11:25 am
by figueroa
Are you aware that the snapshot log and log.old are found in /var/log/ making additional copies of the log cruft, fluff, and otherwise unnecessary? If you output directory contains the .md5 and .sha512 files, you can be confident that the snapshot was completed without error.

Re: MX Snapshot - 2 features requests

Posted: Tue Oct 25, 2022 12:01 pm
by ~FLOW~
I know.
The previous version did create the log in the same folder. And if you don't opt for the checksum files, the log comes in handy.
Just saying.

Re: MX Snapshot - 2 features requests  [Solved]

Posted: Fri Oct 28, 2022 7:43 am
by ~FLOW~
Thank you !!
Version 22.10 is perfect now :number1:

Re: MX Snapshot - 2 features requests

Posted: Fri Oct 28, 2022 9:16 am
by danielson
Was wondering where all the snapshots went to!

If someone would be so kind as to point me to the exact page for the 22.10 KDE one...

Github is best!

Re: MX Snapshot - 2 features requests

Posted: Fri Oct 28, 2022 9:38 am
by oops
figueroa wrote: Tue Oct 25, 2022 11:25 am Are you aware that the snapshot log and log.old are found in /var/log/ making additional copies of the log cruft, fluff, and otherwise unnecessary? If you output directory contains the .md5 and .sha512 files, you can be confident that the snapshot was completed without error.
... In fact, it will be a good idea too to have the ability to choose .md5 or .sha512 (instead the both in the same time)

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 1:09 am
by Adrian
I have a new build, would you guys be kind to give it a spin?

https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

Changelog:
* Make it possible to select different checksum, not all or nothing
* Provide more info about compression algorithms
* Remove code targetting versions < Stretch
* Add optional customization for name of the project, version, date, codename, boot options

(I was talking to dolphin_oracle to maybe hide the optional customization items under a drop down but I think there are not too many items, at least they fit without problem in the GUI, and it might be good to show users what options are available).

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 2:31 am
by ~FLOW~
Adrian wrote: Sat Oct 29, 2022 1:09 am I have a new build, would you guys be kind to give it a spin?

Changelog:
* Make it possible to select different checksum, not all or nothing
* Provide more info about compression algorithms
I find these 2 options very useful. The log file is gone again :) no longer in the iso folder.

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 7:27 am
by oops
Adrian wrote: Sat Oct 29, 2022 1:09 am I have a new build, would you guys be kind to give it a spin?

https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

Changelog:
* Make it possible to select different checksum, not all or nothing
* Provide more info about compression algorithms
* Remove code targetting versions < Stretch
* Add optional customization for name of the project, version, date, codename, boot options

(I was talking to dolphin_oracle to maybe hide the optional customization items under a drop down but I think there are not too many items, at least they fit without problem in the GUI, and it might be good to show users what options are available).
Thank you Adrian, I will try the new version.

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 7:44 am
by Adrian
I didn't change anything that would affect the log file, it might be a timing issue the shutdown might trigger before the file is written if you use automatic shutdown.
@~FLOW~ I added a "sync" before the shutdown that should help.
Here's the new build: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 9:26 am
by ~FLOW~
Adrian wrote: Sat Oct 29, 2022 7:44 am I didn't change anything that would affect the log file, it might be a timing issue the shutdown might trigger before the file is written if you use automatic shutdown.
@~FLOW~ I added a "sync" before the shutdown that should help.
Here's the new build: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb
Thank you ... but all the tests I did were without the shutdown option...

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 9:33 am
by Adrian
Then there's a misunderstanding, the log is copied only when you use the shutdown option... I don't copy it to the ISO folder otherwise, you should find it in /var/log/mx-snapshot.log since you are still running the system. I won't change that.

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 9:36 am
by ~FLOW~
ooooooohhh OK :)))))
true true ! Fair enough. :number1:
Thnak you.

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 12:19 pm
by oops
... FI: Tested your latest version, and it is perfect here. (tested with .md5 , not .sha512 )

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 1:17 pm
by Adrian
Thanks for testing, I will do one more update to actually update /etc/mx-version and /etc/lsb-release using the entered strings in the first page -- right now it just changes the GRUB menu names without touching those files.

New debs here, should come shortly from the repo:
https://github.com/MX-Linux/mx-snapshot/tree/main/debs

Re: MX Snapshot - 6 features requests

Posted: Sat Oct 29, 2022 4:16 pm
by oops
Adrian wrote: Sat Oct 29, 2022 1:17 pm Thanks for testing, I will do one more update to actually update /etc/mx-version and /etc/lsb-release using the entered strings in the first page -- right now it just changes the GRUB menu names without touching those files.
...
... Good idea too ... now it is at least the topic "Re: MX Snapshot - 6 features requests" ;-)

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 4:21 pm
by ~FLOW~
Adrian wrote: Sat Oct 29, 2022 1:17 pm Thanks for testing, I will do one more update to actually update /etc/mx-version and /etc/lsb-release using the entered strings in the first page -- right now it just changes the GRUB menu names without touching those files.

New debs here, should come shortly from the repo:
https://github.com/MX-Linux/mx-snapshot/tree/main/debs
Thank you for the effort !

Re: MX Snapshot - 2 features requests

Posted: Sat Oct 29, 2022 4:35 pm
by richb
Good additions. Well done.