You are not logged in.
Hello:
My /proc/acpi/wakeup file reads thus:
groucho@devuan:/proc/acpi$ cat wakeup
Device S-state Status Sysfs node
USB0 S4 *enabled pci:0000:00:1d.0
USB1 S4 *enabled pci:0000:00:1d.1
USB2 S4 *enabled pci:0000:00:1d.2
USB5 S4 *disabled
EUSB S4 *enabled pci:0000:00:1d.7
USB3 S4 *enabled pci:0000:00:1a.0
USB4 S4 *enabled pci:0000:00:1a.1
USB6 S4 *enabled pci:0000:00:1a.2
USBE S4 *enabled pci:0000:00:1a.7
P0P1 S4 *disabled pci:0000:00:01.0
P0P2 S4 *disabled pci:0000:00:06.0
P0P3 S4 *disabled pci:0000:00:1c.0
BR11 S4 *disabled
BR12 S4 *disabled
BR13 S4 *disabled
P0P4 S4 *disabled pci:0000:00:1c.4
BR15 S4 *disabled
P0P5 S4 *disabled pci:0000:00:1e.0
GBE S4 *enabled pci:0000:00:19.0
SLPB S4 *disabled
groucho@devuan:/proc/acpi$ I have no use for anything being enabled there and found a script to set everything to 'disabled':
See: https://gist.github.com/npcardoso/47d8f … wakeups-sh
#!/bin/bash
if [[ $# > 1 || ($1 != "enable" && $1 != "disable") ]]; then
echo "Usage: $0 <enable|disable>"
exit 1
fi
if [[ $1 == "enable" ]]; then
TOGGLE=grep '\*disabled' /proc/acpi/wakeup | cut -d ' ' -f1
else
TOGGLE=grep '\*enabled' /proc/acpi/wakeup | cut -d ' ' -f1
fi
for DEV in $TOGGLE; do
echo $DEV
echo $DEV > /proc/acpi/wakeup
doneFor some reason it is not running properly.
groucho@devuan:~$ ./acpi_wakeups.sh disable
./acpi_wakeups.sh: line 14: \*enabled: command not found
groucho@devuan:~$ groucho@devuan:~$ ./acpi_wakeups.sh enable
./acpi_wakeups.sh: line 10: \*disabled: command not found
groucho@devuan:~$ Any help would be appreciated.
Thanks in advance,
A.
... off-topic for this thread ...
Quite so.
Thanks for pointing it out. 8^)
Best,
A.
Hello:
... but X is now abandonware ...
Hmm ...
Maybe it's too soon to sign the certificate?
There's still much to be said.
Many years ago (unfortunately much later than I should have) one day I realised that I could always solve any apparent confusion or contradiction by stepping back and having a close look at what was going on with the purpose of getting a grasp of who was where and why.
While the why part of the exercise many times remained (as it usually does) unknown, the who and where have always proved to be quite revealing.
The end result being that whatever confusion or contradiction I may have had cleared up very quickly.
To wit:
I realised I was definitely a Democrat by the age of 13 not because of my reading of the opinion pieces of the two newspapers I delivered every afternoon but by listening to what Mr. Davis, my next door neighbour and certified dyed in the wool Republican had to say about things in general.
I'll always be grateful to the old chap for that.
With respect to the matter of X, if Red Hat, IBM et al are attempting to sink it, don't count me in.
I have faith in the resilience of the Linux ecosystem albeit not in its constituents.
Just my 0.02.
A.
Hello:
uninstalling apparmor ...
Indeed.
Got rid of it.
Saw no use for it and people who know more than i do about all this have uninstalled it.
https://dev1galaxy.org/viewtopic.php?pid=28640#p28640
And that was the end of it.
Cheers,
A.
Hello:
Yes ...
Right.
Further thinking about it, I see it makes sense.
But I would just use the size option described in logrotate(8) to control how big the files get before being rotated.
I recall (?) thinking about that but did not see the need for the rotated files.
I'll look into that, thanks for the heads up.
... would delete ~/.xsession-errors at the start of every X session ...
... doesn't seem much point keeping error logs from old sessions.
Yes, I have seen that done.
And taking into account how unintelligible they are ...
But I have found that they have been a sort of reference for comparison purposes between boots.
Not that I actually solved anything. 8^7
Thanks a lot for your input.
Best,
A.
Hello:
... indicate that root can read or write to the files but members of the adm group can only read them.
I see.
Crontab runs as the user that added the scripts so my only options are:
1. to put the lines needing root credentials in /etc/cron.d.
2. add them to via sudo crontab-e to root's crontab.
Is this so?
Thanks in advance,
A.
Hello:
Now that my cron issues were taken care of, I now see the errors that crop up when it actually runs as intended. 8^7
My crontab has these three entries with the purpose of keeping log files to a manageable size till the time they get rotated:
# 1. For /home/groucho/.xsession-errors
# ---
0 */23 * * * [ $(du -k .xsession-errors | awk '{ print $1 }') -gt 5000 ] && tail -200 /home/$(whoami)/.xsession-errors > /home/$(whoami$
# ---
#
# 2. For /var/log/boot (bootlogd)
# ---
0 */23 * * * [ $(du -k /var/log/boot | awk '{ print $1 }') -gt 5000 ] && tail -200 /var/log/boot > /var/log/boot
# ---
# 3. For /var/log/cron.log
# ---
0 */23 * * * [ $(du -k /var/log/cron.log | awk '{ print $1 }') -gt 5000 ] && tail -200 /var/log/cron.log > /var/log/cron.log
# ---The first one has no issues, it is for the prolific .xsession-errors living at /home.
But the other two need admin rights:
groucho@devuan:~$ tail -200 /var/log/boot > /var/log/boot
bash: /var/log/boot: Permission denied
groucho@devuan:~$ groucho@devuan:~$ tail -200 /var/log/cron.log > /var/log/cron.log
bash: /var/log/cron.log: Permission denied
groucho@devuan:~$ My user belongs to a miriad of groups:
groucho@devuan:~$ groups
groucho adm lp mail dialout fax cdrom floppy tape sudo audio dip www-data backup video plugdev staff users crontab netdev lpadmin scanner saned fuse powerdev debian-exim
groucho@devuan:~$ As you can see, adm is one of them.
But doesn't adm have rights over /var/log/boot and /var/log/cron.log?
groucho@devuan:~$
groucho@devuan:~$ ls -l /var/log | grep adm |grep boot
-rw-r----- 1 root adm 6639408 Apr 9 17:20 boot
groucho@devuan:~$ groucho@devuan:~$
groucho@devuan:~$ ls -l /var/log | grep adm |grep cron.log
-rw-r----- 1 root adm 105594 Apr 9 18:35 cron.log
-rw-r----- 1 root adm 14428210 Apr 4 06:50 cron.log.1
groucho@devuan:~$ What am I missing?
Thanks in advance,
A.
Hello:
... does that help?
Indeed ...
I think I had seen that thread (?) but somehow did not register this post: https://unix.stackexchange.com/users/11318/daisy:
The config file is here: /etc/updatedb.conf, so if you didn't add anything, just mount your HDD, and do updatedb, then you would be able to search for files on external HDD partitions.
Maybe because it only had seven five while first three answers had seven? 8^7
The thing is that there it was and at some time (cannot recall having done it) I had edited /etc/updatedb.conf.
I now know because I commented it: # removed /media 20191224, a very useful thing to do.
Must have done it to keep updatedb from indexing pluggable USBs, not realising that I was keeping out my file storage.
Once again, thanks for your input.
Best,
A.
Hello:
... use mlocate instead, it's better.
... plocate from beowulf-backports, which is better and faster.
... brings up https://unix.stackexchange.com/question … ternal-hdd
... does that help?
Yes, I'll have a look at the alternatives to *locate + the link and see what I can get.
Thanks a lot for your input. 8^)
Best,
A.
Hello:
... use it everywhere.
Especially /home/glenn/local/... 7 partitions in there
Yes.
I do too.
But ...
Is there a way to be able to use this tool in other drives?
ie: main drive is /dev/sda but I want to use it on /dev/sde1 which is another disk drive.
Thanks for your input.
Cheers,
A.
Hello:
Since I discovered it long ago, locate has been one of my favourite tools.
But (as far as I know) it only works on the system drive.
ie: where / lives.
Is there a way to be able to use this tool in other drives?
I find myself searching to files/documents in other drives and have a hard time.
Thanks in advance,
A.
Hello:
... arrange the icons manually on the grid ...
... my order is spoiled, not always ...
I know exactly how you feel.
Desktop configuration and icon management have been a major issue ie: PITA for me ever since I abandoned MSOSs and adopted Linux definitely.
Not only Cinammon, but also Mate and Xfce.
If there is one (yes, there is one) thing I have a certain longing for is the way Microsoft managed to work out desktop configuration and icon arrangement.
At least up to XPSP3 which was the last MSOs I was involved with.
ie: Right click -> Arrange Icons By -> a drop down menu which had these options:
Name
Type
Size
Modified
-----------
Show in Groups
Auto arrange
Align to grid
-----------
Show Desktop Icons
Lock Web Icons on Desktop
Run Desktop Cleanup Wizard
In spite of the crap Wizard which could be removed/switched off, I have yet to find a Linux desktop that can do the same thing and do it well.
Incredible ...
I've already gone through Cinammon, Mate and now Xfce and I have found them all to be severely lacking in almost every aspect.
To the extent that my next desktop will probably be Openbox with whatever enhancements I may need to be comfortable enough.
Along the lines of what #! Linux (Waldorf) was.
[rant]
All the Linux desktops I have seen are crap.
With all this Windows <-> Linux shit going on lately ...
Why can't we get a decently working Linux desktop?
ie: easy to configure and with icons that do whatever the fuck I want them to do.
[/rant]
Have to go take my pill.
Cheers,
A.
Hello:
... great fear and trepidation ...
No need for that.
There are no stupid questions, only stupid answers.
Simplicity Linux ...
Here you go:
From https://distrowatch.com/?newsid=10901
Simplicity Linux is a Devuan-based distribution with Cinnamon as the default desktop environment (prior to 2020 it was based on Puppy Linux and Xfce). It comes in three editions: Mini, Desktop and Gaming. The Mini edition features cloud-based software, the Desktop flavour offers a collection of general-purpose software, and the Gaming variant includes a launcher for Steam games.
Download links:
All files: https://sourceforge.net/projects/simplicitylinux/files/
Desktop: https://sourceforge.net/projects/simpli … iles/20.4/
Mini iso: http://downloads.sourceforge.net/simpli … ini204.iso
Just X: http://downloads.sourceforge.net/simpli … x/X204.iso
General discussion: https://sourceforge.net/p/simplicitylinux/discussion/
Installation should be straightforward but I'd look to use for something else.
ie; not an apparently abandoned project.
Cheers,
A.
Hello:
While having a look at the list of services I have on my Devuan Beowulf, I saw a couple that called my attention:
groucho@devuan:~$ sudo service --status-all
[sudo] password for groucho:
--- snip ---
[ - ] brightness
--- snip ---
[ - ] gdomap
--- snip ---
groucho@devuan:~$ Granted, they are not running.
I understand that brightness is for a laptop or portable and could be removed.
But what use is gdomap?
Thanks in advance.
Best,
A.
Hello:
... can't load pcc_cpufreq unless acpi_cpufreq is also loaded ...
I've been trying to find something about the use of pcc_cpufreq and how to load it but nothing so far.
I found this:
groucho@devuan:~$ sudo modprobe -c | grep -i pcc_cpufreq
alias acpi*:ACPI0007:* pcc_cpufreq
alias acpi*:LNXCPU:* pcc_cpufreq
groucho@devuan:~$ I don't get the whole alias idea but lsmod says this ...
groucho@devuan:~$ lsmod | grep -i _cpufreq
pcc_cpufreq 16384 0
acpi_cpufreq 24576 1
groucho@devuan:~$ Is it that loading pcc_cpufreq will always load acpi_cpufreq and not pcc_cpufreq?
The driver is a kernel module:
groucho@devuan:~$ grep -i _cpufreq /boot/config-4.19.0-16-amd64
CONFIG_X86_PCC_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ_CPB=y
groucho@devuan:~$ I've read that the pcc-cpufreq driver doesn't scale with > 4 CPUs and the ondemand governor.
But my Sun Ultra 24 box uses the Intel Core2 Q9550 processor which has just 4 CPUs and I am quite willing to dispense with the scaling if I can use the pcc-cpufreq driver to troubleshoot the shudown problem in my system.
Thanks in advance.
Best,
A.
Hello:
That was a miyolinux system ...
Indeed ...
I did not install any live-config packages, so they must have come with Miyo.
The poster was right.
I didn't now about refractainstaller being used by Miyo.
... the live-config change should not need to be undone as it only exists in the running live system.
Now it's fixed.
Thanks for your input.
Best,
A.
Hello:
... linux-image-amd64 metapackage installed ...
Indeed.
That was it. 8^)
Happens when you install from the ground up with a skinny net-install.
Forget lots of things.
Thanks a lot for your input.
Best,
A.
Hello:
I run a parallel Devuan Beowulf installation in my box, on another separate drive.
Yesterday I updated/upgraded my regular/daily installation, 30+ files which included 4.19.0-16-amd64.
I was wanting to the same with this other installation but it did not list the 4.19.0-16-amd64 upgrade.
apt update && upgrade does not list it.
My /etc/sources/list is this:
## package repositories
# -------------------------------------------------------------------------------
# Changed - 20210401 - from Beowulf installation
# -------------------------------------------------------------------------------
# beowulf stable
deb http://deb.devuan.org/merged beowulf main contrib non-free
deb http://deb.devuan.org/merged beowulf-security main contrib non-free
deb http://deb.devuan.org/merged beowulf-updates main contrib non-free
# needed x virtualbox backport - enable to update package
# deb http://deb.devuan.org/merged beowulf-backports main contrib non-free
# needed x nvidia non-free drivers installation
# deb http://deb.devuan.org/merged/ beowulf contrib
# deb http://deb.devuan.org/merged/ beowulf non-free
# virtual box repository x installation
# deb http://download.virtualbox.org/virtualbox/debian/ buster non-free contrib
# deb http://deb.devuan.org/merged/ beowulf main
# deb http://deb.devuan.org/merged/ beowulf-security main
# deb http://deb.devuan.org/merged/ beowulf-updates main
# deb http://deb.devuan.org/devuan/ beowulf-proposed main
# deb http://deb.devuan.org/merged/ beowulf non-free contrib main
# deb http://deb.devuan.org/merged/ beowulf-security non-free contrib main
# deb http://deb.devuan.org/merged/ beowulf-updates non-free contrib main How can I troubleshoot this?
Edit:
root@devuan3:~# aptitude why-not linux-headers-4.19.0-16-amd64
Not currently installed
The candidate version 4.19.181-1 has priority optional
No dependencies require to remove linux-headers-4.19.0-16-amd64
root@devuan3:~# My main installation does not have this optional priority.
Why is it here?
Thanks in advance,
A.
Hello:
uh-oh...
I haven't been paying close attention to this thread.
Tsk, tsk ... 8^D!!!
Can't do everyhting.
live-config messes with anacron via the live-config script ...
So it seems.
... useful in a live-CD where everything is read-only.
... only activates when you boot into a live system, not an installed system.
Yes.
Refractainstaller copies the RUNNING live system to hard drive.
The post at Dev1 that I linked to, which had the same /usr/sbin/anacron --> /bin/true and deviations apparently was not/had not been using Refractainstaller.
So something other used live-config and generated the same problem.
https://dev1galaxy.org/viewtopic.php?id=1901
ie: this would not be specific to the refractainstaller but to how live-config is used by any application. (?)
You just uncovered a 10-year-old bug ...
No.
It was ralph.ronnquist who saw it and pointed it out to me while helping me sort out the problem I was having with anacron.
https://dev1galaxy.org/viewtopic.php?pid=28663#p28663
I just observed and tried to pay attention.
A question just occurred to me: in 10 years, no one else using refractainstaller had a problem/issue with anacron?
Maybe there's something that's not working right.
ie:
I realised what was going on when I saw that my fstrim script was not logging.
If not for that, I would have never known about what was going on with anacron.
And I don't recall any system notifications warning me of anacron failures.
Not good, no?
The installer needs to undo this during the installation.
Sure.
But it is live-config that is making a signifficant change.
No clean-up after use?
A notification of some sort?
eg:
Don't forget to clean up /usr/sbin/anacron --> /bin/true afterwards.
I see this in syslog for the first time after reboot.
... it's working now.Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.daily' in 5 min. Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.weekly' in 10 min. Apr 1 15:44:42 localhost anacron[1828]: Will run job `cron.monthly' in 15 min.
Yes, it's working.
Thanks a lot for your input.
Best,
A.
Hello:
Why not?
What happens when you comment-out the wtmp & btmp stanzas?
Don't know.
I did not edit anything, I just renamed the original as logrotate.old and copied the new one in.
Altoid wrote:What does your logrotate.conf look like?
My Devuan Beowulf has logrotate 3.14.0:
groucho@devuan:~$ sudo logrotate --version
logrotate 3.14.0
Default mail command: /usr/bin/mail
Default compress command: /bin/gzip
Default uncompress command: /bin/gunzip
Default compress extension: .gz
Default state file path: /var/lib/logrotate/status
ACL support: yes
SELinux support: yes
groucho@devuan:~$ But for some strange reason, the logrotate.conf file I have is the logrotate.conf file packaged with logrotate 3.13.0, without this line:
--- snip ---
# use date as a suffix of the rotated file <---- | x |
dateext
--- snip ---The rest is the same.
See: https://github.com/logrotate/logrotate/ … 3.0.tar.gz
I'll get the .*conf file from logrotate 3.14.0 and use that.
Will report back once done.
Edit:
Works, no errors.
But my logrotate.conf file was the wrong version.
Thanks for your input.
Best,
A.
Hello:
Have you actually tried ...
Yes.
At least in my system it is not a drop-in replacement.
There is at least one thing I noticed.
And the fixed logrotate.conf has this:
# use the syslog group by default, since this is the owning group
# of /var/log/syslog.
su root syslogIn Devuan Beowulf there is not syslog group (at least I can't find it).
groucho@devuan:~$ grep syslog /etc/group
groucho@devuan:~$ Also, syslog is owned by root but belongs to the adm group:
groucho@devuan:~$ ls -l /var/log/syslog
-rw-r----- 1 root adm 4816 Apr 1 13:30 /var/log/syslog
groucho@devuan:~$ That's why I think someone esle with proper skills has to have a look.
... don't have any wtmp lines in /etc/logrotate.conf in my bullseye ...
My Devuan Beowulf has it:
roucho@devuan:~$ cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp { <----- | x |
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp { <----- | x |
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
groucho@devuan:~$ So apparently that is why we get the mail I posted.
What does your logrotate.conf look like?
Thanks for your input.
Best,
A.
Hello:
There is a bug in the logrotate.conf configuration.
See here: https://bugs.launchpad.net/ubuntu/+sour … ug/1915759
ralph.ronnquist pointed it out to me here: https://dev1galaxy.org/viewtopic.php?pid=28663#p28663 while helping me with an anacron problem caused (probably) live-config.
The error shows up when logrotate is run in /etc/cron.whatever and then you get notifocaton from the system:
From root@devuan Thu Apr 01 11:31:07 2021
Envelope-to: root@devuan
Delivery-date: Thu, 01 Apr 2021 11:31:07 -0300
From: Anacron <root@devuan>
To: root@devuan
Subject: Anacron job 'cron.daily' on devuan
Content-Type: text/plain; charset=US-ASCII
Date: Thu, 01 Apr 2021 11:31:07 -0300
/etc/cron.daily/logrotate:
error: /etc/logrotate.conf:18 duplicate log entry for /var/log/wtmp
error: /etc/logrotate.conf:25 duplicate log entry for /var/log/btmp
run-parts: /etc/cron.daily/logrotate exited with return code 1The problem is that the fix posted is an Ubuntu fix.
ie: probably will not run properly in Devuan without adjusting it
Anyone know how to edit it so it will run?
Thanks in advance.
Cheers,
A.
Hello:
One confirmation would be that your fstrim logging shows up.
... manual forced test would be like before, i.e. if live-config is uninstalled, then ...sudo /usr/sbin/anacron -s -d -n -f... should be telling about running the cron.{daily,weekly,monthly} jobs.
Right.
I'll do all that and report back, hopefully marking this long thread as [Solved].
----
Edit:
Done.
No more /usr/sbin/anacron --> /bin/true
groucho@devuan:~$ ls -l /usr/sbin/anacron.orig.anacron
-rwxr-xr-x 1 root root 34832 May 19 2019 /usr/sbin/anacron.orig.anacron
groucho@devuan:~$groucho@devuan:~$
dpkg -S anacron.orig.anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
groucho@devuan:~$ groucho@devuan:~$ ls -l /usr/sbin/anacron
lrwxrwxrwx 1 root root 20 Apr 1 11:06 /usr/sbin/anacron -> anacron.orig.anacron
groucho@devuan:~$ groucho@devuan:~$ dpkg -S /usr/sbin/anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron
anacron: /usr/sbin/anacron
groucho@devuan:~$ I have purged it but I see that the diversion by live-config is still there.
How to go back to the 'original' pre-live-config configuration?
It seems to be working. 8^D!
groucho@devuan:~$
groucho@devuan:~$ sudo /usr/sbin/anacron -s -d -n -f
[sudo] password for groucho:
Anacron 2.3 started on 2021-04-01
Job `cron.daily' locked by another anacron - skipping
Job `cron.weekly' locked by another anacron - skipping
Job `cron.monthly' locked by another anacron - skipping
Normal exit (0 jobs run)
groucho@devuan:~$
groucho@devuan:~$ ----
Once done, who/where would I have to report this problem to?
Does not seem to originate inrefractainstaller-base, more like in the required live-config.
Or is it related to the bug report I linked to?
Don't think is would be a good thing just to leave it be. (?)
Thank you very much for the time and effort you put into solving this problem for me.
Really appreciate it.
Best,
A.
Hello:
Good.
So when the start script runs /usr/sbin/anacron it actuallly runs /bin/true which is doing bugger all...
So ...
That's where things get screwed up?
Possibly @fsmithred (who's doing refracta-base) knows something ...
.. in any case it's wrong for your purpose.
I see.
... two options:
... change the link by:sudo ln -sTf anacron.orig.anacron /usr/sbin/anacron... will undo the redirect, but this then runs the risk of being undone ...
... if the live-config package is updated.
I could eventually pin it ...
... change /etc/init.d/anacron to use /usr/sbin/anacron.orig.anacron as binary;
... change start-stop-daemon --start command line to be
start-stop-daemon --start --exec /usr/sbin/anacron.orig.anacron -- $ANACRON_ARGS... more sticky fix than changing the link ...
... probably breaks if the live-config package is uninstalled.
Hmm ...
I think I can uninstall refracta-base as I have only ever used it from my ascii/Beowulf VM.
That would take care of live-config and the redirection for good.
Unless live-config comes back with something else.
I think I'll do that and then use the first option you have advised.
Think that would do well as a long term solution?
Once done, how should I test that everything is working properly?
Thanks in advance,
A.
Hello:
Over here it's 04/01 ...
This "new" implementation sounds like it might be a useful addition ...
With the obvious proviso that your opinion with respect to this has much more weight that mine, I just see it as yet another one of systemd tentacles.
Reminds me so much of the MS registry.
Thanks for your input.
Best,
A.