Page 1 of 1

MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 1:57 am
by deanr72
Yesterday I decided I'd better get my back-up PC in order just in case - it is my back-up, after all!

So, I downloaded the mx-plasma iso and created a live boot USB - but then I remembered the mx-snapshot tool and thought to myself: "Hang on, why not give that a go?"

It took approx. 8 mins to create the iso from my daily driver and then about 5 mins to create the bootable USB (approx. 10 GB in size) but everything was going surprisingly smoothly nonetheless. And then it even booted trouble-free into an exact clone of my workhorse. Sweet!

I had to hunt around a little online to find out that I needed to type 'minstall' into terminal to get the installer to start up but, beyond that, what an absolute marvel!

So, I just wanted to say - thanks again all for a wonderful MX-KDE and the wonderful MX-tools. It's a delight and a wonder! :number1:

Re: MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 4:21 am
by linexer2016
deanr72 wrote: Tue Jan 19, 2021 1:57 am Yesterday I decided I'd better get my back-up PC in order just in case - it is my back-up, after all!

So, I downloaded the mx-plasma iso and created a live boot USB - but then I remembered the mx-snapshot tool and thought to myself: "Hang on, why not give that a go?"

It took approx. 8 mins to create the iso from my daily driver and then about 5 mins to create the bootable USB (approx. 10 GB in size) but everything was going surprisingly smoothly nonetheless. And then it even booted trouble-free into an exact clone of my workhorse. Sweet!

I had to hunt around a little online to find out that I needed to type 'minstall' into terminal to get the installer to start up but, beyond that, what an absolute marvel!

So, I just wanted to say - thanks again all for a wonderful MX-KDE and the wonderful MX-tools. It's a delight and a wonder! :number1:
That's great that it works well for you deanr72. I am a bit bemused by your statement that you had to hunt around for minstall. Do you mean to first use MX Snapshot or something else because if the former, I am not aware that you should need to do other than run the snapshot/liveusb routines from MX Tools.

Re: MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 4:27 am
by asqwerth
WHen you create a snapshot of your existing system and run it live, often the "install" icon doesn't show up on the desktop. In such event, you start the installer by using the terminal command.

Re: MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 7:57 am
by linexer2016
asqwerth wrote: Tue Jan 19, 2021 4:27 am WHen you create a snapshot of your existing system and run it live, often the "install" icon doesn't show up on the desktop. In such event, you start the installer by using the terminal command.
I mainly use the snapshot/liveusb methodologies as a fallback backup. That's to say, if disaster struck with my primary system, I'd have something there to restore things easily. This along with Timeshift gives me the comfort of a safety net. The appearance of non-appearance of the install icon does not concern me in these circumstances.

Re: MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 2:41 pm
by m_pav
I think the install icon only shows up with a snapshot if remaster-general is used. Remaster-personal is reading the desktop settings integrated from the active user as at the time the snapshot was taken so it's very unlikely they'd have an install icon on their desktop.

Re: MX-Snapshot = Awesome Tool

Posted: Tue Jan 19, 2021 4:51 pm
by Adrian
m_pav wrote: Tue Jan 19, 2021 2:41 pm I think the install icon only shows up with a snapshot if remaster-general is used. Remaster-personal is reading the desktop settings integrated from the active user as at the time the snapshot was taken so it's very unlikely they'd have an install icon on their desktop.
I add the .desktop file on all the users found on system, so it would be weird to be missing, but I did forget to add it in /etc/skel/Desktop for new users so that is probably what is missing in general snapshot if the general snapshot is not taken from a live environment that does have that /etc/skel/Desktop/Installer.desktop file. I fixed that in the new release, so this issue should disappear.

BTW, the new release is almost ready, it needs some testing, it has a nice feature: being able to run it completely from CLI (think headless server, or computer where the Desktop is not working for some reason)
64bit last build if any wants to try: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

For how to use CLI type -h or --help for info. Some are not obvious options, ask me for clarifications (for example I use -m for creating monthly snapshot, you can ignore that option for now)

Re: MX-Snapshot = Awesome Tool

Posted: Sat Oct 16, 2021 12:28 am
by Peter Kuykendall
Adrian wrote: Tue Jan 19, 2021 4:51 pm BTW, the new release is almost ready, it needs some testing, it has a nice feature: being able to run it completely from CLI (think headless server, or computer where the Desktop is not working for some reason)
64bit last build if any wants to try: https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

