Re: Installing Debian11 on Lenovo P1 Gen5

2023-02-06 Thread Todor Petkov
On Mon, Feb 6, 2023 at 4:13 PM Charles Curley
 wrote:
> Is the firmware-realtek package installed?
>
> Please in future don't tell us what you think lsusb said, show us the
> actual output from lsusb. We may notice things from that output you
> don't.

firmware-realtek package is installed, here is what is shown with
original kernel and with backports one:

Original kernel (uname -a):
Linux laptop 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21)
x86_64 GNU/Linux

dpkg -l | grep -- firmware
firmware packages:
ii  firmware-linux-free   20200122-1
all  Binary firmware for various drivers in the Linux
kernel
ii  firmware-misc-nonfree 20210315-3
all  Binary firmware for various drivers in the Linux
kernel
ii  firmware-realtek  20210315-3
all  Binary firmware for Realtek wired/wifi/BT adapters

lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f2:b74f Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 003: ID 06cb:00f9 Synaptics, Inc.
Bus 001 Device 007: ID 8087:0033 Intel Corp.
Bus 001 Device 010: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 009: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Backports kernel:
Linux laptop 6.0.0-0.deb11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian
6.0.12-1~bpo11+1 (2022-12-19) x86_64 GNU/Linux

firmware packages:
ii  firmware-linux-free   20200122-1
  all  Binary firmware for various drivers in the Linux
kernel
ii  firmware-misc-nonfree 20210818-1~bpo11+1
  all  Binary firmware for various drivers in the Linux
kernel
ii  firmware-realtek  20210818-1~bpo11+1
  all  Binary firmware for Realtek wired/wifi/BT adapters

lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f2:b74f Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 003: ID 06cb:00f9 Synaptics, Inc.
Bus 001 Device 006: ID 8087:0033 Intel Corp.
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153
Gigabit Ethernet Adapter
Bus 004 Device 002: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I noticed docking does not recognize USB Flash drives with the
original kernel, but external keyboard/mouse are working, as well
USB-A Ethernet card.

Thanks



Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH

2023-02-06 Thread Greg Wooledge
On Mon, Feb 06, 2023 at 04:37:50PM -0600, David Wright wrote:
> On Mon 06 Feb 2023 at 19:54:20 (+), Ottavio Caruso wrote:
> > Am 06/02/2023 um 19:05 schrieb Greg Wooledge:
> > > ssh LAP2 'type hibernate.sh; echo "$PATH"'
> > 
> > _Touché !_ You nailed it:
> > 
> > 
> > $ ssh LAP2 'type hibernate.sh; echo "$PATH"'
> > bash: line 1: type: hibernate.sh: not found
> > /usr/local/bin:/usr/bin:/bin:/usr/games
> 
> On Mon 06 Feb 2023 at 10:38:56 (+), Ottavio Caruso wrote:
> > Am 04/02/2023 um 15:15 schrieb Greg Wooledge:
> > > On Sat, Feb 04, 2023 at 02:13:54PM +, Ottavio Caruso wrote:
> > > > > > $ ssh LAP2 hibernate.sh # it works too
> 
> Why doesn't   ssh LAP2 'type hibernate.sh'
> work when   ssh LAP2 hibernate.sh   does?

Seems pretty obvious to me.  It was a false claim all along.

They actually did:

lap1$ ssh lap2
lap2$ hibernate.sh

But they SAID they did:

lap1$ ssh lap2 hibernate.sh

And now they know that these two things are not equivalent, so at least
there's one small victory today.



Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH

2023-02-06 Thread David Wright
On Mon 06 Feb 2023 at 19:54:20 (+), Ottavio Caruso wrote:
> Am 06/02/2023 um 19:05 schrieb Greg Wooledge:
> > ssh LAP2 'type hibernate.sh; echo "$PATH"'
> 
> _Touché !_ You nailed it:
> 
> 
> $ ssh LAP2 'type hibernate.sh; echo "$PATH"'
> bash: line 1: type: hibernate.sh: not found
> /usr/local/bin:/usr/bin:/bin:/usr/games

