The officially official Devuan Forum!

You are not logged in.

#926 Re: Installation » 32 bit browser for Devuan 5.10 » 2022-08-17 20:33:24

Hello:

Head_on_a_Stick wrote:

Well that's not right.

But I get this.

~$ sudo apt install firefox-esr/beowulf-security
Reading package lists... Done
Building dependency tree       
Reading state information... Done
firefox-esr is already the newest version (78.15.0esr-1~deb10u1).
Selected version '78.15.0esr-1~deb10u1' (Devuan-Security:3.0.0/oldstable-security [i386]) for 'firefox-esr'
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
~$ 

I have not used Firefox on this rig for two or three years, but I run updates regularly, atb least once every fortnight.
I must be doing something wrong ...  8^º

This is the sources.list file:

# Linux Beowulf 3.0 - i386 
# 20220325 - cleaned up sources list

deb http://deb.devuan.org/merged beowulf main non-free contrib
deb http://deb.devuan.org/merged beowulf-security main contrib non-free
deb http://deb.devuan.org/merged beowulf-updates main contrib non-free
deb http://deb.devuan.org/merged beowulf-backports main contrib non-free
groucho@eee-dev3:~$ 

Thanks for your input.

Best,

A.

#927 Re: Installation » 32 bit browser for Devuan 5.10 » 2022-08-17 14:49:32

Hello:

Thanks for the prompt reply.  8^)

Camtaf wrote:

I have Firefox-esr from the repos on my 32bit Devuan Live install ...

Is it the same version I have installed?
ie: 78.15.0esr

Thanks for your input.

Best,

A.

#928 Installation » 32 bit browser for Devuan 5.10 » 2022-08-17 11:28:25

Altoid
Replies: 14

Hello:

Background
My ISP has been screwing around with the cabling and as a result of whatever they are up to I am (for maybe 72 hrs.?) without web access.

As a result (firmware update?) I have lost access to the ADSL modem's admin -> advanced options settings where I direct it to a Chimaera VM running a PiHole/Unbound recursive DNS in my main box.

The local telco is on a holy war to rip out all the copper lines and get everyone and their dog on fibre manu military and what is happening is part of the pressure on the clients to go along.

Fibre is something I do not want or need as if/when power goes down, there is nowhere to call as the fibre modem goes dead without power.
And without power, there's nothing to charge your phone's battery with after a day or so.

Till this problem gets solved, I am using a slow WiFi on my Asus 1000HE, enabled for me by a neighbour two doors down.
Should the admin lock-out turn out to be permanent, I'll post a question to solve the modem problem on another thread.

Request
For now I need the forum's collective to give me a hand and suggest a viable 32-bit browser for my 1000HE.
The installed browser (have not used it since before the pandemic) is Firefox 78.15.0esr, not the best choice at present.

As we know, Pale Moon stopped the 32-bit versions back in 2020.
The 1000HE is running Devuan 32-bit on a back ported kernel, just like my main box.

~$ uname -a
Linux eee-dev3 5.10.0-0.bpo.15-686-pae #1 SMP Debian 5.10.120-1~bpo10+1 (2022-06-13) i686 GNU/Linux
~$ 

Thanks in advance.

Best,

A.

#929 Re: Installation » Bullseye migration story » 2022-08-04 12:35:07

Hello:

Yes, the problem is almost certainly network interface name.

Hmm ...
Nothing in the release notes about that?  8^°

delgado wrote:

... sometimes it's better to just start fresh.

Granted.

It is much easier, particularly if you have limited Linux experience.
But ...

Check this out:
https://www.theregister.com/2022/07/25/ … _upgraded/

And tell me if anyone can pull that one off with any of the MS OSs .

Best,

O.

#930 Re: Forum Feedback » How about adding Index >> Discuss >> "Init System"? » 2022-08-04 12:23:59

Hello:

dvnUsr wrote:

Please select one of the following ...

I'm not ignoring your post ...   But it does not seem to be a popular destination, so to speak.
But I agree: that particular topic has already been thrashed to death.

