You are not logged in.
Hello:
... not to be a hater, but an init freedom lover ...
This has absolutely nothing to do with hate.
Nor is there anything wrong with being an init freedom lover.
This as long as the society/ecosystem you move in and interact with (in this case, Debian and the Pottering crowd) is actually willing to accept that view.
ie: that of init freedom and (of course) in the context we are in: that of Devuan basically depending on Debian to exist.
But pray tell me ...
Just what are you going to love when init freedom ends up becoming systemd dependency?
What will you do then with all your init freedom love?
I imagine that you think this is a far fetched idea and that no, that will never happen.
How sure are you?
You probably missed this this thread.
And if you did not, you surely missed the significance of what it is reporting.
It is my opinion (YMMV) that Pottering and those who follow him in Debian are firmly set on making systemd the init standard for the distribution.
And when this happens Devuan, save a real miracle, will vanish.
... rpi folks realise the "full-fat systemd ...ness" ...
It is quite obvious that you missed the poster's sly sarcasm.
I fear that this laissez faire approach to systemd will end up being the demise of Devuan and everything based on it.
Cheers,
CIV
Hello:
there should be more reasons to go systemd-free,... rpi and other arm devices run much faster / less RAM usage, without it.
Should?
There are a great many more reasons to go systemd-free.
I confess that I was not aware of (but suspected) "... much faster / less RAM usage".
Evidently it is something the people/developers at raspberripi.org don't care about or just cannot be bothered with.
The answer I got to my post exudes the shortsighted pragmatism often seen in some forums on the web regarding systemd and I'm really at odds as to how to question it successfully.
But I cannot shake the suspicion that there could well be a dyed-in-the-wool pro systemd stance behind such pragmatism.
eg:
... It's not supported on here.
... (and any quirks it may possess) ... <--- any quirks?
Cheers,
A.
Hello:
Seems it was not a very interesting topic for anyone here.
But I am convinced that systemd must go.
So I thought it would be useful to post at the Raspberry Pi forum and see what was up.
It's not supported on here. The OS on here is Raspbian complete with the full-fat systemd wonderfulness. I'd guess that 99.999% of folks on the forum a) won't know what Devuan is, b) won't know why they'd swap from Raspbian and c) have no problems with systemd (and any quirks it may possess).
Solved.
There does not seem to be much love for systemd free OSs at raspberrypi.org, seems they deem it to be innocuous.
Cheers,
A.
Hello:
I'm currently waiting for delivery of a Raspberry Pi 3B+ to use with my coffee roasting setup.
In the meanwhile (lots of it) I'm reading up on what's going on with Raspberry/Raspbian and I came across this page on the official Raspberry Pi web site.
What called my attention, knowing there are Devuan Raspbian images available, was that their availability was not listed on the page under the Third Party Operating System Images section along with Ubuntu and others.
Is there a sound reason for that or is it because of the systemd thing? (spelt it right this time ...)
Thanks in advance,
A.
Hello:
... hwmon inside conky ...
... check in /sys/class/hwmon for the correct outputs ...
Right.
That did it.
TEMPERATURES
-------------------------------------
${hr 2}
Core0: +${hwmon 0 temp 2}°C Core1: +${hwmon 0 temp 3}°C
Core2: +${hwmon 0 temp 4}°C Core3: +${hwmon 0 temp 5}°C... got me exactly what I was looking for.
TEMPERATURES
-------------------------------------
Core0: +46.0 Core1: +42.0
Core2: +41.0 Core3: +41.0
Thank you very much for your input.
Cheers,
A.
Hello:
fmt is the command you want. https://linux.die.net/man/1/fmt
Right ...
... the way you want it formatted should be below command.
Thanks a lot .. =-)
I had to tailor it a bit ...
${execpi 5 sensors | awk 'NR==3{print $1 $2 $3} NR==4{print $1 $2 $3} NR==5 {print $1 $2 $3} NR==6 {print $1 $2 $3}' | fmt -24}... gets me this:
TEMPERATURES
-------------------------------------
Core0: +52.0 Core1: +52.0 |
Core2: +52.0 Core3: +52.0 |
But I have not found a way to separate the readouts.
eg:
TEMPERATURES
-------------------------------------
Core0: +52.0 Core1: +52.0 |
Core2: +52.0 Core3: +52.0 |
It seems that spaces do not count and I don't see a tab or any other argument to use.
How do I separate them?
Thanks in advance,
A.
Hello:
I use Conky on my desktop to show, among other things, CPU temperatures.
Invaluable when your box sits on the floor of a rather unkept home office. =^7
The /etc/conky/conky.conf lines that do it are these ...
--- snip ---
TEMPERATURES
${hr 2}
${execpi 5 sensors | grep Core | awk '{print $1 $2 $3}' | cut -c1-15}
--- snip ---... and what I get is something akin to this:a
TEMPERATURES
-------------------------------------
Core0: +52.0 |
Core1: +52.0 |
Core2: +52.0 |
Core3: +52.0 |
The output shown above in ASCII (*) is more or less to scale and aligned to the right screen margin, in turn represented by the vertically stacked Alt+179 symbols.
In order to be able to add a couple of readings without having to squint (more) and/or take up additional screen surface, I'd like to be able to format the output in this manner:
TEMPERATURES
-------------------------------------
Core0: +52.0 Core1: +52.0 |
Core2: +52.0 Core3: +52.0 |
How can I get that done?
Thanks in advance,
A.
(*) This in the absence of a quick and convenient way to upload small graphic files to wherever, directly from the post screen. (a hint?)
Hello:
... suspect that this is the tip of the iceberg.
Which one?
HoaS's windup or systemd? 8^D!
Used to be that the "wontfix" issues were listed ...
No telling what's buried in there that will come to bite us.
The won'tfix issues is my main and probably only issue with Linux/Linux maintenance.
They are the stuff problems down the line are made of, that end up festering in dark and unvisited corners of a distribution.
Till one day everything goes titsup because things that were not fixed in time because it seemed they did not matter were not properly evaluated.
And came back to bite, hard.
And then it is either too late or a real bitch to fix and get things back on track again.
Cheers,
A.
Hello:
It's spelled "systemd" actually.
No idea as I did not actually do any spelling ...
To avoid errors in transcription, I just did a copy/paste from the article at ElReg.
It was already spelt for me.
Are you all doing that deliberately to wind me up?
Nah!
Wouldn't dream of it ... 8^D !!!
Cheers,
A.
Hello:
Not that it matters too much to any of us here but ...
---
SystemD found to have code execution bug
A flaw in SystemD could potentially be exploited by a local attacker or malware to elevate their privileges to fully hijack a machine.
The bug, CVE-2020-1712, a heap use-after-free, was discovered and reported by Google's Tavis Ormandy, and fixed in upstream version v245-rc1. Depending on your Linux distro, you may or may not have a vulnerable version installed; check for updates. Red Hat Enterprise Linux 7 is unaffected, for example.
---
https://www.theregister.co.uk/2020/04/0 … y_roundup/
https://cve.mitre.org/cgi-bin/cvename.c … -2020-1712
https://www.openwall.com/lists/oss-secu … 20/02/05/1
Cheers,
A.
Hello:
If Debian had it, we would have it.
Ahh ...
That's the reason.
Learn something new every day. 8^)
... only touch files with systemd issues.
... when Debian offers it, then we will ...
Right.
So my question should have been: why do the Debian repositories have inxi and not smxi and the rest.
Maybe they are not happy with his stance on systemd, the same one I acquired once I realised what was going on albeit only after a 4/5 year tour of Debian/RH based distributions.
Thanks a lot for bearing with me.
Cheers,
A.
Hello:
... thanks for tracking that down.
You're welcome. =-)
... had great respect for HH and thank him for his contributions and making that script compatible with Devuan.
Yes.
That website he's set up is great.
Really neat.
I have only used inxi which I find to be excellent, so I wanted to see about smxi, which I did not know about.
... that package comes directly from Debian ...
Indeed ...
But Debian also means (in some way, methinks) systemd related.
As I always try to avoid installing anything from outside the Devuan repositories, I went to synaptic expecting to find it there, just like inxi.
I did not find it so I went looking for it at https://pkginfo.devuan.org/ and it had not been / was not there either.
This called my attention, which is why I asked.
I'll install it from HH's site but maybe (?) it could be added to the stable/backport repositories in the future?
Thanks for your input.
A.
Hello:
sgfxi at https://smxi.org/ will automate everything.
Being a long time user of Nvidia legacy cards/drivers under Linux, I was interested in seeing what smxi was about and saw that the author is also the author of the inxi script.
Did not know that.
Although inxi is in the Devuan repositories, I see that smxi (or the other author's scripts) is not.
Further looking in https://pkginfo.devuan.org/ revealed that it smxi has never been included in any Devuan repository.
Is there a specific reason for that?
I have read posts from mid 2015 regarding some difficulty the smxi script seemed to have ID'ing Devuan but it seems to have been fixed.
EDIT:
Fix confirmed - https://github.com/smxi/inxi/blob/master/inxi.changelog
=====================================================================================
Version: 2.2.23
Patch: 00
Date: 2015-06-08
-----------------------------------
Changes:
-----------------------------------
New version, tarball. Tiny change. Added /etc/devuan_version file to distro id to handle
the switched file name. Kudos to anyone out there fighting to create a working alternative
to the unreliable and buggy and windows emulating systemd, I wish devuan luck. Maybe between
devuan and gentoo and slackware we can save the free software core systems before it's too late.
-----------------------------------
-- Harald Hope - Mon, 08 Jun 2015 15:43:52 -0700
=====================================================================================
Thanks in advance,
A.
Hello:
Yes, that did it.
Spoke too soon ...
The problem was still there. =^ 7
ie: Rebooting with anything storage plugged in would screw up the conky readout.
I think/guess what using UUIDs in fstab does is link the drive's UUIDs to partitions but still that leaves eventual drive letter assignments in a dynamic state, so to speak.
ie: a UUID does not get permanently linked to a drive letter.
The solution then is to point conky to the drive's UUID.
eg:
TEMPERATURES
${hr 2}
${execpi 5 sensors | grep Core | awk '{print $1 $2 $3}' | cut -c1-15}
${hr 0.3}
/dev/sda: ${execi 60 hddtemp /dev/disk/by-uuid/d6841f29-e39b-4c87-9c52-3a9c3bafe2d3 | cut -c 81-84}
/dev/sdb: ${execi 60 hddtemp /dev/disk/by-uuid/49d1369c-ed70-4543-b0ee-ef65327e101b | cut -c 83-86}
/dev/sdc: ${execi 60 hddtemp /dev/disk/by-uuid/bdf33361-5929-433e-ac7f-1a626aa6e844 | cut -c 78-81}
/dev/sdd: ${execi 60 hddtemp /dev/disk/by-uuid/c722f26d-5c9a-42a9-8c2b-6dbdf926d865 | cut -c 83-86}
/dev/sde: ${execi 60 hddtemp /dev/disk/by-uuid/ca8dbded-819d-4e2b-b017-0981a75ea718 | cut -c 101-104}... instead of what I was using before:
TEMPERATURES
${hr 2}
${execpi 5 sensors | grep Core | awk '{print $1 $2 $3}' | cut -c1-15}
${hr 0.3}
/dev/sda: ${execi 60 hddtemp /dev/sda | cut -c 35-55}
/dev/sdb: ${execi 60 hddtemp /dev/sdb | cut -c 37-57}
/dev/sdc: ${execi 60 hddtemp /dev/sdc | cut -c 32-55}
/dev/sdd: ${execi 60 hddtemp /dev/sdd | cut -c 37-55}
/dev/sde: ${execi 60 hddtemp /dev/sde | cut -c 55-65}Now, independently of changing my fstab to UUID (or not) now conky will run hddtemp on drives by UUID.
Cheers,
A.
How is it that this actually slipped by Torvalds?
Some time ago, the world+dog endlessly busted Torvald's balls because he shouted and cursed a number of dimwitt/AH coders in order to keep a tight ship.
But it does not seem that anyone is saying absolutely anything about this nonsense.
Call me what you will, but I think that if this type of thing is not stopped ASAP, the Linux kernel as we know it will end up going to the dogs.
A.
Hello:
Anyone else read this?
https://www.theregister.co.uk/2020/03/3 … _released/
Actually, nothing much out of the usual but for this exception:
There's also support for the Amazon Echo smart speaker ...
What the *#&%!~ is wrong with the developers who came up with this stupidity?
Is the quarantine affecting them that much?
Does anyone really think it is actually useful to anyone to link your rig to this abomination and wilfully/knowingly set up a huge security risk?
http://theconversation.com/amazon-echos … ngs-130016
Is there a case for using a Alexa craps to remotely control a Linux box/device?
How is it that this actually slipped by Torvalds?
Absolutely uncanny ...
A.
Hello:
Is that at all possible?
Finally found a clue here:
https://askubuntu.com/questions/103913/ … l-commands
The solution is within ~/.bashrc, where you have to edit this section of the script ...
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi... to get this:
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=always'
alias dir='dir --color=always'
alias vdir='vdir --color=always'
alias grep='grep --color=always'
alias fgrep='fgrep --color=always'
alias egrep='egrep --color=always'
alias dmesg='dmesg --color=always'
fiBasically what this is does is generate aliases with the --color=always modifier.
From what I have read in the link, it would seem that the --color= modifier is hard coded into dmesg as well as other utilities.
eg: apparently dir does not have it but ls does.
Cheers,
A.
Hello:
I'll have a good look at that and see if I can replace auto with always.
I have not been able to find out where to change this.
As I have mentioned, the output of dmesg is highlighted but the output of dmesg | grep whatever is not.
As expected, dmesg --color=always | grep whatever is highlighted.
My reasoning is that there is a script or file somewhere that sets dmesg to dmesg --color=auto, otherwise the output would be in the default b+w.
I've looked at the dmesg and terminal-colors.d man files to no avail.
There are references to $XDG_CONFIG_HOME/terminal-colors.d or $HOME/.config/terminal-colors.d to override the global setting but what I would like to is to change the global setting from dmesg --color=auto to dmesg --color=always for all the cli utilities I use, not only dmesg. eg: ls, dir, etc.
It seems that aliases could be generated to do that but I think it would be better to make the change globally.
Is that at all possible?
Thanks in advance,
A.
Hello:
... using the disk UUIDs, (PARTUUIDs) ...
Yes, that did it.
... or using labels ...
That too ...
But then I realised that a label could end up not being as unique as a UUID.
Thanks a lot for your input.
Cheers,
A.
Hello:
I use conky to monitor the temperature of my SAS/SATA drives with this configuration:
TEMPERATURES
${hr 2}
${execpi 5 sensors | grep Core | awk '{print $1 $2 $3}' | cut -c1-15}
${hr 0.3}
/dev/sda: ${execi 60 hddtemp /dev/sda | cut -c 35-55}
/dev/sdb: ${execi 60 hddtemp /dev/sdb | cut -c 37-57}
/dev/sdc: ${execi 60 hddtemp /dev/sdc | cut -c 32-55}
/dev/sdd: ${execi 60 hddtemp /dev/sdd | cut -c 37-55}
/dev/sde: ${execi 60 hddtemp /dev/sde | cut -c 55-65}The readout I get is ...
/dev/sda: 27 C
/dev/sdb: 44 C
/dev/sdc: 50 C
/dev/sdd: 45 C
/dev/sde: 39 CBut everytime I plug in an external drive or a reader, forget to unplug it and reboot, the readout gets mangled as whatever I have plugged in gets assigned one of the already assigned drive letters and scrambling the readout.
It makes me remember that I have left something plugged in but it is a nuisance. =-)
Is there a way to get the system to keep the already assigned drive letters in place and assign vacan ones to whatever gets plugged in?
Thanks in advance,
A.
Hello:
The default is color=auto according to man dmesg.
Thank you for pointing that out in such a gentle manner.
Should know better by now, must make it a point of looking through the man files before asking. =-7
... page also has a section on COLORS ...
I'll have a good look at that and see if I can replace auto with always.
I use rxvt as my terminal and it is able to display colours.
I'll check that out also.
Thanks a lot, you have been very helpful.
Cheers,
A.
Hello:
Thanks for the prompt reply.
... dmesg auto detects whether the output is to the screen or not and turns on colour or not!
There is a switch --color=[auto|always|never], so I think what you need is :-dmesg --color=always | cat
Right ...
That works ...
Using the switch the difference between sudo dmesg | grep whatever and sudo dmesg --color=always | grep whatever is that the highlighting is turned on.
Now, sudo dmesg is always highlighted but not by my using any switch so I guess there is a setting/place where that switch is applied.
Where might that setting be?
Thanks in advance,
A.
Hello:
Sorry for reviving an oldish thread but I just came across your post.
These days I seem to have more time to read unanswered posts .... =-/
One of the things I like of how Devuan ascii is implemented is how console output is highlighted at boot time and when using commands such as dmesg.
Unfortunately, the output of dmesg | grep whatever gets written to the terminal without any highlighting.
Is there a way to fix/change this so that anything printed to the terminal has the same highlighted output/behaves in the same manner, irrespective of whatever comes after the command line instruction?
It would be nice to have it enabled by default.
Thanks in advance,
A.
Hello:
... running awk against them and get 3 both times
... can't see what's going wrong for you.
Hmm ...
I copied and pasted the output from the terminal so I cannot see what happened either.
But you are quite correct:
Running that awk stanza on this specific /var/log/cups/page_log configuration will tally the printed pages correctly.
I summed them up by hand and it checked out. =-)
Turns out that the OEM cartdrige that came with the printer ended up being good for just 362 pages:
groucho@devuan:~/Desktop/awkcups$ awk '/groucho/{pages += $7} END {print pages}' /var/log/cups/page_log
362
groucho@devuan:~/Desktop/awkcups$ I now have to see how to go about trimming the page_log output, no need for all that data.
Thank you (all) very much for your help with this.
Cheers,
A.
Hello:
awk counts words separated by spaces. So as long as the number of pages printed is just a string of digits ...
Yes, but ...
Samsung_M2020_Series groucho 3 [27/Nov/2018:16:41:51 -0300] 1 1 - localhost
Samsung_M2020_Series groucho 3 [27/Nov/2018:16:42:00 -0300] 2 1 - localhost
Samsung_M2020_Series groucho 4 [05/Dec/2018:08:29:39 -0300] 1 1 - localhost
| <- print job page number -> | | <- pages printedIn the example above, we see two print jobs: print job 3 which outputs 1 copy of page 1 and 1 copy of page 2 and print job 4, which outputs 1 copy of page 1.
The awk stanza in my previous post will correctly tally the amount of pages printed, ie: 3 pages.
groucho@devuan:~/Desktop/awkcups$ awk '/groucho/{pages += $7} END {print pages}' /home/groucho/Desktop/awkcups/plog1
3
groucho@devuan:~/Desktop/awkcups$ Now, in a different scenario, where we have two digit print jobs with the rest being the same ...
Samsung_M2020_Series groucho 13 [27/Nov/2018:16:41:51 -0300] 1 1 - localhost
Samsung_M2020_Series groucho 13 [27/Nov/2018:16:42:00 -0300] 2 1 - localhost
Samsung_M2020_Series groucho 14 [05/Dec/2018:08:29:39 -0300] 1 1 - localhost... the awk stanza previously applied gives an incorrect output, ie: 5 pages
groucho@devuan:~/Desktop/awkcups$ awk '/groucho/{pages += $7} END {print pages}' /home/groucho/Desktop/awkcups/pg1log
5
groucho@devuan:~/Desktop/awkcups$ The same problem would arise if a print job is for 20 copies of a single page.
At the risk of stating the obvious, the same awk stanza parses the /var/log/cups/page_log file which (depending on how the printer is used) can have between one and four digits both in the print job number and the number of pages printed. I limit this to four digits because the size of cartdrige 2020W cartdrige won't ever print 9999 pages.
I can't see how to solve this with awk and have searched all over the web for a script to do basic CUPS accounting to no avail.
Thanks for your input.
A.