On Mon 06 Feb 2023 at 10:38:56 (+), Ottavio Caruso wrote:
> Am 04/02/2023 um 15:15 schrieb Greg Wooledge:
> > On Sat, Feb 04, 2023 at 02:13:54PM +, Ottavio Caruso wrote:
> > > > > $ ssh LAP2 hibernate.sh # it works too

Why doesn't   ssh LAP2 'type hibernate.sh'
work when   ssh LAP2 hibernate.sh   does?

> For some reason, I though ssh would inherit the $PATH from .profile,
> which sources .bashrc, but of course this is not an interactive shell.

Cheers,
David.


Re: OT: repair/replace cell in Li-ion battery?

2023-02-06 Thread jeremy ardley


On 6/2/23 23:45, Roy J. Tellason, Sr. wrote:

On Sunday 05 February 2023 06:29:12 pm local10 wrote:

5 Feb 2023, 20:28 byy...@masson-informatique.fr:

Does anybody knows trusted manufacturers / brands I could find on the Internet? I am 
really disappointed by this battery (brand "vhbw") partially broken after only 
two years…



As a general thing, most electronic consumables sold on ebay are not 
just potentially fraudulent in some way, they are almost certainly 
fraudulent.


Ebay fully condones this and lets listings run despite numerous bad 
reviews. I think the theory is that only a relatively small percentage 
of customers will complain and demand a refund, so ebay overall makes a 
good profit from it.


I have at times bought (and often returned) Lithium cells, Phone 
batteries, Cordless tool batteries, CF drives, and solar panels


Batteries, individually, for laptops, phones, and tools are notoriously 
listed at far higher capacity than actual. That, and the brand is often 
faked as well.


Another big fraud is compact flash, where brand is very likely faked, 
and/or the parts are repairs or fakes in some way, such as replacing the 
micro controller to report different manufacturer and/or capacity.


To be fair, supermarket CF have problems, such as overrated speed 
performance or CF labeled one brand on the shell, but reporting some 
other brand electronically. Inevitably these drives do not last in 
applications for computer drives. My standard for CF now is to buy 
genuine SanDisk or Samsung drives from an authorised distributor



--
Jeremy

Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH

2023-02-06 Thread Nicolas George
Greg Wooledge (12023-02-06):
> On most Linux systems, including Debian, bash is built with a compile-time
> option that makes it try to determine whether it's a child of sshd.  If
> it believes itself to be that, it will source ~/.bashrc even though it's
> not an interactive shell.

Oh! My day of not using bash have certainly come to a middle.

Zsh is much saner: it has .zshenv for the initializations you always
want (and it is still good practice to use a test to not have them
override a temporary change) and .zshrc for interactive shells where you
can put things that will change the behavior, like aliases, and could
break scripts.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: SOLVED Re: Cannot rum multiple command on remote machine via SSH

2023-02-06 Thread Greg Wooledge
On Mon, Feb 06, 2023 at 07:54:20PM +, Ottavio Caruso wrote:
> Am 06/02/2023 um 19:05 schrieb Greg Wooledge:
> > ssh LAP2 'type hibernate.sh; echo "$PATH"'
> 
> _Touché !_ You nailed it:
> 
> 
> $ ssh LAP2 'type hibernate.sh; echo "$PATH"'
> bash: line 1: type: hibernate.sh: not found
> /usr/local/bin:/usr/bin:/bin:/usr/games
> 
> For some reason, I though ssh would inherit the $PATH from .profile, which
> sources .bashrc, but of course this is not an interactive shell.

It gets complicated.  This is why I was asking for all the information
I was asking for.

On most Linux systems, including Debian, bash is built with a compile-time
option that makes it try to determine whether it's a child of sshd.  If
it believes itself to be that, it will source ~/.bashrc even though it's
not an interactive shell.

A completely vanilla upstream bash, straight from gnu.org, doesn't do
that.  Here's the option in config-top.h:

/* Define this if you want bash to try to check whether it's being run by
   sshd and source the .bashrc if so (like the rshd behavior).  This checks
   for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
   which can be fooled under certain not-uncommon circumstances. */
/* #define SSH_SOURCE_BASHRC */

But Debian turns that feature on, so you get:

unicorn:~$ echo 'echo this is .bashrc' >> ~/.bashrc
unicorn:~$ ssh localhost true
greg@localhost's password: 
this is .bashrc
unicorn:~$ 

If you really are defining your PATH in ~/.bashrc, with LAP2 being a
Debian system, and your account's shell being /bin/bash, it's quite
surprising that what you're doing isn't working the way you expected.

Of course, if you're actually defining PATH in ~/.profile (which is far
more sensible in most cases), then it's not a surprise.



Re: Cannot rum multiple command on remote machine via SSH

2023-02-06 Thread Greg Wooledge
On Mon, Feb 06, 2023 at 06:59:33PM +, Ottavio Caruso wrote:
> LAP1:~$ ssh LAP2 sudo tlp setcharge 90 95 BAT1
> Setting temporary charge thresholds for BAT1:
>   stop  =  95
>   start =  90
> LAP1:~$ ssh LAP2 ls
> Desktop
> docs
> Documents
> Downloads
> git
> opt
> storage
> test
> test2
> LAP1:~$

I think the intent was:  ssh LAP2 'sudo tlp setcharge 90 95 BAT1; ls'

However, I'm more interested in things that will help pinpoint the issue
as it was initially presented.  For example:

ssh LAP2 'type hibernate.sh; echo "$PATH"'

I'd also like to know how the authentication is being done, and if there's
a forced command associated with the pubkey, if pubkey is being used.



Re: Syncing Firefox tabs without a Mozilla account

2023-02-06 Thread John Hasler
Thatnk you.  That looks useful.
-- 
John Hasler 
j...@sugarbit.com
Elmwood, WI USA



Re: No USB with qemu+macOS+USB+iPads

2023-02-06 Thread Curt
On 2023-02-05, stand...@gmx.net  wrote:
> Curt schrieb am Donnerstag, 2. Februar 2023 um 18:20:06 UTC+1:
>> On 2023-01-31, stand...@gmx.net  wrote: 
>> 
>> Look for file "AppleMobileDevice.kext". 
>
> Sorry for the delay.
>
> "Apple no longer recommends using kexts with your macOS device. To
> make thing worse, macOS Big Sur doesn’t even support some kexts; "

You're correct that Apple has discontinued use of kernel extension
(kexts). 

If you're using a recent version of macOS, a different method may be
required than the one I enumerated, such as employing the "usbmuxd"
library to connect your device.

It's probably best consulting Apple's official documentation and the
developer community for more precise info.  Good luck.



Re: kernel errors

2023-02-06 Thread Max Nikulin

On 06/02/2023 00:11, Richmond wrote:

Max Nikulin writes:


On 05/02/2023 03:12, Richmond wrote:

The errors about sr0 come before the stuff about resume.


Does the following command generate similar errors (taken from initrd
scripts, UUID is intentionally not from the set of existing
partitions)?

blkid -l -t UUID=---- -o device


It didn't produce any output.


Sorry, I have no motivation to dig into /usr/share/initramfs-tools 
deeper. Perhaps you may try debug kernel option in combination with bad 
UUID for resume from grub


  ... debug resume=UUID=----

with hope to get more verbose output around of optical drive access.

You may try to report a bug against initramfs-tools that errors messages 
are unhelpful and even confusing when resume configuration is 
inconsistent due to a mistake. Perhaps resume argument may be validated 
during generation of initrd, however in some cases it will give false 
positive.





Re: OT: repair/replace cell in Li-ion battery?

2023-02-06 Thread Roy J. Tellason, Sr.
On Sunday 05 February 2023 06:29:12 pm local10 wrote:
> 5 Feb 2023, 20:28 by y...@masson-informatique.fr:
> > Does anybody knows trusted manufacturers / brands I could find on the 
> > Internet? I am really disappointed by this battery (brand "vhbw") partially 
> > broken after only two years…
> >
> 
> 
> Find out the exact battery model you laptop uses and then buy a replacement 
> battery of that exact model (on Ebay or whatever). Other batteries may be 
> better or worse but they may also be incompatible with your laptop.
> 
> Regards,

I wouldn't recommend ebay for this.  Bought a battery for a smartphone some 
years back,  apparently identical to the one that was in there,  and apparently 
having the exact same limit for capacity as the one that I was trying to 
replace...