Resurrected and then thrashed to death.
Again.

Fortunately and for the time being Devuan is doing quite alright with what the devs and maintainers have on their respective plates, kudos to them.
I say for the time being because in the present situation, nothing is a given.

Keeping Devuan Linux working in spite of the systemd onslaught on the Linux ecosystem takes a lot of work.

That said ...

In my opinion, there's no "Init System" discussion needed.
Besides, it would probably attract the usual pro-systemd crowd.
Not needed either, at least here at Devuan.

What is needed is help in testing and bug reporting when those things arise.

Best,

A.

#931 Desktop and Multimedia » [ANNOUNCE] xorg-server 21.1.4 » 2022-07-13 14:37:14

Altoid
Replies: 0

Hello:

Good to know someone took over at X.Org.

Kudos to Kanapickas!  8^)

---

This release fixes 2 recently reported security vulnerabilities in xkb, several
regressions since 1.20.x and a number of miscellaneous bugs.

Błażej Szczygieł (1):
       present: Check for NULL to prevent crash

Jeremy Huddleston Sequoia (23):
       rootless: Dead code removal (ROOTLESS_REDISPLAY_DELAY is already defined)
       X11Application: Ensure TIS operations are done on the main thread
       os/connection: Improve abstraction for launchd secure sockets
       xquartz: Create a separate category for organizing user preferences
       xquartz pbproxy: Adopt NSUserDefaults+XQuartzDefaults for preferences
       xquartz: Fold spaces related preferences into NSUserDefaults+XQuartzDefaults
       XQuartz: Ensure scroll events are delivered to a single window (not both X11 and AppKit)
       meson: Bump requirement to meson-0.50.0
       xquartz: Update Sparkle configuration to use SUPublicEDKey
       xquartz: Update copyright for 2022
       meson: Provide options to set CFBundleVersion and CFBundleVersionString in XQuartz
       Revert "meson: Bump requirement to meson-0.50.0"
       xquartz: Update autotools-based builds of XQuartz to account for recent changes
       print_edid: Fix a format string error
       xf86-input-inputtest: Fix build on systems without SOCK_NONBLOCK
       tests: Fix build failure from missing micmap.c
       meson: Support building Xnest and Xorg on darwin
       XQuartz: Build the bundle trampoline when using meson
       XQuartz: Add TCC reason keys to Info.plist
       xquartz: Use correct defines when building to support Sparkle updates
       xquartz: Fix a possible crash when editing the Application menu due to mutaing immutable arrays
       XQuartz: Improve type safety for X11Controller's application menu editor
       xquartz: Add missing files to distribution tarball

Olivier Fourdan (1):
       render: Fix build with gcc 12

Peter Hutterer (3):
       xkb: switch to array index loops to moving pointers
       xkb: swap XkbSetDeviceInfo and XkbSetDeviceInfoCheck
       xkb: add request length validation for XkbSetGeometry

Povilas Kanapickas (5):
       Revert "os: Try to discover the current seat with the XDG_SEAT var first"
       dix: Correctly save replayed event into GrabInfoRec
       dix: Don't send touch end to clients that do async grab without touches
       xfree86: Fix event data alignment in inputtest driver
       xserver 21.1.4

Samuel Thibault (1):
       xkb: fix XkbSetMap when changing a keysym without changing a keytype

git tag: xorg-server-21.1.4

https://xorg.freedesktop.org/archive/in … 1.4.tar.gz
SHA256: cbd5a1f75881e8a341823e51e489281aee0912c7023b4eed170b26b18f617e36  xorg-server-21.1.4.tar.gz
SHA512: 6e15d5c7f2a63f72688d3b04c3493271f419a69ce4b0c412a14293c40463733e050beb594689f27e5048b2356ce8f5b84aae96dad4a422054b36393d2f3d1847  xorg-server-21.1.4.tar.gz
PGP:  https://xorg.freedesktop.org/archive/in … tar.gz.sig

