• Re: Laptop as KVM to access RasPi

    From s|b@me@privacy.invalid to comp.sys.raspberry-pi on Mon Jul 14 14:49:42 2025
    From Newsgroup: comp.sys.raspberry-pi

    On Sun, 13 Jul 2025 22:02:20 +0100, NY wrote:

    Doesn't work when connected through USB.

    Sorry I hadn't realised that connection by USB was essential and that
    you couldn't alternatively use a network (Ethernet/Wifi) connection.

    Don't know why the OP would insist on USB; he didn't mention what RPi he
    is using. But I agree on Ethernet or WiFi, even headless (SSH).
    --
    s|b
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From mm0fmf@none@invalid.com to comp.sys.raspberry-pi on Mon Jul 14 15:29:32 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 14/07/2025 13:49, s|b wrote:
    On Sun, 13 Jul 2025 22:02:20 +0100, NY wrote:

    Doesn't work when connected through USB.

    Sorry I hadn't realised that connection by USB was essential and that
    you couldn't alternatively use a network (Ethernet/Wifi) connection.

    Don't know why the OP would insist on USB; he didn't mention what RPi he
    is using. But I agree on Ethernet or WiFi, even headless (SSH).

    Maybe because he has no Ethernet on a PI Zero (w)

    The request is how to do KVM stuff via a USB connection.


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From druck@news@druck.org.uk to comp.sys.raspberry-pi on Tue Jul 15 21:04:52 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 11/07/2025 07:30, mm0fmf wrote:
    On 11/07/2025 06:23, David Taylor wrote:
    On 11/07/2025 01:37, vjp2.at@at.BioStrategist.dot.dot.com wrote:
    If I connect the RasPi to my laptop by USB is there any software
    which allows my laptop to be KVM (Keyboard, Video, Mouse)?

    PuTTY may work, but it doesn't have graphics.

    I recall PuTTY having some X11 extension, but I use VNC which, I
    suspect, is LAN/WiFi only.

    Setup RNDIS and you have a network connection between the two over USB.

    The first search hit on RNDIS for Linux was how they are trying to
    expunge the horribly insecure Microsoft protocol from the Linux kernel!

    ---druck
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From mm0fmf@none@invalid.com to comp.sys.raspberry-pi on Wed Jul 16 21:14:28 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 15/07/2025 21:04, druck wrote:
    On 11/07/2025 07:30, mm0fmf wrote:
    On 11/07/2025 06:23, David Taylor wrote:
    On 11/07/2025 01:37, vjp2.at@at.BioStrategist.dot.dot.com wrote:
    If I connect the RasPi to my laptop by USB is there any software
    which allows my laptop to be KVM (Keyboard, Video, Mouse)?

    PuTTY may work, but it doesn't have graphics.

    I recall PuTTY having some X11 extension, but I use VNC which, I
    suspect, is LAN/WiFi only.

    Setup RNDIS and you have a network connection between the two over USB.

    The first search hit on RNDIS for Linux was how they are trying to
    expunge the horribly insecure Microsoft protocol from the Linux kernel!

    ---druck
    Oh noes!!!!!! MS and insecure protocols.

    Yes, RNDIS is insecure. But do you know what, if you allow someone to
    plug any random device into your computer then insecure protocols are
    the least of your problems. If it's your device and your computer then
    it's no big deal.

    It's still in the 6.12.x kernel on Raspberry Pi OS.

    And when it's dropped then stand by for howls from just about every
    Android owner on the planet when they find USB Tethering no long works
    with Linux.

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Theo@theom+news@chiark.greenend.org.uk to comp.sys.raspberry-pi on Thu Jul 17 12:39:24 2025
    From Newsgroup: comp.sys.raspberry-pi

    mm0fmf <none@invalid.com> wrote:
    On 15/07/2025 21:04, druck wrote:
    On 11/07/2025 07:30, mm0fmf wrote:
    On 11/07/2025 06:23, David Taylor wrote:
    On 11/07/2025 01:37, vjp2.at@at.BioStrategist.dot.dot.com wrote:
    If I connect the RasPi to my laptop by USB is there any software
    which allows my laptop to be KVM (Keyboard, Video, Mouse)?

    PuTTY may work, but it doesn't have graphics.

    I recall PuTTY having some X11 extension, but I use VNC which, I
    suspect, is LAN/WiFi only.

    Setup RNDIS and you have a network connection between the two over USB.

    The first search hit on RNDIS for Linux was how they are trying to
    expunge the horribly insecure Microsoft protocol from the Linux kernel!

    ---druck
    Oh noes!!!!!! MS and insecure protocols.

    Yes, RNDIS is insecure. But do you know what, if you allow someone to
    plug any random device into your computer then insecure protocols are
    the least of your problems. If it's your device and your computer then
    it's no big deal.

    If it's your device and your computer you could just use CDC-NCM instead.
    I've used that successfully between Pi-like devices (Beaglebone Black) and FreeBSD servers.

    Here's the script, based on the Beaglebone Linux's bb-usb-gadgets package: https://github.com/CTSRD-CHERI/morello-bbb-ubuntu-image-builder/blob/master/morello/bb-start-acm-ncm-rndis-old-gadget

    It does some combination of USB serial (CDC-ACM), mass storage, RNDIS and
    NCM depending on which options you pick.

    Theo
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Theo@theom+news@chiark.greenend.org.uk to comp.sys.raspberry-pi on Thu Jul 17 13:07:59 2025
    From Newsgroup: comp.sys.raspberry-pi

    Theo <theom+news@chiark.greenend.org.uk> wrote:
    Here's the script, based on the Beaglebone Linux's bb-usb-gadgets package: https://github.com/CTSRD-CHERI/morello-bbb-ubuntu-image-builder/blob/master/morello/bb-start-acm-ncm-rndis-old-gadget

    Found the upstream bookworm version: https://github.com/rcn-ee/repos/tree/master/bb-usb-gadgets/suite/bookworm/debian
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From mm0fmf@none@invalid.com to comp.sys.raspberry-pi on Fri Jul 18 20:05:58 2025
    From Newsgroup: comp.sys.raspberry-pi

    On 17/07/2025 12:39, Theo wrote:
    mm0fmf <none@invalid.com> wrote:
    On 15/07/2025 21:04, druck wrote:
    On 11/07/2025 07:30, mm0fmf wrote:
    On 11/07/2025 06:23, David Taylor wrote:
    On 11/07/2025 01:37, vjp2.at@at.BioStrategist.dot.dot.com wrote:
    If I connect the RasPi to my laptop by USB is there any software
    which allows my laptop to be KVM (Keyboard, Video, Mouse)?

    PuTTY may work, but it doesn't have graphics.

    I recall PuTTY having some X11 extension, but I use VNC which, I
    suspect, is LAN/WiFi only.

    Setup RNDIS and you have a network connection between the two over USB. >>>
    The first search hit on RNDIS for Linux was how they are trying to
    expunge the horribly insecure Microsoft protocol from the Linux kernel!

    ---druck
    Oh noes!!!!!! MS and insecure protocols.

    Yes, RNDIS is insecure. But do you know what, if you allow someone to
    plug any random device into your computer then insecure protocols are
    the least of your problems. If it's your device and your computer then
    it's no big deal.

    If it's your device and your computer you could just use CDC-NCM instead. I've used that successfully between Pi-like devices (Beaglebone Black) and FreeBSD servers.

    Here's the script, based on the Beaglebone Linux's bb-usb-gadgets package: https://github.com/CTSRD-CHERI/morello-bbb-ubuntu-image-builder/blob/master/morello/bb-start-acm-ncm-rndis-old-gadget

    It does some combination of USB serial (CDC-ACM), mass storage, RNDIS and
    NCM depending on which options you pick.

    Theo
    That's neat and cute and works nicely. It's cleaner than the one I use
    at work for setting up RNDIS gadgets on our USB IP for customers.
    Customers always ask for RNDIS but offering NCM will maybe make them move.

    Of course it took longer to figure out why naff all happened when trying
    this on an RPI Zero and that's because I'd forgotten to load the USB
    driver in OTG mode. Even Windows played nicely with installing its NCM
    drivers which is probably a first.

    If only my modern-ish Android 14 phone would use NCM not RNDIS.

    --- Synchronet 3.21a-Linux NewsLink 1.2