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

Slimming down MX

Message
Author
User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9303
Joined: Sun Dec 16, 2007 1:17 pm

Re: Slimming down MX

#21 Post by dolphin_oracle » Fri Mar 30, 2018 4:00 pm

good question. is synaptic running? try closing that.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

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

Re: Slimming down MX

#22 Post by m_pav » Fri Mar 30, 2018 4:52 pm

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

Bierhundt
Forum Novice
Forum  Novice
Posts: 84
Joined: Wed Jan 31, 2018 12:12 pm

Re: Slimming down MX

#23 Post by Bierhundt » Fri Mar 30, 2018 5:07 pm

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
Forum Regular
Forum Regular
Posts: 850
Joined: Tue Sep 22, 2015 6:56 pm

Re: Slimming down MX

#24 Post by skidoo » Fri Mar 30, 2018 8:54 pm

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
Forum Novice
Forum  Novice
Posts: 18
Joined: Sat Jan 23, 2016 3:26 pm

Re: Slimming down MX

#25 Post by 1E1E1E » Fri Mar 30, 2018 10:44 pm

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
Forum Novice
Forum  Novice
Posts: 94
Joined: Sat Mar 10, 2018 9:06 pm

Re: Slimming down MX

#26 Post by Buck Fankers » Fri Mar 30, 2018 11:46 pm

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
Forum Veteran
Forum Veteran
Posts: 6005
Joined: Wed Jul 12, 2006 2:10 am

Re: Slimming down MX

#27 Post by Eadwine Rose » Sat Mar 31, 2018 1:31 am

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-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16175
Joined: Fri Dec 15, 2006 8:07 pm

Re: Slimming down MX

#28 Post by Stevo » Sat Mar 31, 2018 12:58 pm

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: 2030
Joined: Fri Dec 12, 2008 10:31 am

Re: Slimming down MX

#29 Post by Richard » Sat Mar 31, 2018 2:20 pm

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

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22420
Joined: Wed Jul 19, 2006 6:13 am

Re: Slimming down MX

#30 Post by Jerry3904 » Sat Mar 31, 2018 2:51 pm

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: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

Post Reply

Return to “General”