Look at warranty and return policy for whoever you buy from.

-- 
Member of the toughest, meanest, deadliest, most unrelenting -- and
ablest -- form of life in this section of space,  a critter that can
be killed but can't be tamed.  --Robert A. Heinlein, "The Puppet Masters"
-
Information is more dangerous than cannon to a society ruled by lies. --James 
M Dakin



Re: Installing Debian11 on Lenovo P1 Gen5

2023-02-06 Thread Charles Curley
On Mon, 6 Feb 2023 11:43:17 +0200
Todor Petkov  wrote:

> This station has Ethernet RJ45 port with RTL8153 chipset
> (according to lsusb), that's using Realtek r8152 driver.

Is the firmware-realtek package installed?

Please in future don't tell us what you think lsusb said, show us the
actual output from lsusb. We may notice things from that output you
don't.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: No USB with qemu+macOS+USB+iPads

2023-02-06 Thread Max Nikulin

On 02/02/2023 23:00, stand...@gmx.net wrote:


(qemu) info usbhost
   Bus 2, Addr 4, Port 9, Speed 480 Mb/s
 Class 00: USB device 058f:6387, Mass Storage
   Bus 2, Addr 3, Port 3, Speed 1.5 Mb/s
 Class 00: USB device 046d:c34b, USB Keyboard
   Bus 2, Addr 2, Port 2, Speed 12 Mb/s
 Class 00: USB device 046d:c52b, USB Receiver


Does the user running VM have read/write access to the usb device? The 
docs mention chown, I used


sudo -A setfacl -m u:`id -un`:rw /dev/bus/usb/002/007

and in qemu monitor

device_add usb-host,hostbus=2,hostport=7,id=usbcam

However it was with linux guest.



Re: OT: repair/replace cell in Li-ion battery?

2023-02-06 Thread Max Nikulin

On 05/02/2023 23:32, gene heskett wrote:
Speaking as a CET with some knowledge of battery degradation, the 
thought of replacing an individual cell in a li-ion battery scares me. 
That new battery will have a bit more capacity, which in turn may force 
other older cells into reverse polarity, accelerating the rate of 
failure of the rest of the cells, with the possibility of starting a 
fire you can't put out.  IOW, don't even consider it. Battery rebuilders 
with any care for the result, may and should select the cells with a 1 % 
or so like capacity, meaning your rebuilt battery s/b safe, but may not 
have the labeled capacity. Does your charger know about the reduced 
capacity?


I would not be surprised if nowadays a laptop battery (at least original 
one) has a balancing circuit that compensates difference of cells 
capacity e.g. due to non-uniform degradation.


By the way, Ottavio may be right. Some laptops have UEFI settings to 
maintain battery charge level of approximately 70%. It may mitigate 
degradation if laptop is mostly working from AC adapter.




Re: CUPS printer on Debian 11.6

2023-02-06 Thread Brian
On Sun 05 Feb 2023 at 20:52:42 +, Russell L. Harris wrote:

> Fresh installation of Debian 11.6 on Dell Vostro 200 (Intel Core 2).
> 
> The Vostro 200 is being added to a home LAN with Debian 11.6 running
> on a nondescript desktop (amd64) and a HP Laserjet P3015 Postscript
> (Ethernet).  The amd64 machine works perfectly with the P3015.
> 
> The printer configuration on both machines appears identical:
> 
>DRIVER: HP LaserJet Series PCL 6 CUPS (grayscale)
>Connection:  socket://192.168.1.211:9100
> 
> (1) The printer installs on Vostro 200 but does not print.

Symptoms of not printing? Provide outputs for 'lpstat -t'
and 'lpinfo -v'.
 
> (2) Should I install the P3015 as generic Postscript printer?

Unlikely to have any effect.
 
> (3) I cannot make sense of the new CUPS "driverless" scheme.
> Does it make my Postscript printers obsolete?

No.

-- 
Brian.



Re: May I delete their?

2023-02-06 Thread sim sim
 Good day.
I am impressed! Thanks for 'apt autoremove', there 2.6Gb free space appeared.
Bye.



On Saturday, February 4, 2023 at 10:08:06 AM UTC, sim sim 
 wrote:  
 
 Good day!
