The officially official Devuan Forum!

You are not logged in.

#926 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.

#927 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.

#928 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.

#929 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.

#930 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.

#931 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.

#932 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.

#933 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.

#934 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.

#935 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.

#936 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

#937 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.

#938 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.

#939 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.

#940 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.

#941 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.

#942 Re: Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-03 11:49:43

Hello:

alexkemp wrote:

... question of mixing amd64 & i386?

Really cannot say for sure.

What I can say is that ~$ apt list | grep installed | grep i386 shows me a list of 203 files.
ie: if I managed to count correctly at this hour.

Save these 10, all the rest are lib***:

~$ apt list | grep installed | grep i386 | more
elogind/oldstable,now 241.4-2 i386 [installed,automatic]
gcc-6-base/now 6.3.0-18+deb9u1 i386 [installed,local]
gcc-8-base/oldstable,now 8.3.0-6 i386 [installed,automatic]
gstreamer1.0-plugins-base/oldstable,oldstable-security,now 1.14.4-2+deb10u1 i386 [installed,automatic]
--- snip ---
mesa-va-drivers/oldstable,now 18.3.6-2+deb10u1 i386 [installed]
mesa-vdpau-drivers/oldstable,now 18.3.6-2+deb10u1 i386 [installed,automatic]
ocl-icd-libopencl1/oldstable,now 2.2.12-2 i386 [installed,automatic]
vdpau-driver-all/oldstable,now 1.1.1-10 i386 [installed,automatic]
wine32/oldstable,now 4.0-2 i386 [installed,automatic]
zlib1g/oldstable-security,now 1:1.2.11.dfsg-1+deb10u1 i386 [installed,automatic]
~$

Of the whole of them, 183 were installed,automatic while only 2 were installed,local.

~$ apt list | grep installed | grep i386 | grep local | more
gcc-6-base/now 6.3.0-18+deb9u1 i386 [installed,local]
libicu57/now 57.1-6+deb9u4 i386 [installed,local]
~$ 

This leaves 17 that are just [installed].
ie: not [automatic] or [local].

There's probably a way to see what pulled these i386 file in.
One application that comes to mind is wine.

Hope it clears up something.

Best,

A.

#943 Re: Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-03 07:58:57

Hello:

Head_on_a_Stick wrote:

Use apt install --target beowulf-backports rsync libzstd.

No, seems it would not work.

groucho@devuan:~$ sudo apt install --target beowulf-backports rsync libzstd
--- snip ---
E: Command line option --target is not understood in combination with the other options
groucho@devuan:~$ 

I use aptitude very little, usually with the why option.

Thanks for your input.

Best,

A.

#944 Re: Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-03 07:54:39

Hello:

ralph.ronnquist wrote:

Perhaps you'll need to upgrade the i386 version at the same time, by adding libzstd1:i386/beowulf-backports to the install line?

That would seem to do the trick:

groucho@devuan:~$ sudo apt install rsync/beowulf-backports libzstd1/beowulf-backports libzstd1:i386/beowulf-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '3.2.3-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [amd64]) for 'rsync'
Selected version '1.4.4+dfsg-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [amd64]) for 'libzstd1'
Selected version '1.4.4+dfsg-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [i386]) for 'libzstd1:i386'
The following additional packages will be installed:
  libxxhash0
Suggested packages:
  openssh-server
The following NEW packages will be installed:
  libxxhash0
The following packages will be upgraded:
  libzstd1 libzstd1:i386 rsync      # <- what was needed  
3 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.    # <- nothing removed
Need to get 840 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
groucho@devuan:~$ 

I'll try that and report later.

Edit:
Minutes later ...

:~$ rsync -V
rsync  version 3.2.3  protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, atimes,
    batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
    symtimes, prealloc, stop-at, no crtimes
Optimizations:
    SIMD, asm, openssl-crypto
Checksum list:
    xxh64 (xxhash) md5 md4 none
Compress list:
    zstd lz4 zlibx zlib none
--- snip ---
:~$ 

Now the Devuan and OpenWRT versions of rsync match.

Thanks for your input.

Best,

A.

#945 Re: Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-03 01:05:37

Hello:

Altoid wrote:

Or am I missing something?

Just to check, I thought maybe it was a question of installing libzstd1 1.4.4+dfsg-3~bpo10+1 as libzstd1 1.3.8+dfsg-3+deb10u2 was already installed.
ie: for some reason not being updated and be specifically installed from beowulf-backports.