https://xorg.freedesktop.org/archive/in … 1.4.tar.xz
SHA256: 5cc4be8ee47edb58d4a90e603a59d56b40291ad38371b0bd2471fc3cbee1c587  xorg-server-21.1.4.tar.xz
SHA512: eb5b8520d02908f72719e6ecfbf7a9bf139acb65ccae04d1db4223a8a2384cd3a94bd5afef10cce327b751b800cc2b79bfaa5ae35c95c3a217f775168082e68f  xorg-server-21.1.4.tar.xz
PGP:  https://xorg.freedesktop.org/archive/in … tar.xz.sig

---

Best,

O.

#932 Desktop and Multimedia » X.Org Security Advisory: July 12, 2022 » 2022-07-13 14:35:25

Altoid
Replies: 0

Hello:

Good to know someone took over at X.Org.
Kudos to Kanapickas!  8^)

Just received this in my mbox:

---

X.Org Security Advisory: July 12, 2022

Multiple input validation failures in X server extensions
=========================================================

All theses issues can lead to local privileges elevation on systems
where the X server is running privileged and remote code execution for
ssh X forwarding sessions.

* CVE-2022-2319/ZDI-CAN-16062: X.Org Server ProcXkbSetGeometry Out-Of-Bounds
Access

The handler for the ProcXkbSetGeometry request of the Xkb extension does
not properly validate the request length leading to out of bounds memory
write.

* CVE-2022-2320/ZDI-CAN-16070: X.Org Server ProcXkbSetDeviceInfo Out-Of-Bounds
Access

The handler for the ProcXkbSetDeviceInfo request of the Xkb extension
does not properly validate the request length leading to out of bounds
memory write.

Patches
-------

Patches for this issues have been committed to the xorg server git
repository. xorg-server 21.1.4 will be released shortly and will
include these patches.

commit 6907b6ea2b4ce949cb07271f5b678d5966d9df42

     xkb: add request length validation for XkbSetGeometry
     
     No validation of the various fields on that report were done, so a
     malicious client could send a short request that claims it had N
     sections, or rows, or keys, and the server would process the request
     for N sections, running out of bounds of the actual request data.
     
     Fix this by adding size checks to ensure our data is valid.
     
     Fixes ZDI-CAN 16062, CVE-2022-2319.
     
     This vulnerability was discovered by:
     Jan-Niklas Sohn working with Trend Micro Zero Day Initiative

