How create an unattended install ? [Solved]

When you run into problems installing MX Linux XFCE
Message
Author
User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

How create an unattended install ? [Solved]

#1 Post by SpongeBOB »

Hi everyone,

I would like to have an unattended way to install MX Linux to different computer, Virtual machine etc...

Of course I could create a backup image, but I suppose I'll loss the install automation's ( hardware check etc... )

What could work to have those cover
  • local
  • timezone
  • hostname
  • SMB service (enable/disable)
  • daemons (enable/disable)
  • xfce theme selection
  • MX Tweak's
  • Workspace settings
  • Thunar settings
Thanks.
Last edited by SpongeBOB on Sat Jun 14, 2025 4:30 am, edited 1 time in total.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
Adrian
Developer
Posts: 9147
Joined: Wed Jul 12, 2006 1:42 am

Re: How create an unattended install ?

#2 Post by Adrian »

It's not a feature of the installer that we tested extensively but there's an --auto and --config option. See the minstall --help. Give it a try...

User avatar
AK-47
Developer
Posts: 1249
Joined: Sun Mar 24, 2019 7:04 pm

Re: How create an unattended install ?

#3 Post by AK-47 »

Keep in mind that a config file created under MX 23 will not work for the upcoming release due to major changes in the installer.

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: How create an unattended install ?

#4 Post by SpongeBOB »

Thanks @Adrian & @AK-47 !

I've looked in a installed MX for /mnt/antiX/etc/minstall.conf but it's not present, I guess it's only there in a live session ?

But I've found /etc/minstall.conf is that file have all the options that can be set ?

Covered by minstall (By what I can see for now)
  • local
  • timezone
  • hostname
  • SMB service (enable/disable)
  • daemons (enable/disable)
  • xfce theme selection
  • MX Tweak's
  • Workspace settings
  • Thunar settings
This is already super nice !




Eadwine: hash code changed from BFFFBF (very bright unreadable green) to dark blue.
Last edited by SpongeBOB on Tue Jun 10, 2025 4:10 pm, edited 1 time in total.
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
Eadwine Rose
Administrator
Posts: 15008
Joined: Wed Jul 12, 2006 2:10 am

Re: How create an unattended install ?

#5 Post by Eadwine Rose »

Please change the unreadable color to something easier to read like a dark blue. Thank you.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Aronticuz
Posts: 353
Joined: Wed May 04, 2022 1:04 pm

Re: How create an unattended install ?

#6 Post by Aronticuz »

Sorry I misread this as How to create an unintended install

User avatar
m_pav
Developer
Posts: 1829
Joined: Sun Aug 06, 2006 3:02 pm

Re: How create an unattended install ?

#7 Post by m_pav »

You could always achieve most of this using a snapshot for distribution ISO with nothing saved from the host accounts desktop etc. Setup the Desktop as you wish, then selectively and very carefully merge only the changes you desire carefully added to /etc/skel. Test the desktop changes with a new user acct to see if your /etc/skel mods work as expected. Once satisfied, make your snapshot.

This works well for Xfce or MXFB, never tried it with KDE because many of the configs are deep down in the system rather than in the homedir. Ensure you make a fully featured Live USB with MX LUM from the created ISO.

If the machines you're intending to install it to are a mixture of MBR boot and EFI Boot, you'll have to do this next step twice, once for each type. On the first run, set the options in the grub boot screen for the locale, language and any other tweak you desire from the available types, then save the settings and they'll be automatically applied next time you run the Live USB.

As I work on many Windows machines and frequently boot customer machines with my MX Live USB, I set the clock to use local time, else, where I live, on shutdown, the BIOS clock will be wound back exactly 12 hours, which is very easy to overlook because the HH:MM remain exactly the same in Windows, but the AM/PM shifts out of sync and the browsers complain bitterly.

EFI boot uses a text based menu style while MBR boot uses a Fn Key driven menu system. You only need to ensure you choose the right option to save your selections before you complete the bootup cycle and you're done.

The same can be done when booting from a regular ISO download made into a fully featured Live USB, but a little more care and understanding is needed when working with changes to the /etc/skel dir. You can still add and remove content as you wish, then remaster it, but
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
SpongeBOB
Posts: 79
Joined: Mon Apr 26, 2021 4:57 am

Re: How create an unattended install ?

#8 Post by SpongeBOB »

Thanks @m_pav

I've never did a snapshot for distribution ISO I suppose your create a snapshot (with which tool ? ) then you mount it and convert it into an iso with probably mkisofs ?

I suppose you do all of that within the live session ? (so before the actual install) ?

out of topic, nice Hayabusa

--
Eadwine Rose wrote: Tue Jun 10, 2025 11:49 am Please change the unreadable color to something easier to read like a dark blue. Thank you.
Sorry I've the forum in dark color, and I choose already a not to bright green, but apparently not enough, it's corrected :)
If the freedom of expression is limited to the ideas that we like, it is not freedom of expression.

User avatar
Adrian
Developer
Posts: 9147
Joined: Wed Jul 12, 2006 1:42 am

Re: How create an unattended install ?

#9 Post by Adrian »

This is how it shows on my computer... I did a full refresh
Image

User avatar
Adrian
Developer
Posts: 9147
Joined: Wed Jul 12, 2006 1:42 am

Re: How create an unattended install ?

#10 Post by Adrian »

I've never did a snapshot for distribution ISO I suppose your create a snapshot (with which tool ? ) then you mount it and convert it into an iso with probably mkisofs ?
The tool is called mx-snapshot, it creates an ISO, you don't mount it, you run and install it like a regular MX release.

Post Reply

Return to “Installation”