But when I tried I got this huge list of files that are no longer required/removed:

:~$ sudo apt install libzstd1/beowulf-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Selected version '1.4.4+dfsg-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [amd64]) for 'libzstd1'

The following packages were automatically installed and are no longer required:
gstreamer1.0-plugins-base:i386  libaom0:i386  libavresample4:i386  libavutil56:i386
libblkid1:i386  libcairo2:i386  libcapi20-3:i386  libcdparanoia0:i386  libcodec2-0.8.1:i386
libcroco3:i386  libcrystalhd3:i386  libdatrie1:i386  libexif12:i386  libfontconfig1:i386
libfreetype6:i386  libfribidi0:i386  libgcrypt20:i386  libglib2.0-0:i386  libgomp1:i386
libgpg-error0:i386  libgphoto2-port12:i386  libgpm2:i386  libgraphite2-3:i386  libgsm1:i386
libgstreamer-plugins-base1.0-0:i386  libgstreamer1.0-0:i386  libharfbuzz0b:i386  
libicu63:i386  libjack-jackd2-0:i386  libmount1:i386  libmp3lame0:i386  libncurses6:i386
libnuma1:i386  libopenjp2-7:i386  libopus0:i386  liborc-0.4-0:i386  libpango-1.0-0:i386  
libpangocairo-1.0-0:i386  libpangoft2-1.0-0:i386  libpixman-1-0:i386  libpng16-16:i386  
libsamplerate0:i386  libsdl2-2.0-0:i386  libshine3:i386  libsnappy1v5:i386  libsoxr0:i386
libspeex1:i386  libswresample3:i386  libthai0:i386  libtheora0:i386  libtwolame0:i386
libusb-1.0-0:i386  libv4l-0:i386  libv4lconvert0:i386  libva-drm2:i386  libva-x11-2:i386
libvdpau-va-gl1:i386  libvdpau1:i386  libvisual-0.4-0:i386  libvkd3d1:i386  libvpx5:i386 
libvulkan1:i386  libwavpack1:i386  libwayland-client0:i386  libwayland-cursor0:i386
libwayland-egl1:i386  libwebp6:i386  libwebpmux3:i386  libx264-155:i386  libx265-165:i386
libxcb-render0:i386  libxcb-shm0:i386  libxcomposite1:i386  libxcursor1:i386  libxinerama1:i386
libxkbcommon0:i386  libxml2:i386l  ibxpm4:i386  libxrandr2:i386  libxrender1:i386
libxslt1.1:i386  libxss1:i386  libxvidcore4:i386  libzvbi0:i386  mesa-vdpau-drivers:i386
ocl-icd-libopencl1:i386  vdpau-driver-all:i386

Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:
libasound2-plugins:i386
libavcodec58:i386
libgd3:i386
libgdk-pixbuf2.0-0:i386
libgphoto2-6:i386
librsvg2-2:i386
librsvg2-common:i386
libtiff5:i386
libwine:i386
libzstd1:i386
wine32:i386

The following packages will be upgraded:
libzstd1
1 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.

Need to get 249 kB of archives.
After this operation, 241 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
:~$ 

The first thing I notice is that they are all :i386 but I'm not sure of the consequences.
What were they for in the first place?

I'd appreciate an opinion.

Thanks in advance.

Best,

A.

#946 Hardware & System Configuration » [SOLVED] Backported package install with unmet dependency » 2022-05-02 23:23:12

Altoid
Replies: 9

Hello:

My NAS running OpenWRT uses rsync version 3.2.3  protocol version 31 and my Devuan running with a backported kernel uses rsync version 3.1.3  protocol version 31.

beowulf-backports has rsync version 3.2.3-3~bpo10+1, which would be a match.

This is what I get when I try to install it:

:~$ sudo apt install rsync/beowulf-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Selected version '3.2.3-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [amd64]) for 'rsync'
Selected version '1.4.4+dfsg-3~bpo10+1' (Devuan Backports:3.0.0/oldstable-backports [amd64]) for 'libzstd1' because of 'rsync'

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

The following information may help to resolve the situation:
The following packages have unmet dependencies:
rsync : Depends: libzstd1 (>= 1.4.4+dfsg-3~bpo10+1) but 1.3.8+dfsg-3+deb10u2 is to be installed
E: Unable to correct problems, you have held broken packages.
:~$ 

