Re: firmware-iwlwifi
On Mon 03 Oct 2022 at 13:27:13 (-0600), Charles Curley wrote: > On Mon, 3 Oct 2022 20:53:46 +0300 Georgi Naplatanov wrote: > > > Actually I think I found out what was happening: > >- for failed connection attempts trough SSH - the notebook > > sometimes switches to suspend/sleep mode and turns off its WiFi card > > and it takes time WiFi connection to become active again > > This sounds reasonable. Suspend likely shuts off the wifi receiver, and > upon ending the system may take a while to bring it back up. I'm not sure I understand how, if the wifi receiver is turned off, the laptop receives any packets that are intended to (incidentally) turn it back on and connect to it. I don't have much experience with sleep states. When my laptop is bone idle (open, screen blanked, kbd unlit, no logins, on battery), iwd still scans the wifi every minute, and ping returns are still instant. I presume this is the state known as S0. When I close the lid, it sleeps (I presume it's S3 as there's no swap; much activity occurs, and is logged, when the lid is reopened). Ping gets no replies. S1 and S2 are the mystery ones for me, as I have no idea how to enter/leave them. I suspect they may be the states where people post about their (non-builtin) keyboards and mice not waking them up. > I wonder why it's going into suspend mode; perhaps it is doing so > unnecessarily. Is this perhaps something that DEs do, along with screensavers and screen locking. (I don't know whether the OP installs one; I don't. Perhaps that's why I've not encountered S1/S2.) Cheers, David.
Re: SSD Optimization - Crucial CT1000MX500SSD1
On 10/4/22 18:41, piorunz wrote: ... fully supported ECC on Intel processors but disabled because no "Xeon" in the name. AIUI memory support on Intel platforms depends upon the chipset and the processor. For example, my Intel S1200V3RPS (C222 chipset) and S1200V3RPL (C226 chipset) server boards support ECC memory modules with specific Celeron, Pentium, Core i3, and Xeon processors. Similarly, my Dell PowerEdge T30 (Intel C236 chipset) supports specific combinations of non-ECC or ECC memory with Pentium, Core i3, and Xeon processors. STFW I see: https://www.tomshardware.com/news/intel-enables-ecc-on-12th-gen-core-cpus David
Re: SSD Optimization - Crucial CT1000MX500SSD1
On 05/10/2022 01:00, David Christensen wrote: I have moved the majority of my data to servers with ECC memory and ZFS mirrors, but I have little to no defense against memory errors on my desktops and laptops without ECC memory. So, I keep as little data as possible on the latter, and backup/ archive daily or sooner. Fortunately, we are blessed with AMD Ryzen processors having unlocked ECC functionality, nothing stupid like fully supported ECC on Intel processors but disabled because no "Xeon" in the name. I use this in my desktop PC: CPU: 8-core model: AMD Ryzen 7 5800X Mobo: ASUSTeK model: PRIME B550-PLUS Memory: RAM: total: 62.72 GiB used: 19.94 GiB (31.8%) Array-1: capacity: 128 GiB slots: 4 EC: Multi-bit ECC Device-1: DIMM_A1 type: no module installed Device-2: DIMM_A2 type: DDR4 size: 32 GiB speed: 3600 MT/s Device-3: DIMM_B1 type: no module installed Device-4: DIMM_B2 type: DDR4 size: 32 GiB speed: 3600 MT/s Works amazing. No single bit loss (due to memory) since I built it. But I had files corrupted due to SSD though. Btrfs detects all checksum errors so I know right away what is happening. No long term bit rot and important data lost, like I would have been on other filesystems and non-ECC memory. And my home server is similar, older build: CPU: Info: 8-Core model: AMD Ryzen 7 1700 Mobo: ASUSTeK model: PRIME B350-PLUS Memory:RAM: total: 62.81 GiB used: 12.13 GiB (19.3%) Array-1: capacity: 128 GiB slots: 4 EC: Multi-bit ECC Device-1: DIMM_A1 size: 16 GiB speed: 2666 MT/s Device-2: DIMM_A2 size: 16 GiB speed: 2666 MT/s Device-3: DIMM_B1 size: 16 GiB speed: 2666 MT/s Device-4: DIMM_B2 size: 16 GiB speed: 2666 MT/s Had at least two critical file corruption losses before I went all ECC, now, for two years its been perfectly stable. Do you have a URL that documents bugs in memtest86+? In Debian? Not that I am aware of. But throughout my last two years of refurbishing a bit older machines, about 50 various desktops and laptops, often times memtest86+ would just hang (no progress moving but small ASCII characters is moving around like it's doing something). That happens especially when maximum (for old PC BIOS) RAM is installed. Windows, and Linux work fine with that maximized memory amount of, example: 4 GB (for older machines) or 8 GB (for a bit newer ones) etc etc. Windows10 memory tester thing would even test it fine. And Linux "memtester" which runs while system is running, also perfect result no errors. But memtest86+ would just hang, always at exactly the same percentage in first test, and computer would need to be reset. It happens on memtest86+ from Linux Mint ISO too, so perhaps this is for software authors, not for Debian BTS. Rare error, on old exotic builds, but annoying. That's why where I can (on UEFI) I prefer to use proprietary Passmark's memtest86. -- With kindest regards, Piotr. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄
Re: gspeaker installation
* On 2022 04 Oct 11:55 -0500, Gary L. Roach wrote: > Hi all, > > Is anyone familiar with gspeaker installation. This program has to be > compiled from source code. I keep getting the following error when running > make: > > ***/usr/include/glib-2.0/glib/gtypes.h:29:2:error: #error "Only can > be included directly."* > > I have searched the web and have found references to the problem but could > not find a solution that didn't require modification of the source code. That's the only solution that I am aware of. Later versions of glib are designed to only allow the inclusion of the glib.h header file. There is one exception and it has to do with the g_printf (and related) function which requires that glib/gprintf.h be included specifically. I don't recall off-hand where I found this requirement in the documentation, but maybe I got the same error you did on a package I was porting forward some time back. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819 signature.asc Description: PGP signature
Re: SSD Optimization - Crucial CT1000MX500SSD1
On 10/4/22 04:39, piorunz wrote: On 04/10/2022 03:56, David Christensen wrote: Of course, [my trouble-shooting strategy] is all premised upon devising a stimulus that reliably reproduces the result. When my HDD's/SSD's were having SATA cable and/or drive rack problems, reading 10 GB from them typically produced at least one error. I cannot comment on that, I very very rarely have [SATA UDMA CRC] issues. Last time I had it turned out to be faulty RAM (very rare bit rots), not SATA cable. I have moved the majority of my data to servers with ECC memory and ZFS mirrors, but I have little to no defense against memory errors on my desktops and laptops without ECC memory. So, I keep as little data as possible on the latter, and backup/ archive daily or sooner. When the OP read 10 GB of the SSD using the d-i rescue shell, he was applying a stimulus after changing the variable "OS instance". The result was different. Therefore, the SATA UDMA CRC errors are related to changing the OS instance Maybe. But my bet this is hardware error. RAM or SATA Cable, or SSD itself. Or motherboard, then this is dead in the water and laptop would need to be recycled/sold as spares if this happens. I would also suggest to OP at this point, to do full memtest86 by passmark (UEFI only) https://www.memtest86.com/ Or old typical (but bugged sometimes) memtest86+ https://www.memtest.org/ Full run of either to make sure CPU/RAM is good. +1 for the OP testing memory by any means. The BIOS in the OP's computer may include a test suite that includes memory tests. (I have STFW and the Dell Support web site for Inspiron 5547 System Setup documentation, but have not found anything.) If the OP has a HDD/SDD with a Windows instance, the OP should be able to run diagnostics via Microsoft Edge and the Dell Support web site. Do you have a URL that documents bugs in memtest86+? David
Re: ssh -X authentication with sudo
Regarding the following, written by "debian-u...@howorth.org.uk" on 2022-10-04 at 13:52 Uhr +0100: PS as you surmised, I don't really want root ssh access. But you are running GUIs as root?? -- .''`. martin f. krafft @martinkrafft : :' : proud Debian developer `. `'` http://people.debian.org/~madduck `- Debian - when you have better things to do than fixing systems may the bluebird of happiness twiddle your bits.
Re: Some applications don't follow default browser settings
在 2022年10月4日星期二 UTC+8 13:00:06,MaxNikulin写道: x-scheme-handler/http=google-chrome.desktop; x-scheme-handler/https=google-chrome.desktop; Do not forget to run update-desktop-database with a proper directory as its argument. Thanks! Changing the x-scheme-handler to google-chrome.desktop works for me! Tianyu Chen
gspeaker installation
Hi all, Is anyone familiar with gspeaker installation. This program has to be compiled from source code. I keep getting the following error when running make: ***/usr/include/glib-2.0/glib/gtypes.h:29:2:error: #error "Only can be included directly."* I have searched the web and have found references to the problem but could not find a solution that didn't require modification of the source code. Gary R
Re: Anacron job output/email
On Tue, 4 Oct 2022 11:25:22 -0400 wrote: > As I mentioned, the email which should > have been generated did finally arrive, 3 hours later. Actually, no, you didn't mention it in your original post. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Re: Anacron job output/email
On Tue, 2022-10-04 at 11:25 -0400, pa...@quillandmouse.com wrote: > Yes, Exim4, properly configured. As I mentioned, the email which should > have been generated did finally arrive, 3 hours later. Go figure. Looking at the email headers would help you figure out where on the delivery route the delay was. As could looking in /var/log/exim4/mainlog in the Pi. -- Tixy
Re: Anacron job output/email
On Tue 04 Oct 2022 at 11:25:22 (-0400), pa...@quillandmouse.com wrote: > On Tue, 4 Oct 2022 08:21:20 -0600 Charles Curley wrote: > > On Tue, 4 Oct 2022 09:11:59 -0400 wrote: > > > > > Can anyone give me a clue why the output of the script > > > would fail to generate an email for me? > > > > Do you have a mail transport agent (MTA) such as postfix or exim > > installed? > > Yes, Exim4, properly configured. As I mentioned, I don't think we saw that one. > the email which should > have been generated did finally arrive, 3 hours later. Go figure. Then the answer should be in /var/log/exim4/mainlog* Cheers, David.
Re: Anacron job output/email
On Tue, 4 Oct 2022 15:25:29 +0100 debian-u...@howorth.org.uk wrote: > > Folks: > > > > I have a Raspberry Pi (Raspberry Pi OS = Debian version 11.5) which > > runs a backup daily via a file called /etc/cron.daily/backup. This > > file generates copious output, which should get emailed to root. The > > backup script ran this morning at 06:25, as predicted. I know this > > because it created a timestamp file at the end of its backup, and > > that file indicates it ran on schedule. However, there is no email > > containing its output. I checked the contents of /var/mail, and > > there's no output. FWIW, when run manually, it generates the > > aforementioned output. > > > > I haven't tampered with anacron other than to add the script to the > > directory above. Can anyone give me a clue why the output of the > > script would fail to generate an email for me? > > Have you installed mail on the pi? It's not there by default. You may > find messages in the journal about discarding the output if so, or > which may indicate another cause if not. > See my reply to a previous poster. Yes, Exim4 is installed and configured. And works. Paul -- Paul M. Foster Personal Blog: http://noferblatz.com Company Site: http://quillandmouse.com Software Projects: https://gitlab.com/paulmfoster
Re: Anacron job output/email
On Tue, 4 Oct 2022 08:21:20 -0600 Charles Curley wrote: > On Tue, 4 Oct 2022 09:11:59 -0400 > wrote: > > > Can anyone give me a clue why the output of the script > > would fail to generate an email for me? > > Do you have a mail transport agent (MTA) such as postfix or exim > installed? > Yes, Exim4, properly configured. As I mentioned, the email which should have been generated did finally arrive, 3 hours later. Go figure. -- Paul M. Foster Personal Blog: http://noferblatz.com Company Site: http://quillandmouse.com Software Projects: https://gitlab.com/paulmfoster
Re: Error including file in nftables.conf
On Tue, Oct 4, 2022 at 2:32 AM Anssi Saari wrote: > Dave Parker writes: > > > So, I copied /lib/systemd/system/nftables.service to > /etc/systemd/system/nftables.service, set > > ProtectHome=false, ran "systemctl daemon-reload", and now it works! > > Well, good, buy why not put configuration data in /etc instead of /root > where it belongs and keep the service as is? > > Personally I have my main or common rules in /etc/nftables.conf and have > in there include "/etc/nftables.conf.d/*" so that I can add extra input > rules for different computers. > > You're right that it probably should just go in /etc/nftables.conf. This was mostly just for testing; I had a fairly large ruleset in a file which was converted from an iptables script on another server, and instead of pasting that all into nftables.conf, I was hoping to keep it separate and use include to read it. Moving that to a location other than /root is the solution. Thanks!
Re: Error including file in nftables.conf
Hello, On Mon, Oct 03, 2022 at 10:36:53PM -0400, Dave Parker wrote: > So, I copied /lib/systemd/system/nftables.service to > /etc/systemd/system/nftables.service, set ProtectHome=false, ran "systemctl > daemon-reload", and now it works! This overrides the entire file with your copy in /etc. That will work, but if a future update changes the original version in /lib then you may not be aware. You may find it better to only override the ProtectHome part. $ sudo rm /etc/systemd/system/nftables.service $ sudo systemctl edit nftables.service Add only: [Service] ProtectHome=false Of course, there is good reason for ProtectHome. It seems like you could easily store this configuration file outside of /root, which would be more common and would save you all this work. Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
Re: Anacron job output/email
> Folks: > > I have a Raspberry Pi (Raspberry Pi OS = Debian version 11.5) which > runs a backup daily via a file called /etc/cron.daily/backup. This > file generates copious output, which should get emailed to root. The > backup script ran this morning at 06:25, as predicted. I know this > because it created a timestamp file at the end of its backup, and > that file indicates it ran on schedule. However, there is no email > containing its output. I checked the contents of /var/mail, and > there's no output. FWIW, when run manually, it generates the > aforementioned output. > > I haven't tampered with anacron other than to add the script to the > directory above. Can anyone give me a clue why the output of the > script would fail to generate an email for me? Have you installed mail on the pi? It's not there by default. You may find messages in the journal about discarding the output if so, or which may indicate another cause if not. > Paul
Re: Anacron job output/email
On Tue, 4 Oct 2022 09:11:59 -0400 wrote: > Can anyone give me a clue why the output of the script > would fail to generate an email for me? Do you have a mail transport agent (MTA) such as postfix or exim installed? -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Re: ssh -X authentication with sudo
On 4/10/22 8:52 pm, debian-u...@howorth.org.uk wrote: To use the display without ssh root login. ssh as normal user to host. Then echo $DISPLAY su - export DISPLAY=localhost:10 (or whatever your logged in user DISPLAY is set to) xauth add $(xauth -f ~/.Xauthority list | tail -1) xhost Thanks, that worked after a little fiddling. Firstly, /root/.Xauthority didn't exist, so xauth complained. Touching the file sorted that. And secondly, the .Xauthority file contained three lines and the one I need was in the middle :( I suppose that was a result of previous fiddling about I'd done resulting in extra logins. But removing the last entry in the file (a) didn't immediately crash anything and (b) let xauth work next time I ran it :) So success, and many thanks! Oh and I tested this before I responded. However in my system I can also log in as root and run graphics applications. I did this before checking the workaround. I assume when I ran graphics first as root, the .Xauthority file was created so I didn't get the error you had later. Plus the new .Xauthority file wouldn't have had any garbage in it. -- Jeremy OpenPGP_signature Description: OpenPGP digital signature
Anacron job output/email
Folks: I have a Raspberry Pi (Raspberry Pi OS = Debian version 11.5) which runs a backup daily via a file called /etc/cron.daily/backup. This file generates copious output, which should get emailed to root. The backup script ran this morning at 06:25, as predicted. I know this because it created a timestamp file at the end of its backup, and that file indicates it ran on schedule. However, there is no email containing its output. I checked the contents of /var/mail, and there's no output. FWIW, when run manually, it generates the aforementioned output. I haven't tampered with anacron other than to add the script to the directory above. Can anyone give me a clue why the output of the script would fail to generate an email for me? Paul -- Paul M. Foster Personal Blog: http://noferblatz.com Company Site: http://quillandmouse.com Software Projects: https://gitlab.com/paulmfoster
Re: ssh -X authentication with sudo
> On 4/10/22 7:39 pm, Greg Wooledge wrote: > > Change the sshd_config to allow direct root logins. > > Then do ssh -X r...@debian.box. > > > > If you're the paranoid type, or if the Debian system is exposed to > > the public Internet, then make sure you only permit root logins > > when using pubkey authentication, not password. Then set up an RSA > > pubkey for your direct root login. > > > > To use the display without ssh root login. ssh as normal user to > host. Then > > echo $DISPLAY > > su - > > export DISPLAY=localhost:10 (or whatever your logged in user DISPLAY > is set to) > > xauth add $(xauth -f ~/.Xauthority list | tail -1) > > xhost Thanks, that worked after a little fiddling. Firstly, /root/.Xauthority didn't exist, so xauth complained. Touching the file sorted that. And secondly, the .Xauthority file contained three lines and the one I need was in the middle :( I suppose that was a result of previous fiddling about I'd done resulting in extra logins. But removing the last entry in the file (a) didn't immediately crash anything and (b) let xauth work next time I ran it :) So success, and many thanks! Oh and sudo su - of course. PS as you surmised, I don't really want root ssh access.
Re: ssh -X authentication with sudo
On 4/10/22 7:39 pm, Greg Wooledge wrote: Change the sshd_config to allow direct root logins. Then do ssh -X r...@debian.box. If you're the paranoid type, or if the Debian system is exposed to the public Internet, then make sure you only permit root logins when using pubkey authentication, not password. Then set up an RSA pubkey for your direct root login. To use the display without ssh root login. ssh as normal user to host. Then echo $DISPLAY su - export DISPLAY=localhost:10 (or whatever your logged in user DISPLAY is set to) xauth add $(xauth -f ~/.Xauthority list | tail -1) xhost -- Jeremy OpenPGP_signature Description: OpenPGP digital signature
Re: Mount NFS hangs
On Tue, Oct 04, 2022 at 12:04:56PM +0100, tony wrote: > I can successfully do (pls ignore spurious line break): > > mount -t nfs -o _netdev tony-fr:/mnt/sharedfolder > /mnt/sharedfolder_client > > but the user id is incorrect. What do you mean, "the user id"? As if there's only one? This isn't a VFAT file system. It's NFS. The file system on the server has multiple UIDs and GIDs and permissions. These are reflected on the client. If a file (say, /mnt/sharedfolder_client/foo.txt) is owned by UID 1001 on the server, then it is also owned by UID 1001 on the client. Unless of course you're doing ID mapping stuff, which I have never done, and really don't recommend. Just make sure UID 1001 on the server and UID 1001 on the client map to the same person. And similarly for all the other UIDs and GIDs.
Re: ssh -X authentication with sudo
On Tue, Oct 04, 2022 at 12:31:23PM +0100, Dave Howorth wrote: > I have a machine running debian that I access using ssh. I use the -X > with ssh and can successfully run e.g. xeyes on the debian machine > showing the display on my local machine. But now I want to run a > graphical program that needs to run as root on the debian machine > while displaying on my local machine. Change the sshd_config to allow direct root logins. Then do ssh -X r...@debian.box. If you're the paranoid type, or if the Debian system is exposed to the public Internet, then make sure you only permit root logins when using pubkey authentication, not password. Then set up an RSA pubkey for your direct root login.
Re: SSD Optimization - Crucial CT1000MX500SSD1
On 04/10/2022 03:56, David Christensen wrote: On 10/3/22 09:23, piorunz wrote: On 02/10/2022 21:33, David Christensen wrote: On 10/2/22 06:19, Marcelo Laia wrote: # cat /etc/debian_version ; uname -a bookworm/sid Linux marcelo 5.19.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-09-24) x86_64 GNU/Linux Please install Debian Stable. Why would he? I have exactly the same SSD (two of them) in my machine, on Debian Testing, drives in BTRFS Raid1 mode, everything works perfect. But I have good SATA cables. OS version has nothing to do with cabling errors in SSD drive SMART log. He may as well be using DOS, Windows FreeBSD, any Linux - cabling errors must never happen. uname -a Linux ryzen 5.19.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1 (2022-09-24) x86_64 GNU/Linux $ sudo smartctl /dev/sda --all | grep "Device Model\|SATA_Interfac\|DMA_CRC_Error" Device Model: CT1000MX500SSD1 183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always - 0 199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 0 $ sudo smartctl /dev/sdb --all | grep "Device Model\|SATA_Interfac\|DMA_CRC_Error" Device Model: CT1000MX500SSD1 183 SATA_Interfac_Downshift 0x0032 100 100 000 Old_age Always - 0 199 UDMA_CRC_Error_Count 0x0032 100 100 000 Old_age Always - 0 Even if you and the OP ran identical OS instances (e.g. clones), I do not believe you two have the same make and model computers. Therefore, different code paths will be executed -- e.g. device drivers. So, the OP's computer may be hitting a bug that your computer does not. Agree. I am applying a trouble-shooting strategy -- change one variable, apply a stimulus, and measure the result. If the result is the same as it was before, then the result is unlikely to be related to the variable and/or change. But if the result is different, then the result is likely to be related to the variable and/or change. Agree, troubleshooting strategy must be followed by elimination. In general, when dealing with issues, OS is good choice to change (for example run different system from LiveCD for couple of days) Of course, this is all premised upon devising a stimulus that reliably reproduces the result. When my HDD's/SSD's were having SATA cable and/or drive rack problems, reading 10 GB from them typically produced at least one error. I cannot comment on that, I very very rarely have this kind of issues. Last time I had it turned out to be faulty RAM (very rare bit rots), not SATA cable. When the OP read 10 GB of the SSD using the d-i rescue shell, he was applying a stimulus after changing the variable "OS instance". The result was different. Therefore, the SATA UDMA CRC errors are related to changing the OS instance Maybe. But my bet this is hardware error. RAM or SATA Cable, or SSD itself. Or motherboard, then this is dead in the water and laptop would need to be recycled/sold as spares if this happens. I would also suggest to OP at this point, to do full memtest86 by passmark (UEFI only) https://www.memtest86.com/ Or old typical (but bugged sometimes) memtest86+ https://www.memtest.org/ Full run of either to make sure CPU/RAM is good. -- With kindest regards, Piotr. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄
Mount NFS hangs
Hi, I need to mount a directory from a debian 11 server to a debian 10 client. I can successfully do (pls ignore spurious line break): mount -t nfs -o _netdev tony-fr:/mnt/sharedfolder /mnt/sharedfolder_client but the user id is incorrect. If I now try: mount -t nfs -o _netdev,uid=1002 tony-fr:/mnt/sharedfolder /mnt/sharedfolder_client the command hangs in terminal. Uid 1002 is valid in the /etc/passwd file on both machines. Any suggestion on how to fix this please? cheers, Tony
ssh -X authentication with sudo
I have a machine running debian that I access using ssh. I use the -X with ssh and can successfully run e.g. xeyes on the debian machine showing the display on my local machine. But now I want to run a graphical program that needs to run as root on the debian machine while displaying on my local machine. I haven't figured out the correct incantation to use, nor which machine to run the incantation on :( I tried completely disabling access control on both machines (xhost +) but still got an error: $ xeyes [works with local display] $ sudo linssid X11 connection rejected because of wrong authentication. QXcbConnection: Could not connect to display localhost:10.0 Aborted $