MX-Cleanup won't run twice

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
fehlix
Developer
Posts: 10307
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#11 Post by fehlix »

Adrian wrote: Sun Jun 17, 2018 8:35 am That's an interesting tool, I wonder if it's not better to have it installed by default on MX. I'm a bit worried to remove warnings, I guess they serve a purpose...
The warnings are just for casual user to consider the readme:
Bildschirmfoto-tmpreaper.png
We would not need the warnings to show as we would need to do setup anyway trough e.g postinst.
:puppy:

EDIT: Setup we might need to do like this

Code: Select all

sudo sed  -ie '/^SHOWWARNING/s/^/# /; /^# TMPREAPER_TIME=7d/s/^# //;' /etc/tmpreaper.conf
e.g. within a postinst of a metapackage of mx-tmpreaper, or somewhere else.
After that the daily run is setup through cron.daily
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
arjaybe
Posts: 479
Joined: Wed Jul 12, 2006 6:51 pm

Re: MX-Cleanup won't run twice

#12 Post by arjaybe »

Confirming it all works fine if I don't clean /tmp.
Green Comet
Space particles.

User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Re: MX-Cleanup won't run twice

#13 Post by colin_b »

I don't know whether this will be of help, but numerous options for tmpreaper are at http://manpages.ubuntu.com/manpages/pre ... per.8.html

User avatar
colin_b
Posts: 452
Joined: Sun Mar 19, 2017 7:21 pm

Re: MX-Cleanup won't run twice

#14 Post by colin_b »

Would it be possible for MX Cleanup to have the option of running at startup via something like a checkbox?

If enabled then the emptying of the wastebasket could be disabled to eliminate deletion of potentially required files. The end result would offer a set and forget cleanup.

User avatar
oops
Posts: 1602
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#15 Post by oops »

colin_b wrote: Mon Jun 18, 2018 10:42 am Would it be possible for MX Cleanup to have the option of running at startup via something like a checkbox?...
Good idea ... and an other option to open ncdu instead baobab.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
fehlix
Developer
Posts: 10307
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#16 Post by fehlix »

oops wrote: Mon Jun 18, 2018 11:51 am ... and an other option to open ncdu instead baobab.
Rather hard-coding a special application for DUA, I wonder if we could utilize
the alternative mechanism already inplace in MX Linux.
We could setup a default alternative of
e.g. 'mx-disk-usage-analyzer' to baobab, and just call
this 'mx-disk-usage-analyzer' within MX Cleanup.
A user could than install an alternative DUA and
would just need redefine the default for 'mx-disk-usage-analyzer'.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Posts: 1602
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#17 Post by oops »

fehlix wrote: Mon Jun 18, 2018 2:01 pm ...
Rather hard-coding a special application for DUA, I wonder if we could utilize
the alternative mechanism already inplace in MX Linux....
... Yes, why not.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
fehlix
Developer
Posts: 10307
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#18 Post by fehlix »

oops wrote: Mon Jun 18, 2018 5:16 pm
fehlix wrote: Mon Jun 18, 2018 2:01 pm ...
Rather hard-coding a special application for DUA, I wonder if we could utilize
the alternative mechanism already inplace in MX Linux....
... Yes, why not.
Well, in theory we could. Imagine we would define a new alternative e.g. like mx-disk-usage-analyzer as such:

Code: Select all

BIN=baobab; ABIN=mx-disk-usage-analyzer; PRIO=100 ; MAN=$BIN.1.gz; AMAN=$ABIN.1.gz ; BDIR=/usr/bin; MDIR=/usr/share/man/man1
sudo update-alternatives --install $BDIR/$ABIN $ABIN $BDIR/$BIN $PRIO --slave $MDIR/$AMAN $AMAN $MDIR/$MAN
update-alternatives: using /usr/bin/baobab to provide /usr/bin/mx-disk-usage-analyzer (mx-disk-usage-analyzer) in auto mode
We would check / verifiy like this:

Code: Select all

update-alternatives --query mx-disk-usage-analyzer
Name: mx-disk-usage-analyzer
Link: /usr/bin/mx-disk-usage-analyzer
Slaves:
 mx-disk-usage-analyzer.1.gz /usr/share/man/man1/mx-disk-usage-analyzer.1.gz
Status: auto
Best: /usr/bin/baobab
Value: /usr/bin/baobab

Alternative: /usr/bin/baobab
Priority: 100
Slaves:
 mx-disk-usage-analyzer.1.gz /usr/share/man/man1/baobab.1.gz
Or with the Alternative-GUI:
mxdua-alter.png
We could than run MXDUA from with MX-cleanup by calling mx-disk-usage-analyzer.
Which would look like this:
mxdua.png
By this we would just need to adjust the alternive priority with the alternative
system after having installed another disk-usage-analyzer,
without changing anything with MX-Cleanup-tool.
:puppy:
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
fehlix
Developer
Posts: 10307
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#19 Post by fehlix »

And if we prefer to install from MXPI the usage analyzer qdirstat,
we might just define the alternative within the Alternative-GUI or like this:

Code: Select all

BIN=qdirstat;  ABIN=mx-disk-usage-analyzer; PRIO=110 ; BDIR=/usr/bin;
$ sudo update-alternatives --install $BDIR/$ABIN $ABIN $BDIR/$BIN $PRIO
update-alternatives: using /usr/bin/qdirstat to provide /usr/bin/mx-disk-usage-analyzer (mx-disk-usage-analyzer) in auto mode
demo@mx1:~/Desktop
$ update-alternatives --query mx-disk-usage-analyzer
Name: mx-disk-usage-analyzer
Link: /usr/bin/mx-disk-usage-analyzer
Slaves:
 mx-disk-usage-analyzer.1.gz /usr/share/man/man1/mx-disk-usage-analyzer.1.gz
Status: auto
Best: /usr/bin/qdirstat
Value: /usr/bin/qdirstat

Alternative: /usr/bin/baobab
Priority: 100
Slaves:
 mx-disk-usage-analyzer.1.gz /usr/share/man/man1/baobab.1.gz

Alternative: /usr/bin/qdirstat
Priority: 110
Slaves:
And calling from MX Cleanup would look like this:
mxdua-qdirstat.png
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
oops
Posts: 1602
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#20 Post by oops »

Hello all,
Very interesting Fehlix (and very technique too) ... I like you last option (the usage analyzer qdirstat)
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

Post Reply

Return to “Bugs and Non-Package Requests Forum”