Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

MX Snappshot tool - create a small ISO -file

Help for Current Versions of MX
Message
Author
Albarello44
Forum Novice
Forum  Novice
Posts: 10
Joined: Thu May 10, 2018 4:44 am

MX Snappshot tool - create a small ISO -file

#1 Post by Albarello44 » Thu May 17, 2018 5:00 am

I use MX16 and want to create a very small ISO - File for old computers. So I uninstalled big tools like LbreOffice, GimP and so on (by using Synaptic and also autoremove). Packages are no longer listed in Synaptic. But when I create an ISO - file by using Snappshot, it takes also 1,2 Gb, as much as the complete MX - Installation needed. What did i wrong?

User avatar
entropyfoe
Forum Regular
Forum Regular
Posts: 791
Joined: Thu Apr 19, 2007 11:42 am

Re: MX Snappshot tool - create a small ISO -file

#2 Post by entropyfoe » Thu May 17, 2018 9:15 am

Why use the old MX-16?

If you want a smaller .iso, you should look into antiX, where the distro is smaller to start, is made for older machines, and is offered in several flavors to enable smaller custom versions, like the antiX base, where you start minimal, and add just what you need.

See:

https://antixlinux.com/about/

"At the moment antiX-17 “Heather Heyer” comes as a full distro (c800MB), a base distro (c620MB), a core distro (c310MB) and a net distro (c150MB) for 32 bit and 64 bit computers. For those who wish to have total control over the install, use antiX-core or antiX-net and build up. Note that the net version will need an ethernet connection."
Asus Prime 370X-Pro
AMD Ryzen 1600X (6 cores @ 3.6 GHz)
16 Gig DDR4 3200 (G Skill)
Nvidia -MSI GeForce GT 710 fanless
Samsung 960 NVMe SSD nvme0n1 P1,P2, and P3=MX-17.1, P4=antiX-17
1TB SSD sda1= Data, 2TB WD =backups
on-board ethernet & sound

turtlebay777
Forum Regular
Forum Regular
Posts: 192
Joined: Sat Apr 14, 2018 2:40 pm

Re: MX Snappshot tool - create a small ISO -file

#3 Post by turtlebay777 » Thu May 17, 2018 1:46 pm

thought better of it so deleted comment.

User avatar
Richard
Posts: 2025
Joined: Fri Dec 12, 2008 10:31 am

Re: MX Snappshot tool - create a small ISO -file

#4 Post by Richard » Thu May 17, 2018 2:43 pm

@Albarello44,.
To reduce size you'll need to read and edit the config files offered in MX Snapshot.

In the first config file link, there is a option to increase compresion. Snapshot will open the config files for you and return to snapshot when you close the config.

In the second file línk, an option to edit the exclusión file. You can add large files, folders or partición to exclude.
Read the explanatory notes in the files.
Last edited by Richard on Fri May 18, 2018 1:26 am, edited 1 time in total.
MX171 on Lenovo T430-2017: i5-3320M, 8 GBRAM, 4.15.0-1-amd64, intel_pstate, 119GB SSD
MX171 on AA1(ZG5) & EeePC-1005ha: Dual Core N270, 1 GBRAM, 4.15.0-1-686-pae, 150GB HDD
DC9, LibO61, Dbox, PM, FF, mPDFed, CherryT, Vbox. __ Linux Counter #208633

skidoo
Forum Regular
Forum Regular
Posts: 845
Joined: Tue Sep 22, 2015 6:56 pm

Re: MX Snappshot tool - create a small ISO -file

#5 Post by skidoo » Thu May 17, 2018 5:20 pm

toward reducing iso size:
can edit the snapshot.conf configuration file and specify a more aggressive compression setting.
(edit: oops, Richard already mentioned)
Also, read this post, about using bleachbit to remove localization files

User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2668
Joined: Sun Aug 06, 2006 3:02 pm

Re: MX Snappshot tool - create a small ISO -file

#6 Post by m_pav » Sat May 19, 2018 4:56 am

Did you think of removing unwanted locales and support files. If you're intending to redistributing it to any and all, then removing the locales is not a smart option, but if you intend to use it as a personal tool, then go ahead and remove the locales and their support files, it should make a nice little difference and punitive old CPUs will certainly appreciate it.