For how to use CLI type -h or --help for info. Some are not obvious options, ask me for clarifications (for example I use -m for creating monthly snapshot, you can ignore that option for now)
That sounds great. My use case is we manually build a "golden image", then use Clonezilla to duplicate the disk contents to a fresh machine (via PXE boot). In the cases where the fresh machine has a different chipset, we need to have a CLI tool to restore the snapshot, during which it discovers the fresh machine's hardware and installs the appropriate drivers.

At (CLI) boot we are running MX, just not X, presumably due to the different video chipset. Can I use minstall from the CLI to restore the snapshot? If so, how do I invoke it? I tried running 19.3 64 bit minstall from the command line but got "Could not connect to any X display", which is to be expected if it's trying to run in X. The link quoted is 404. Any advice is appreciated!

Thanks!

Re: MX-Snapshot = Awesome Tool

Posted: Sat Oct 16, 2021 1:34 am
by Adrian
That by now is an old build, just use the one from the repo.
Minstall doesn't work in CLI, I think there's an antix cli installer but I've never used it, it's probably better to fix the display issue, probably not too hard. You might need to edit or remove /etc/X11/Xorg.conf

Re: MX-Snapshot = Awesome Tool

Posted: Tue Oct 19, 2021 8:14 pm
by Peter Kuykendall
UPDATE: Issue was solved by adding the boot parameter "from=all". I'm keeping this post here in hopes it may help somebody else with the same problem.

Thanks Adrian. I'm now taking a different approach, storing the snapshot on the hard drive (it's under 3 GB), and making a GRUB menu entry to launch it when I want to do a restore. This should allow us to distribute laptops without USB sticks, as they are a hassle for us to manage, especially across many users in many places. It has a lot of promise, but gets stuck after it boots from the /antiX/vmlinuz and /antiX/initrd files. It can't find /antiX/linuxfs because it's not looking for it on the hard drive. I can't figure out how to point it there. Any ideas?

I can put the snapshot files on a separate partition (e.g. sda2), so when it is restored (e.g. to sda1) it doesn't clobber itself .

In order to extract the files I mounted the snapshot ISO and copied the contents of the antiX folder to /antiX. linuxfs is in there. I'm hoping there's some boot or kernel directive I can append to a line in GRUB that points it to /antiX/linuxfs (e.g. to search all block devices, or at least /dev/sda1). It's currently restricting its search to USB and CD devices only. Any ideas?

Contents of /etc/grub.d/40_custom

Code: Select all

menuentry "MX Linux reinstall" {

linux /antiX/vmlinuz
initrd /antiX/initrd.gz
}

Here's the output, manually copied from my test VM's screen (ugh)

Code: Select all

Current boot codes:
  BOOT_IMAGE=/antiX/vmlinux
Loading hardware specific modules . . .
Scan usb,cd devices.  Look for boot file(s) antiX/linuxfs
Filtered devices  /dev/sr0
Retry for 15 seconds . . . . . 

Fatal Error
Could not find file antiX/linuxfs
  Searched devices: /dev/sr0
    Searched types : usb,cd
 All block devices: /dev/sr0 /dev/sda2 /dev/sda1 /dev/sda

Please contact BitJam at https://mxlinux.org
Screenshot: https://photos.app.goo.gl/gzN57RrvVth1Yd4AA
I looked up BitJam's posts and it says he hasn't been active for a few months.

Thanks!

Re: MX-Snapshot = Awesome Tool

Posted: Tue Oct 19, 2021 9:40 pm
by Michael-IDA
Hi @Adrian,

Sorry to bug you with a newbie question, but I don’t exactly know where to start, so I’m looking for a pointer on where to start reading from.

I’d like to create an .iso like the MX one, that someone could create a Live USB from that contains these things:

- MX w/ Xfce
- Trinity Desktop Environment (TDE)
- the "install" icon

I’d be building this in an Oracle VM (not sure if that’s important). I’ve built a tde.pm (for MXPI) before, which worked fairly well for the TDE group, but several people on their list have indicated interest in being able to just ‘click’ install (which is really convenient) and have MX with both the Xfce and TDE desktops installed.

