Slimming down MX

Message
Author
User avatar
dolphin_oracle
Developer
Posts: 20000
Joined: Sun Dec 16, 2007 1:17 pm

Re: Slimming down MX

#21 Post by dolphin_oracle »

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.

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

Re: Slimming down MX

#22 Post by m_pav »

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?
Terminal method -----

Code: Select all

type df -h
GUI method -----
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

Bierhundt
Posts: 186
Joined: Wed Jan 31, 2018 12:12 pm

Re: Slimming down MX

#23 Post by Bierhundt »

dolphin_oracle wrote:good question. is synaptic running? try closing that.
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!
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.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: Slimming down MX

#24 Post by skidoo »

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)

1E1E1E
Posts: 4
Joined: Sat Jan 23, 2016 3:26 pm

Re: Slimming down MX

#25 Post by 1E1E1E »

skidoo wrote: You'll see its progress in the right-pane & can expect upwards of 22,000 extraneous localization files (120MB+) will be deleted.
It deleted nearly half a gig on my system. Thanks for the tip.

User avatar
Buck Fankers
Posts: 744
Joined: Sat Mar 10, 2018 9:06 pm

Re: Slimming down MX

#26 Post by Buck Fankers »

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.
Thank you also from me for this tip! :worship:
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 ;-)

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

Re: Slimming down MX

#27 Post by Eadwine Rose »

m_pav wrote:
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?
Terminal method -----

Code: Select all

type df -h
GUI method -----
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

User avatar
Stevo
Developer
Posts: 12832
Joined: Fri Dec 15, 2006 8:07 pm

Re: Slimming down MX

#28 Post by Stevo »

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.
Last edited by Stevo on Mon Apr 02, 2018 2:00 pm, edited 1 time in total.

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

Re: Slimming down MX

#29 Post by Richard »

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.
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.

User avatar
Jerry3904
Administrator
Posts: 21932
Joined: Wed Jul 19, 2006 6:13 am

Re: Slimming down MX

#30 Post by Jerry3904 »

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

Post Reply

Return to “General”