So ...
Does this mean that I cannot install it because beowulf-backports has libzstd1 1.3.8+dfsg-3+deb10u2 and not 1.4.4+dfsg-3~bpo10+1?
Or am I missing something?

Thanks in advance.

Best,

A.

#947 Re: Hardware & System Configuration » [SOLVED] rsyncd - permission issue » 2022-05-01 02:16:56

Hello:

You were on the right track.
Just before dinner I was able to solve the problem via an answer to a post at Stack Exchange.

The problem was in the path for the module/s: it was missing the lowest level.

I had this:

[stuff]
--- snip ---
path = /mnt/sda3
--- snip ---

But it should have been this:

[stuff]
--- snip ---
path = /mnt/sda3/stuff
--- snip ---

ie: /mnt/sda3/stuff instead of /mnt/sda3

After I fixed it and rsync was working properly, I am getting a ~19MiB transfer rate.
It is not much to write about as this NAS would get 2x that with the original firmware, but ~2.5x what I was getting via ssh.

Thank you very much for your input.

Best,

A.

#948 Re: Hardware & System Configuration » [SOLVED] rsyncd - permission issue » 2022-04-30 16:59:54

Hello:

chris2be8 wrote:

First try ls -ld /stuff on groucho (I suspect you are trying to access a dir in the root directory). If it looks as if the ID should be able to write there then try touch /stuff/test1 as that ID to make sure.

I may be confusing you as my user groucho gets used everywhere.

My Devuan box:

groucho@devuan:~$ ls -ld /media/
drwxr-xr-x 8 root root 4096 Mar 16 16:38 /media/
groucho@devuan:~$ 

groucho@devuan:~$ ls -ld /media/stuff
drwxr-xr-x 25 groucho groucho 4096 Apr 28 07:32 /media/stuff
groucho@devuan:~$ 

groucho@devuan:~$ touch /media/stuff/test1 

groucho@devuan:~$ ls -ld /media/stuff/test1 
-rw-r--r-- 1 groucho groucho 0 Apr 30 13:42 /media/stuff/test1
groucho@devuan:~$ 

The NAS:

groucho@OpenWrt:~$ ls -ld /mnt/sda3
drwxr-xr-x    5 root     root          4096 Apr 28 17:53 /mnt/sda3
groucho@OpenWrt:~$

groucho@OpenWrt:~$ ls -ld /mnt/sda3/stuff
drwxrwxrwx    2 groucho  groucho       4096 Apr 29 18:47 /mnt/sda3/stuff
groucho@OpenWrt:~$

groucho@OpenWrt:~$ touch /mnt/sda3/stuff/test1

groucho@OpenWrt:~$ ls -ld /mnt/sda3/stuff/test1
-rw-r--r--    1 groucho  groucho          0 Apr 30 13:44 /mnt/sda3/stuff/test1
groucho@OpenWrt:~$ 
chris2be8 wrote:

... then try rsync -av /media/stuff/firefox.oldfile  rsync://groucho@192.168.1.3:stuff (assuming stuff is in your home dir on groucho).

No.
The /home/groucho dir on the NAS is very limited, just for admin use.
Actually, OpenWRT (mostly used in routers) by default only has root access, no users.

The /mnt/sda3/ partition (~1TB) is where everything gets sent.

root@OpenWrt:~# blkid
/dev/sda1: UUID="xxx" BLOCK_SIZE="1024" TYPE="ext2" PARTUUID="xxx"
/dev/sda2: LABEL="rootfs" UUID="yyy" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="yyy"
/dev/sda3: LABEL="data" UUID="zzz" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="zzz"
root@OpenWrt:~# 
root@OpenWrt:~# mount
--- snip ---
/dev/sda3 on /mnt/sda3 type ext4 (rw,relatime)
--- snip ---
root@OpenWrt:~# 

Thanks for your input.

Best,

A.

#949 Hardware & System Configuration » [SOLVED] rsyncd - permission issue » 2022-04-30 01:00:51

Altoid
Replies: 4

Hello:

I have discovered that the only way to get a half decent link between my Devuan box (GbE port) and my NAS (GbE port) is to use the rsync protocol.
ie: no compression/no encryption with a daemon ie: rsyncd running on one end.