commit dd8caf39e9e15d8f302e54045dd08d8ebf1025dc

     xkb: swap XkbSetDeviceInfo and XkbSetDeviceInfoCheck
     
     XKB often uses a FooCheck and Foo function pair, the former is
     supposed to check all values in the request and error out on
     BadLength, BadValue, etc. The latter is then called once we're
     confident the values are good (they may still fail on an individual
     device, but that's a different topic).
     
     In the case of XkbSetDeviceInfo, those functions were incorrectly
     named, with XkbSetDeviceInfo ending up as the checker function and
     XkbSetDeviceInfoCheck as the setter function. As a result, the setter
     function was called before the checker function, accessing request
     data and modifying device state before we ensured that the data is
     valid.
     
     In particular, the setter function relied on values being already
     byte-swapped. This in turn could lead to potential OOB memory access.
     
     Fix this by correctly naming the functions and moving the length checks
     over to the checker function. These were added in 87c64fc5b0 to the
     wrong function, probably due to the incorrect naming.
     
     Fixes ZDI-CAN 16070, CVE-2022-2320.
     
     This vulnerability was discovered by:
     Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
     
     Introduced in c06e27b2f6fd9f7b9f827623a48876a225264132

Backporting of the security fixes also needs this commit:
f1070c01d616c5f21f939d5ebc533738779451ac.

Thanks
======

The vulnerabilities have been discovered by Jan-Niklas Sohn working with
Trend Micro Zero Day Initiative and fixed by Peter Hutterer.

--
Povilas Kanapickas

-----

Best,

O.

#933 Re: Other Issues » [Ceres] Virtualbox Issues » 2022-07-10 19:18:08

Hello:

For whatever it may be worth, on my main box I run Devuan Beowulf on a backported kernel:

user@devuan:~$ uname -a
Linux devuan 5.10.0-0.bpo.12-amd64 #1 SMP Debian 5.10.103-1~bpo10+1 (2022-03-08) x86_64 GNU/Linux
user@devuan:~$ 

And I have VirtualBox 6.1.34 running a headless Chimaera VM running PiHole 5.90 and a recursive DNS server:

user@devuan:~$ vboxmanage --version
6.1.34r150636
user@devuan:~$ 
user@chimaera:~$ uname -a
Linux chimaera 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
user@chimaera:~$ 

So my guess is that 5.10 is not a problem.
I guess it may be an issue with the kernel you are using and VM support for that kernel. (?)

Best,

A.

#934 Re: Off-topic » Solstice greetings to everyone! » 2022-06-22 17:11:20

Hello:

golinux wrote:

Celebrate the light as it begins to turn to darkness . . .

Indeed ...

For me, yesterday was the shortest day of the year and last night was the longest one.  8^/
The good thing is that, from today onwards, days will be gradually getting <i>longer/i>.

It seems to me that few people reflect on the fact that we know that light is what it is because of the existence of darkness.
Works the other way around, obviously.

In any case, it's all about the balance of the cosmos.

Best,

A.

#935 Re: Desktop and Multimedia » How reduce starting Xorg time? » 2022-06-14 01:38:02

Hello:

alexkemp wrote:

... means that even if you currently have a working system, at some point something will upgrade ...

+1

Exactly the case with my Nvidia 340XX legacy cards with (up to now) no chimaera drivers.
The same thing happened with my Matrox cards a few years ago.

So ...
Then it was no more Matrox, ever.
And as of this year, it is no more Nvidia, ever.

If and when I need to get new cards, they will be AMD.

alexkemp wrote:

... cannot fix stupidity. Learn your lesson, sigh & walk away.

Quite so.

Best,

A.

#936 Hardware & System Configuration » Linux malware - possibly undetectable? » 2022-06-11 11:05:05

Altoid
Replies: 2

Hello:

Found this early today.

---
Symbiote Linux malware spotted, and infections are 'very hard to detect'
'Performing live forensics on an infected machine may not turn anything up' warn researchers
---

https://forums.theregister.com/forum/al … x_malware/

Anyone know about this?

Best,

A.

#937 Re: Installation » [SOLVED] Where did obmenu go? » 2022-05-31 12:12:07

Hello:

I've been following this thread as I have a parallel Devuan Beowulf setup on another drive which I keep up to date.
It is a practise bed for when I finally leave Xfce behind and go to a 100% Openbox setup.
I'd like to recover the best part of my old #! Waldorf installation.

xinomilo wrote:

there's also rofi, dmenu replacement ...

Seems that this app (just from reading about it) suffers from what I have seen in many other applications: feature creep.
Why can't things go back to the tried and true do one thing and do it well and just not complicate things?

I like how obmenu works and not getting it in chimaera is yet another reason to keep using beowulf with a backported kernel.
slim and wicd my other ones.

Of course, YMMV.

Best,

A.

#938 Off-topic » Interesting news » 2022-05-25 18:48:06

Altoid
Replies: 2

Hello:

Saw this early today:

Liam Proven@theregister.com wrote:

Original killer PC spreadsheet Lotus 1-2-3 now runs on Linux natively
As Google guru who ported it points out, the operating system did not exist when 1-2-3 came out in 1983

See:
https://www.theregister.com/2022/05/25/ … x_appears/

And:
https://lock.cmpxchg8b.com/linux123.html

I used it everyday many years ago at work, till DOS got killed and W3.10 was installed on the few available PCs.

Maybe it is finally gettings it's dues?   8^D!

A.

#939 Re: Installation » [SOLVED] any chances to install nvidia-legacy-340xx on Devuan chimaera? » 2022-05-18 20:51:32

Hello:

Len E. wrote:

... a post by a Ubuntu specialist, enigma9o7 on how to compile an
nvidia-legacy-304xx driver straight from Nvidia for Ubuntu 18.04.

Thank you.  8^)