Snapshot? Live USB Maker? Remaster {the MX Live USB?}?

tl;dr: Where should a newbie start reading on how to create a distributable Live USB based on MX?

Thanks,
Michael

Ref:
MX Linux Trinity Repository Installation Instructions

Re: MX-Snapshot = Awesome Tool

Posted: Tue Oct 19, 2021 10:56 pm
by figueroa
@Michael-IDA
Don't read, just do it. Generate a snapshot, then make a Live-USB from the iso file. I've done this regularly, just not with TDE. But, if TDE works in the VM, it will work in the Live-USB.

Re: MX-Snapshot = Awesome Tool

Posted: Wed Oct 20, 2021 3:40 am
by Stevo
Yes, it can be done in Virtual Box (Oracle VM). Just install MX in it, add the Trinity repos, install and configure TDE. You will need to copy the TDE settings files and folders from your home folder to /etc/skel if you want your users to get a customized TDE instead of a generic one. It's wise to search those files to make sure there's no personal information in them.

Then use MX Snapshot to make a redistributable ISO instead of a personal backup one.

Re: MX-Snapshot = Awesome Tool

Posted: Wed Oct 20, 2021 9:28 am
by Michael-IDA
Stevo wrote: Wed Oct 20, 2021 3:40 am Yes, it can be done in Virtual Box (Oracle VM). Just install MX in it, add the Trinity repos, install and configure TDE. You will need to copy the TDE settings files and folders from your home folder to /etc/skel if you want your users to get a customized TDE instead of a generic one. It's wise to search those files to make sure there's no personal information in them.

Then use MX Snapshot to make a redistributable ISO instead of a personal backup one.
Thanks @Stevo,

Figuring out how to keep my personal info out of it was my biggest "don't know where to start."

Also, am I correct in extrapolating, based upon your reply, that there really isn't some published doc/wiki on how to do this? If not, let me know and I'll do a write up when I do it for MX-21.

Thanks again,
Michael

Re: MX-Snapshot = Awesome Tool

Posted: Wed Oct 20, 2021 12:50 pm
by Stevo
If you're making an ISO from a fresh install in VBox, now that I think about it, there really shouldn't be any personal information of yours in it. I'd be more concerned about getting the customized TDE for every user, if that's a goal.

Re: MX-Snapshot = Awesome Tool

Posted: Wed Oct 20, 2021 1:12 pm
by Adrian
Also, am I correct in extrapolating, based upon your reply, that there really isn't some published doc/wiki on how to do this? If not, let me know and I'll do a write up when I do it for MX-21.
I don't think we have anything in the Wiki other than this (even this might need some update) https://mxlinux.org/wiki/help-files/hel ... -snapshot/

Re: MX-Snapshot = Awesome Tool

Posted: Wed Oct 20, 2021 2:16 pm
by Michael-IDA
@Stevo, @Adrian,

Thank you both!

There were a few workaround to do to get TDE on MX19 w/ Xfce, so I'm just wanting to do the 'QC' so to speak of doing a full install of TDE on MX21(when it's ready) and bundle that as an .iso Live USB for the TDE folks.

When I do it, I'll take notes and get with Jerry about the possible updates to that wiki page. (Okay probable updates, I'll guess it at least needs new screencaps and any option texts changes.)

Again, thanks to both of you,
Michael

Re: MX-Snapshot = Awesome Tool

Posted: Fri Oct 22, 2021 4:19 am
by itsme
Saw this thread and decided to try it out (on MX-21 KDE). Worked like a charm. The iso was created on a separate mounted data backup partition, 4.4GB in size. I burnt the USB (using RosaImageWriter off the KDE Neon site) and rebooted. No issues. Entire process of creating the iso took about 2-3 minutes.

Re: MX-Snapshot = Awesome Tool

Posted: Fri Dec 29, 2023 12:14 pm
by sisqonrw
I use Ubuntu on my notebook.
I would like to create an iso file with the MX snapshot as a backup.

Can I boot live iso USB on my Ubuntu notebook with MX Linux and create an iso file from Ubuntu? Is that possible?

Re: MX-Snapshot = Awesome Tool

Posted: Fri Dec 29, 2023 12:26 pm
by Eadwine Rose
Please open your own topic with the question. Thanks.