During the last update through the 'Sinaptic' I saw that was download 
'linux-image-5.10.0-21-686-pae' and updated 'linux-image-686-pae' was updated. 
In my /boot/ among any other are archived files from 
'initrd.img-5.10.0-9-686-pae' up to 'initrd.img-5.10.0-21-686-pae', each 
53.3MiB. Their total  weight of 53*13 is huge. 
May I delete their?
 Thanks all.
  

Re: No USB with qemu+macOS+USB+iPads

2023-02-06 Thread didier gaumet

Le 31/01/2023 à 21:36, stand...@gmx.net a écrit :

Hi from Germany.
Sorry, I found no other way/group to ask.

I want to use macOS to maintain some iPads for my school.

[...]

That is not exactly what you want but there is the irecovery CLI utility 
that is packaged in Debian. I you don't have already discarded it as 
irrelevant, perhaps it could be useful in your case.


Upstream website has a presentation:
https://libimobiledevice.org/




Re: No USB with qemu+macOS+USB+iPads

2023-02-06 Thread didier gaumet

Le 02/02/2023 à 17:00, stand...@gmx.net a écrit :
[...]

- in your guest (MacOSX) VM Virtmanager window menu, click on "Virtual
Machine", then "redirect a USB peripheral",


This is greyed, I can not click it.


- if this happens while the VM is open but not started, it's normal: the 
VM has to started before this feature being available.


- if this happens while the VM is already started, it could (this is a 
mere hypothesis) be due to the lack of a guest agent in a MacOS X guest 
forbidding dynamic USB redirection.
 Then you could try to (guest being stopped, Ipad starded and Ipad USB 
cable plugged into your Debian host) to manually create your USB Ipad 
device in the guest setup, doing something like (sorry, my VirtManager 
is in french, I try to guess an english translation):
 [right click on your MacOS X guest VM] > Open > Display > Details > 
Add Hardware > USB Host Peripheral > here add your Ipad hopefully being 
listed.

Then when you start the MacOS X guest VM it would perhaps display your Ipad.

If the Ipad appears in the guest but as a USB mass storage, perhaps you 
can solve the problem with usb-modeswitch





Installing Debian11 on Lenovo P1 Gen5

2023-02-06 Thread Todor Petkov
Hello,

I am installing Debian 11 (firmware-11.6.0-amd64-DVD-1.iso ) on Lenovo
P1 Gen5 laptop, using Lemorele USB-C Hub HDMI 4K@60Hz - USB-C Docking
Station. This station has Ethernet RJ45 port with RTL8153 chipset
(according to lsusb), that's using Realtek r8152 driver.
During installation Ethernet card is recognized, it gets IP address,
etc, but once installation is done and I boot into Linux GUI, it does
not show any network adapter. I tried loading r8152/cdc_ether/usbnet
drivers, but to no avail. If I connect the docking station via USB-C
to USB-A adapter on USB-A port, Ethernet card is recognized after
installation. At the same time, the docking station works for other
activities, like USB drives, monitor/keyboard on USB-A ports, etc.
Also, I tried it on another laptop (Dell Latitude 5521) on USB-C port
and it's working as expected. Once I managed  to install backports
kernel (either via USB-A adapter or another USB Ethernet card), the
docking station starts working on USB-C port.
Can anyone give a clue how to make the Ethernet card work on USB-C
without installing the backports kernel? It will be installed
eventually, but before this I need network somehow to install and
since the WiFi is not working even with backports kernel (that's
another story), the only network card that can work is the Realtek
one.

Regards



Re: initrd sizes mushroomed several months ago

2023-02-06 Thread Anssi Saari
David Wright  writes:

> You presumably aren't running 686 and amd64 kernels, then,
> unlike Felix.

It depends on the system too. My amd64 based router doesn't have
microcode in the initramfs but that's OK since microcode is handled by
the BIOS (Coreboot). Also I think the microcode's not free to
distribute, the CPU on the router is fairly old AMD-for-embedded sort of
thing and unfortunately AMD doesn't much care about those. Or cares just
enough that some updates have come out for the various security issues
of recent years but not enough to make it clear it's free to distribute.