Len E. wrote:

... description for version 340.107 states that the driver does
work for xorg-xserver-1.20.

At the moment my box runs beowulf on a backported kernel ...

~$ uname -a
Linux devuan 5.10.0-0.bpo.12-amd64 #1 SMP Debian 5.10.103-1~bpo10+1 (2022-03-08) x86_64 GNU/Linux
~$ 

... and xorg-xserver-1.20:

~$ cat /var/log/Xorg.0.log
[    33.934] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[    33.935] Build Operating System: Linux 5.10.0-10-amd64 x86_64 Debian
[    33.935] Current Operating System: Linux devuan 5.10.0-0.bpo.12-amd64 #1 SMP Debian 5.10.103-1~bpo10+1 (2022-03-08) x86_64
--- snip ---

Maybe the issue is just with 5.4 kernels.
ie: 5.4 included.

Len E. wrote:

... driver does not work on kernels newer than 5.4.

I don't think I'm up to using anything other than the official Devuan kernels.

Len E. wrote:

... before invoking the Nvidia installer, for the XFCE desktop, disable the compositor.

Yes.

The XFCE compositor is a PITA, screws up many things.
Has been a problem for quite a while but the devs/maintainers have taken no steps to fix it.
The old let's wait for the new release song and dance while putting the blame on something else.

So I'm slowly but steadily heading towards Openbox as the XFCE 4.16 and it's path to 5.x does not look too bright.

See:
https://forum.xfce.org/viewtopic.php?pid=56141#p56141
https://forum.xfce.org/viewtopic.php?pid=56143#p56143
https://forum.xfce.org/viewtopic.php?pid=56144#p56144

Thank you very much for taking the time to write this up.
I'll just stay with the backported beowulf kernel for the time being.

*************
Edit:

Given that the proposed solution involves downgrading the kernel (ie: to a pre 5.4 kernel) it would seem that it is not a suitable one.
At least, not a suitable answer to the OP's question: install nvidia-legacy-340xx drivers on Devuan chimaera.

This thread has had 2K views, so it's evidently of some interest to many.
ie: not a unique/one off setting.

From where I am seeing it, it should not be marked as solved.
But it's the admins say that counts.

*************

Maybe the Ubuntu people will get the chaps at Debian to do something about this Nvidia problem.
Maybe not, we'll see.

But I'm not giving up my video cards again.

Best,

A.

#940 Re: Installation » [SOLVED] any chances to install nvidia-legacy-340xx on Devuan chimaera? » 2022-05-18 11:17:01

Hello:

@deepforest:

Len E. wrote:

... it's not clear whether you've found a satisfactory solution or not.

Yes, same here.

Thanks to HevyDevy* I managed to set up the legacy 340xx drivers on beowulf and posted the terminal printout of the process.
It works with beowulf but I don't know if it will work with chimaera.

See: https://dev1galaxy.org/viewtopic.php?pid=24694#p24694
Did it work for you?
Did you have to do anything differently?

* it seems that there is a HevyDevy and a hevidevi ...
One and the same maybe?

@Len E.

Len E. wrote:

... have an idea on how to do the installation ...
... won't burden you with the details ...

Please do share your solution with the forum.
Not a burden, many of us are in the same leaky Nvidia boat so all data is useful

I for one am not expecting much from nouveau and won't touch wayland.
Nvidia has recently released some source code but they did not include the source files to the 340XX blob.

Those cards are not manufactured any more so I can't see the reason for not releasing the source.
But Nvidia is Nvidia ... 8^|

I refuse to ditch a pair of perfectly working and quite suitable FX-580 Quadro cards for the lack of decent Linux drivers.
I already went through that a few years ago with a pair of Matrox G450s so if needed I'll just stay on beowulf.

A step-by-step terminal printout of the installation process like the one I posted would be of great help.

Thanks in advance.

Best,

A.

#941 Re: Other Issues » [SOLVED] Script printout format assistance » 2022-05-15 10:38:46

Hello:

ralph.ronnquist wrote:

... possibly the MemAvailable measure has lost ...

