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-Cleanup won't run twice

Report Bugs, Issues and non- pacakage Requests
Message
Author
User avatar
fehlix
Forum Regular
Forum Regular
Posts: 894
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#11 Post by fehlix » Sun Jun 17, 2018 9:58 am

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.

User avatar
arjaybe
Forum Guide
Forum Guide
Posts: 1635
Joined: Wed Jul 12, 2006 6:51 pm

Re: MX-Cleanup won't run twice

#12 Post by arjaybe » Sun Jun 17, 2018 5:17 pm

Confirming it all works fine if I don't clean /tmp.
Intel Celeron 1007U with integrated HD Graphics 2500, 4GB RAM

Maybe he will grow into the job.

Green Comet

User avatar
colin_b
Forum Regular
Forum Regular
Posts: 265
Joined: Sun Mar 19, 2017 7:21 pm

Re: MX-Cleanup won't run twice

#13 Post by colin_b » Sun Jun 17, 2018 6:59 pm

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
Forum Regular
Forum Regular
Posts: 265
Joined: Sun Mar 19, 2017 7:21 pm

Re: MX-Cleanup won't run twice

#14 Post by colin_b » 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?

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
Forum Regular
Forum Regular
Posts: 207
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#15 Post by oops » Mon Jun 18, 2018 11:51 am

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.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
fehlix
Forum Regular
Forum Regular
Posts: 894
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#16 Post by fehlix » Mon Jun 18, 2018 2:01 pm

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:

User avatar
oops
Forum Regular
Forum Regular
Posts: 207
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#17 Post by oops » 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.
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


User avatar
fehlix
Forum Regular
Forum Regular
Posts: 894
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#18 Post by fehlix » Mon Jun 18, 2018 7:20 pm

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.

User avatar
fehlix
Forum Regular
Forum Regular
Posts: 894
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Cleanup won't run twice

#19 Post by fehlix » Mon Jun 18, 2018 8:12 pm

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.

User avatar
oops
Forum Regular
Forum Regular
Posts: 207
Joined: Tue Apr 10, 2018 5:07 pm

Re: MX-Cleanup won't run twice

#20 Post by oops » Tue Jun 19, 2018 3:40 am

Hello all,
Very interesting Fehlix (and very technique too) ... I like you last option (the usage analyzer qdirstat)
$ inxi -S : System: Host:XEON Kernel: 4.16.0-xeon-01.efi x86_64 bits: 64 Desktop: Xfce 4.12.3 - Distro: MX-17.1_x64 Horizon


Post Reply

Return to “Bugs and Non-Package Requests Forum”