Anyone curious about the details see Can a pocket router go fast?

The problem is that the now ubiquous ssh is only seen a half of what it is: very secure cryptographic network protocol.
What it really is (YMMV) is a very flexible, efficient and easy to use network protocol which also has the ability to be very secure.

Hence the difficulty of being able to use it without encryption.

But I digress.

After a lot of tinkering I have managed to set up an rsync daemon on the NAS as well as the modules required by what I want to do.

eg:

The user is member of the right groups:

:~$ groups
daemon adm mail ftp users network ntp groucho
:~$ 

The modules relate to the directories receiving the data are all owned by the user:

:/mnt/sda3$ ls -l
drwxrwxrwx    4 groucho  groucho       4096 Apr 25 19:03 bkups
drwxrwxrwx    2 groucho  groucho       4096 Apr 29 18:47 stuff
drwxrwxrwx    2 groucho  groucho       4096 Apr 28 17:53 testdir
:/mnt/sda3$ 

The directories from where the data is sent (Devuan box) are all owned by the user:

groucho@devuan:/media$ ls -l /media
total 24
drwxr-x---   2 groucho groucho 4096 Feb  9 19:46 300Gb
drwxr-x---   5 groucho groucho 4096 Jan 30 18:07 bkups
drwxr-x---+  2 root    root    4096 Apr 21 19:57 groucho
drwxr-xr-x   9 groucho groucho 4096 Apr 28 07:25 storage
drwxr-xr-x  25 groucho groucho 4096 Apr 28 07:32 stuff
groucho@devuan:/media$ 

The daemon is running:

:~# service rsyncd status
running
:~# 

The command line is, as far as I can see, correct:

groucho@devuan:~$ rsync -av /media/stuff/firefox.oldfile  rsync://groucho@192.168.1.3:/stuff

But, much to my chagrin, the result is not the expected one:

groucho@devuan:~$ rsync -av /media/stuff/firefox.oldfile  rsync://groucho@192.168.1.3:/stuff
sending incremental file list
firefox.oldfile
rsync: [receiver] mkstemp "/.firefox.oldfile.pPHKBp" (in stuff) failed: Permission denied (13)

sent 85,833,476 bytes  received 134 bytes   24,523,888.57 bytes/sec
total size is 85,812,416  speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
groucho@devuan:~$ 

But not all is bad news:  24,523,888.57 bytes/sec is 3.5x what I was getting using the NAS's native dropbear application.

The /var/log/rsyncd.log file on the NAS reads:

groucho@OpenWrt:~$ cat /var/log/rsyncd.log
2022/04/29 21:35:42 [2557] connect from UNDETERMINED (192.168.1.2)
2022/04/29 21:35:42 [2557] rsync allowed access on module stuff from UNDETERMINED (192.168.1.2)
2022/04/30 00:35:42 [2557] rsync to stuff/ from UNDETERMINED (192.168.1.2)
2022/04/30 00:35:42 [2557] receiving file list
2022/04/30 00:35:42 [2557] rsync: [receiver] mkstemp "/.firefox.oldfile.lNbFmM" (in stuff) failed: Permission denied (13)
groucho@OpenWrt:~$ 

The connection is established, rsync is allowed access to the target folder but when rsync attempts to (having received the file) write a temporary copy at destination, for some reason it it fails and the link is cut

Funny that it does not do a premission check before actually sending the file.

In any case, this seems to be a premission issue, probably the most common one rsync can have.
But I have not been able to find a solution.

Could someone shed some light on this for me?

Thanks in advance.

Best,

A.

#950 Re: Other Issues » [SOLVED] rsync operation takes ages » 2022-04-27 11:53:51

Hello:

GlennW wrote:

... an old 4 port modem/routrer as a switch.

PedroReina wrote:

... a really good piece of advice.

Indeed ...
I had first looked into that option. (See updated post @2022-04-25 17:34:35)

Locally, a used (decent quality) Gb router would cost me a bit more than what I paid for a four/five port unmanaged Gb switch.   
So I got one of those. Plug everything up, power it and that's it. Just works.

It has a metal case and is unobstusive (100*98*25) so that once I threw it under the desk, I forgot all about it.
Slipped my mind and neglected to mention it in the post, maybe the old cache is acting up.

Sorry about that.

Thank you both for your input.

Best,

A.

Board footer

Forum Software