I had the exact same thought when I first saw the printout.
But no, it is correct.

The thing is that the /proc/meminfo list prints like this ...

root@OpenWrt:~# cat /proc/meminfo
MemTotal:         251868 kB
MemFree:          222268 kB
MemAvailable:     208408 kB
--- snip ---

... which makes sense as they are usually progressively declining values.
ie: as I understand it (?) total will always be higher than free which will be equal to or higher than available due to buffers, cached, etc. This when swap is not part of the equation as it adds to the available memory.

I think the confusion arises because I put them the wrong way around.
ie: instead of how they are originally listed.

Now it looks like it makes sense:

~$ ssh user@192.168.1.3
--- snip ---
uptime:		32 min
ui:		inactive
daemon:		running
mem free:	222312 kB
mem available:	208392 kB
sda1 free/used:	  3.6M  53%
sda3 free/used:	362.6G  58%
hd temp:	36°C
~# 

Thank you for pointing that out.

Best,

A.

#942 Re: Other Issues » [SOLVED] Script printout format assistance » 2022-05-15 10:12:57

Hello:

Head_on_a_Stick wrote:
printf '%s\t%s\n' "hd temp:" "${_drive_temp}°C"

Done.

~$ ssh user@192.168.1.3
--- snip ---
uptime:		9 min
ui:		inactive
daemon:		running
mem available:	208392 kB
mem free:	222252 kB
sda1 free/used:	  3.6M  53%
sda3 free/used:	362.6G  58%
hd temp:	26°C
~$ 
Head_on_a_Stick wrote:

I prefer Kelvin.

Cool!  8^D

Thank you for your input.

Best,

A.

#943 Re: Other Issues » [SOLVED] Script printout format assistance » 2022-05-14 21:17:08

Hello:

Altoid wrote:

... check it out ...
... report back as soon as I figure out ...

It took me a while, eventually got a decent result.
Trimmed it a bit so that what I get is just the essential information.

This:

#!/bin/sh
PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin"

# \t adds tab characters
# \n adds new lines
# %s defines strings which are listed afterwards
# awk can search so no need for grep

_uptime=$(uptime| sed 's/.*up \([^,]*\), .*/\1/')
_rsync_status=$(sudo /etc/init.d/rsyncd status)                   # OK needs root x ash
_memavail=$(grep -i memavailable /proc/meminfo | cut -c 19-27)    # OK no cats harmed
_memfree=$(grep -i memfree /proc/meminfo | cut -c 19-27)          # OK no cats harmed
_fs_status1=$(df -h | grep -vE '^Filesystem|/dev/root|tmpfs' | cut -c 6-70 | grep -i sda1 | cut -c 40-50)
_fs_status2=$(df -h | grep -vE '^Filesystem|/dev/root|tmpfs' | cut -c 6-70 | grep -i sda3 | cut -c 40-50)
_drive_temp=$(sudo smartctl -a -d ata /dev/sda | awk '/Temperature/ {print $10}')

printf '%s\t\t%s\n' "uptime:" "$_uptime"           # OK
printf '%s\t\t%s\n' "daemon:" "$_rsync_status"     # OK
printf '%s\t%s\n' "mem available:" "$_memavail"    # OK
printf '%s\t%s\n' "mem free:" "$_memfree"          # OK
printf '%s\t%s\n' "sda1 free/used:" "$_fs_status1" # OK
printf '%s\t%s\n' "sda3 free/used:" "$_fs_status2" # OK
printf '%s\t' "hd temp:" "$_drive_temp"            # OK

Gets me this when I ssh to the NAS:

~$ ssh user@192.168.1.3
--- snip ---
uptime:		 2:34
daemon:		running
mem available:	210064 kB
mem free:	226420 kB
sda1 free/used:	  3.6M  53%
sda3 free/used:	362.6G  58%
hd temp:	48	
~$ 

Seems good enough and the info is there.
Could not figure out how to get the °C after the temperature [number] print but it is just for me.
And I've been a Celsius man all my life. =^ )

Your pointers on lines, characters and strings were a big help.

Best,

A.

Edit: spelling/format.

#944 Re: Other Issues » [SOLVED] Script printout format assistance » 2022-05-12 20:17:22

Hello:

Head_on_a_Stick wrote:
#!/bin/sh
_uptime=$(uptime|cut -c 2-19)
_rsync_status=$(/etc/init.d/rsyncd status) # does not need root!
_memavail=$(grep -i memavailable /proc/meminfo) # save those poor cats!
_memfree=$(grep -i memfree /proc/meminfo) # ditto
_fs_status=$(df -h|awk '/^Filesystem/||/\/dev\/root/||/tmpfs/{ print $5 " " $1}') # awk can search so no need for grep
_drive_temp=$(sudo smartctl -d ata -A /dev/sda | grep Temperature | cut -c 5-8,87-89) 

printf '%s\t\t%s\n\n' "uptime:" "$_uptime" # \t adds tab characters, \n adds new lines, %s defines strings which are listed afterwards

printf '%s\t%s\n\n' "rsync daemon status:" "$_rsync_status"

printf '%s\n%s\n%s\n\n' "memory status:" "$_mem_avail" "$_mem_free"

printf '%s\t%s\n\n' "filesystem status:" "$_fs_status" # might not work :/

printf '%s\t%s\n' "drive temperature" "$_drive_temp"

Right ...

I'll check it out tonight and report back as soon as I figure out how it works.

Head_on_a_Stick wrote:

... trapped in Windows atm ...

You'll manage.  ;^ )

Head_on_a_Stick wrote:

... post back later when I'm in a proper OS...

Thank you for your input.

Best,

A.

#945 Other Issues » [SOLVED] Script printout format assistance » 2022-05-12 14:06:30

Altoid
Replies: 7

Hello:

I have this script running on ssh login:

#!/bin/sh
PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin"
echo uptime:
# run uptime - no load stats
uptime | cut -c 2-19
echo
echo rsync daemon status:
# run alias daemon
sudo /etc/init.d/rsyncd status
echo
echo memory status:
cat /proc/meminfo | grep -i memavailable && cat /proc/meminfo | grep -i memfree
echo
echo filesystem status:
# run alias fschk
df -h | grep -vE '^Filesystem|/dev/root|tmpfs'| awk '{ print $5 " " $1}'
echo
echo drive temperature:
# run alias tempchk
sudo smartctl -d ata -A /dev/sda | grep Temperature | cut -c 5-8,87-89
echo
echo filesystem health:
# run alias drivechk
sudo dmesg | grep -i ext4-fs | grep -i sda

This is the terminal printout:

uptime:
10:46:23 up 0 min,

rsync daemon status:
running

memory status:
MemAvailable:      211716 kB
MemFree:           228924 kB

filesystem status:
53% /dev/sda1
58% /dev/sda3

drive temperature:
Temp 22

How can I get it to print out in this format?

uptime:              10:46:23 up 0 min,

rsync daemon status: running

memory status:
MemAvailable:        211716 kB
MemFree:             228924 kB

filesystem status:   53% /dev/sda1
                     58% /dev/sda3

drive temperature:   Temp 22

Thanks in advance.

Best,

A.

Edit: spelling

#946 Re: Hardware & System Configuration » [SOLVED] sudoers file for 'service' » 2022-05-07 18:05:07

Hello:

Head_on_a_Stick wrote:

... completely off-topic for these boards ...
... your continued posting of OpenWRT-related issues on these boards is starting to look like spam.

Hmm ...
spam? 8^D !

merriamwebstwee.com wrote:

spam: noun
unsolicited usually commercial messages (such as emails, text messages, or Internet postings) sent to a large number of recipients or posted in a large number of places

Before I say anything else, I want to say this: I value your opinions, expertise and the help provided to me more than once.
But it seems to me that you are overreacting.

In doing so you are not being rude but much worse than that: you are out of place.
Please don't take my observation personally for it is not personal.

Bear in mind that although my questions do have a relationship to OpenWRT, you may want to consider that although it is not Devuan, both distributions share 1. that they are Linux and 2. they do not use systemd.

And most importantly, my questions are related to uses/tools which are common to both of them.

That said, I'll leave this for the Dev1 admins to opine on and will abide by whatever they decide on the matter.

-------
Edit:

In case you or anyone else is interested, I found a solution to the question with which I started this thread.
Using common Linux tools.

~$ sudo /etc/init.d/rsyncd status
running
~$

Added another line to /etc/profile.d/custom.sh: alias daemon="sudo /etc/init.d/rsyncd status"

And that was it.

~$ daemon
running
~$

The daemon alias will be part of a script which will run anytime I ssh into the NAS and provide me at a glance with basic stats I want to know when I check on it.
-------

Thank you for your input.

Best,

A.

#947 Re: Hardware & System Configuration » [SOLVED] sudoers file for 'service' » 2022-05-07 12:17:04

Hello:

Head_on_a_Stick wrote:

... will show a (colon-separated) list ...
... run that command from OpenWRT then it will probably not have /usr/sbin/ listed ...

But it does:

groucho@OpenWrt:~$ echo $PATH
/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
groucho@OpenWrt:~$ 
Head_on_a_Stick wrote:

... ask on the OpenWRT forums instead.

I always look for answers in search engine/s, then here and then elsewhere. In that order.  8^ ) 
After all OpenWRT is just Linux in a very compact package to fit in embedded systems.

But you have to coax it to do regular Linux things, like adding users and sudoers.d files.
There's always something new to learn.

Head_on_a_Stick wrote:

... not think to try ...

Of course.

:~$ /usr/sbin/service rsyncd status
-ash: /usr/sbin/service: not found
:~$ 
:~# /usr/sbin/service rsyncd status
-ash: /usr/sbin/service: not found
:~# 

But ...

:~# service rsyncd status
running
:~# 

The thing is that the stanza service rsyncd status is not validated by visudo which needs to see a path.
I think this may be related to BusyBox.

Thanks a lot for your input.

Best,

A.

#948 Re: Hardware & System Configuration » [SOLVED] sudoers file for 'service' » 2022-05-07 01:22:55

Hello:

ralph.ronnquist wrote:

... you (again?)

Yes, always ...  8^D

ralph.ronnquist wrote:

... confused by groucho not having /usr/sbin in PATH (and not /sbin).

Hmm ...
I'm sorry, I think I am being confusing.

The example I show previously is how I run dmesg as sudo in both my main Devuan box and the NAS.
Both my main Devuan box and the NAS have only root and my user (groucho) so it does not matter much.
But you are right, got to fix that.

Now, in my Devuan box, I can find service:

[root@devuan ~]# which service
/usr/sbin/service
[root@devuan ~]# 

But not in my NAS:

root@OpenWrt:~# which service
root@OpenWrt:~# 
root@OpenWrt:~# /usr/bin/service
-ash: /usr/bin/service: not found
root@OpenWrt:~# 

That said, I have not been able to find an example of a sudoers file for this on the web.

Thanks for your input.

Best,

A.

#949 Hardware & System Configuration » [SOLVED] sudoers file for 'service' » 2022-05-06 23:01:23

Altoid
Replies: 6

Hello:

When I need to check the status of a service in a Linux box I use this command as root:

:~# service rsyncd status
running
:~# 

If I want to do this as a user instead of being root, I'd generate a specific sudoers file to add to /etc/sudoers.d.

Like this one I use to run dmesg:

:~$ sudo cat /etc/sudoers.d/user_dmesg
groucho ALL = NOPASSWD:/bin/dmesg 
:~$ 

This because I am convinced that the use of sudo, like a few other things in life, needs to be under check.

I'm at odds with it and can't find a way to get a users_service file that works.
I'd appreciate some help with that.

Thanks in advance,

A.

#950 Re: Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-03 13:40:45

Hello:

Head_on_a_Stick wrote:

Sorry, that should have been ...

No worries whatsoever, HoaS.  ;^ )

Thanks (again) for your input.

Best,

A.

Board footer

Forum Software