When a punitive old CPU tries to expand a highly compressed ISO, it can actually take longer than an ISO with less compression. Last week at work, the bosses old laptop failed to read the HDD on bootup, I was asked to have a look so I used my MX17.1 personalised ISO with max compression on a Core2 Duo laptop with 2GB RAM and chipset graphics. It took a full 3 minutes before I could use the mouse on the desktop. I'm used to times like 15-20 seconds from cold boot.
Mike P

Regd Linux User #472293
(Mine)Lenovo T560, i7-6600U, 16GB, 2.0TB SSHD, MX17 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX17 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX17

Albarello44
Forum Novice
Forum  Novice
Posts: 10
Joined: Thu May 10, 2018 4:44 am

Re: MX Snappshot tool - create a small ISO -file

#7 Post by Albarello44 » Sat May 19, 2018 5:33 am

Thank you for the answers! I use MX to recycle old computers for social projects and so on. To create a reference - system therefor I use a computer without any user files. I used bleachbit and autoremove, but there is nothing to remove. So I wonder, that ISO - file doesnt became smaler after removing great tools (with purge).
But this is not a great problem. Perhaps I will use antiX for very old computers (the look and feel of antiX is not so great) and otherwise I will use also a big ISO.

User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2668
Joined: Sun Aug 06, 2006 3:02 pm

Re: MX Snappshot tool - create a small ISO -file

#8 Post by m_pav » Sat May 19, 2018 8:11 am

The size of the ISO is nowhere near as important as the running OS's active memory footprint, which we all know, MX does significantly better than Windows did. With the added benefit Linux is less prone to the malware types Windows is subject to, so has less need of real-time active antivirus to slow it down, so whether you use AntiX or MX, you win.
Mike P

Regd Linux User #472293
(Mine)Lenovo T560, i7-6600U, 16GB, 2.0TB SSHD, MX17 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX17 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX17

skidoo
Forum Regular
Forum Regular
Posts: 845
Joined: Tue Sep 22, 2015 6:56 pm

Re: MX Snappshot tool - create a small ISO -file

#9 Post by skidoo » Sat May 19, 2018 1:47 pm

I used bleachbit [...] but there is nothing to remove.
as a prerequisite step:
issue the command "sudo dpkg-reconfigure locales"
and in the dialog UI, ensure only the locales you are interested in are ticked.

Afterward, launch bleachbit(AsRoot) and tick "localizations" ~~ tick no other line item (not autoremove, nothing else).
The first time you attempt to delete localizations, a bleachbit dialog will prompt you "need to setup via preferenceces".
When you visit bleachbit preferences } localizations, you should find that only english (or whatever) is already marked, so just click OK and close the dialog. The act of visiting the dialog, then closing it, toggles off the "first-run" reminder prompt. Click the Delete button (or the dry-run button first, if you wish) and bleachbit right-pane will tally the localization files slated for removal. You can (should) expect bleachbit will find/remove 22,000+ localization files, occupying approx 500MB on disk. You can (should) also expect the compressed ISO file will be 90 to 110MB smaller. The statement "can expect" is based on reports from multiple testers who have participated in previous tests, across various discussion threads.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1427
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX Snappshot tool - create a small ISO -file

#10 Post by fehlix » Sat May 19, 2018 2:33 pm

skidoo wrote:
Sat May 19, 2018 1:47 pm
I used bleachbit [...] but there is nothing to remove.
as a prerequisite step:
issue the command "sudo dpkg-reconfigure locales"
and in the dialog UI, ensure only the locales you are interested in are ticked.

Afterward, launch bleachbit(AsRoot) and tick "localizations" ~~ tick no other line item (not autoremove, nothing else).
...
Just before I use bleachbit to get rid of „unwanted“ locales (man-pages and translation-files)
I do always use this one:

Code: Select all

# sudo sed -i.orig-fehlix -e  "/^#/b;/^$/b; /^${LANG%.*}/b; /^en_US/b; s/^/# /; "  /etc/locale.gen && sudo locale-gen
which will leave my local LANG and default en_US enabled. By this bleachbit only has my LANG and en_US enabled anyway and will happily remove about 400 MB compresses localization files. :happy:
EDIT: Just a cosmetic fix: removed trailing " p;" in the sed-script to avoid dublicate disabled locales.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “MX Help”