Slimming down MX
- dolphin_oracle
- Developer
- Posts: 20031
- Joined: Sun Dec 16, 2007 1:17 pm
Re: Slimming down MX
good question. is synaptic running? try closing that.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Re: Slimming down MX
Terminal method -----Eadwine Rose wrote:How could we find out again what partition blahblah (root, home, that stuff, can't remember the right wording here haha) taking up a lot of space?
Code: Select all
type df -h
Click MX Icon, take hand off mouse, type disk, hand back on mouse, select Disk Manager, then provide root password
Mike P
Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD FX 6100 CPU, nVidia, 8Gb, 3.25TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs
Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD FX 6100 CPU, nVidia, 8Gb, 3.25TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs
Re: Slimming down MX
No, I don;t use synaptic or any of that stuff, just CLI for packages/etc. But after shutting down and starting back up, your command worked out great! Now I've just got English US - no matter what has been said, I watched it go slowly past about 1 or 2 hundred(?) locales as it was upgrading - waste of time!dolphin_oracle wrote:good question. is synaptic running? try closing that.
Now I've got to work on the LibreOffice stuff and see what I can do there. I was looking at the PDF apps, and there's a bunch of them - I think I only need one to read and to create, I just have to research them and see which will do the most and dump the rest!
Still gotta research browsers as well.
Re: Slimming down MX
sudo dpkg-reconfigure locales then sudo apt-get install localepurge (answer "Y" to blahblah paths)
At this point, the system is no slimmer.
Upon future package installation/upgrade operations, localepurge's postinstall hook scrubs only any freshly-installed locale related files.
sudo apt-get install bleachbit
Launch bleachbit AsRoot, leave everything except "Localizations" unchecked.
(it's OK, and expected, if the parent item in the treeview ("System") also displays a checkmark)
Click "languages" button in the bleachbit toolbar. In the dialog window, confirm that only English is checkmarked then click OK/close the dialog window.
Click the "X" delete button in bleachbit toolbar.
You'll see its progress in the right-pane & can expect upwards of 22,000 extraneous localization files (120MB+) will be deleted.
======================
Why? Why bother?
On a live-boot system:
presence of all those (22,000+) localization files adds unnecessary overhead if one wishes to use the toram boot option.
On a lesser-specced system, the cumulative overhead of these files can rule out the possibility of opting "toram"
(and/or will increase the likelihood of needing to use slooooooow swapdrive)
-=-
Live or installed to disk:
during each backup/snapshot/remaster operation, the cumulative overhead from handling 22,000+ extraneous files is noticeable.
======================
(For extra, more thorough, cleaning)
After running bleachbit, if you open a terminal emulator and sudo updatedb then locate "Zh"
(and/or "zh") you will find various other, unknown to bleachbit, directories containing localitazion files.
^--- across filenames, "zh" is an infrequently-occurring substring and is the locale code for (?) Chinese
It is NOT safe to blindly delete such files, and (with the excpetion of /.././perl5/../Locales directory) they consume only a few MB of space.
The gobs of stuff under perl5... per my testing, deleting the contents of the Locales subdirectory caused no ill effect, but YMMV.
Also, bear in mind: the cornercase files you manually remove _will_ be re-installed during future package upgrades.
(So make a list, create a bash cleanup script to run periodically, and prior to performing snapshot/remaster operations)
At this point, the system is no slimmer.
Upon future package installation/upgrade operations, localepurge's postinstall hook scrubs only any freshly-installed locale related files.
sudo apt-get install bleachbit
Launch bleachbit AsRoot, leave everything except "Localizations" unchecked.
(it's OK, and expected, if the parent item in the treeview ("System") also displays a checkmark)
Click "languages" button in the bleachbit toolbar. In the dialog window, confirm that only English is checkmarked then click OK/close the dialog window.
Click the "X" delete button in bleachbit toolbar.
You'll see its progress in the right-pane & can expect upwards of 22,000 extraneous localization files (120MB+) will be deleted.
======================
Why? Why bother?
On a live-boot system:
presence of all those (22,000+) localization files adds unnecessary overhead if one wishes to use the toram boot option.
On a lesser-specced system, the cumulative overhead of these files can rule out the possibility of opting "toram"
(and/or will increase the likelihood of needing to use slooooooow swapdrive)
-=-
Live or installed to disk:
during each backup/snapshot/remaster operation, the cumulative overhead from handling 22,000+ extraneous files is noticeable.
======================
(For extra, more thorough, cleaning)
After running bleachbit, if you open a terminal emulator and sudo updatedb then locate "Zh"
(and/or "zh") you will find various other, unknown to bleachbit, directories containing localitazion files.
^--- across filenames, "zh" is an infrequently-occurring substring and is the locale code for (?) Chinese
It is NOT safe to blindly delete such files, and (with the excpetion of /.././perl5/../Locales directory) they consume only a few MB of space.
The gobs of stuff under perl5... per my testing, deleting the contents of the Locales subdirectory caused no ill effect, but YMMV.
Also, bear in mind: the cornercase files you manually remove _will_ be re-installed during future package upgrades.
(So make a list, create a bash cleanup script to run periodically, and prior to performing snapshot/remaster operations)
Re: Slimming down MX
It deleted nearly half a gig on my system. Thanks for the tip.skidoo wrote: You'll see its progress in the right-pane & can expect upwards of 22,000 extraneous localization files (120MB+) will be deleted.
- Buck Fankers
- Posts: 744
- Joined: Sat Mar 10, 2018 9:06 pm
Re: Slimming down MX
Thank you also from me for this tip!skidoo wrote: sudo apt-get install bleachbit
...
You'll see its progress in the right-pane & can expect upwards of 22,000 extraneous localization files (120MB+) will be deleted.
I have plenty of drive space, but since I will never need these extra 22k files, I'm glad there is an easy way of get ridding them ;-)
- Eadwine Rose
- Administrator
- Posts: 11972
- Joined: Wed Jul 12, 2006 2:10 am
Re: Slimming down MX
m_pav wrote:Terminal method -----Eadwine Rose wrote:How could we find out again what partition blahblah (root, home, that stuff, can't remember the right wording here haha) taking up a lot of space?GUI method -----Code: Select all
type df -h
Click MX Icon, take hand off mouse, type disk, hand back on mouse, select Disk Manager, then provide root password
A tool I always use after I install the system and I didn't think of it... *snort*
Thanks, I have oceans of space, not going to bother with the small stuff
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030
Re: Slimming down MX
Here's a hint: install "locales-all". It has precompiled versions of all the locales already, so you don't ever have to sit through the possibly lengthy and annoying process when updating of watching them rebuild one by one, maybe multiple times during the update process.
Pros: eliminates annoying rebuilds of locales. Less than 4 MB download.
Cons: 130 MB installed. Not a problem with modern hardware, though.
Pros: eliminates annoying rebuilds of locales. Less than 4 MB download.
Cons: 130 MB installed. Not a problem with modern hardware, though.
Last edited by Stevo on Mon Apr 02, 2018 2:00 pm, edited 1 time in total.
Re: Slimming down MX
I just scanned over these three pages, but what I find interesting about removing unneeded apps
is the reduction in the size of the snapshot.
There are some good tips here.
I know that using MX-Live-USB-Maker will create ISO over 4 GB that will boot,
the same ISO over 4 GB will not boot on my preferred Easy2Boot USBs. Didn't help
me to use NTFS format instead of FAT32. So, I like to keep them under 4 GB.
Also, I need to remaster an MX for Kids to use on old computers and like
to remove things that won't be used by the kids.
Just a thought.
is the reduction in the size of the snapshot.
There are some good tips here.
I know that using MX-Live-USB-Maker will create ISO over 4 GB that will boot,
the same ISO over 4 GB will not boot on my preferred Easy2Boot USBs. Didn't help
me to use NTFS format instead of FAT32. So, I like to keep them under 4 GB.
Also, I need to remaster an MX for Kids to use on old computers and like
to remove things that won't be used by the kids.
Just a thought.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
Re: Slimming down MX
If I were going to do this, I'd be tempted to see if I could go the other way, starting with antiX Base.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin