Sujet : Re: Laptop as KVM to access RasPi
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.sys.raspberry-piDate : 11. Jul 2025, 08:38:40
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwv7c0fkwhr.fsf@LkoBDZeT.terraraq.uk>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
vjp2.at@at.BioStrategist.dot.dot.com writes:
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.
You’re going to need a network connection. It might be possible to
establish one over USB but ethernet or wireless will be a lot more
practical.
What OS is the laptop running?
If the laptop is running Linux then SSH and X11 forwarding is the most
common option. You can enable it in your client’s config file (see ‘man
ssh_config’ for documentation) or with the ‘ssh -X’ command-line option.
Within the SSH session, run your graphical application(s).
If the laptop is running Windows then you have a couple of options.
(1) Enable WSL2 on Windows. Use SSH and X11 forwarding from inside a
WSL2 shell, exactly as described above. This is my usual approach.
(2) Set up a remote desktop server on the Pi and use the Windows Remote
Desktop application to connect to it. You get a complete desktop
session this way.
On anything Debian-derived, to install the server:
apt install xrdp
If you don’t have a desktop environment (or some other kind of X
session) installed you’ll need to install that too. If it’s a normal
RPi OS install then you probably already have one.
Notes:
* I mostly do the above with x86 targets. Pi is not different in any way
that’s relevant, though.
* Other approaches exist (e.g. VNC); I’ve limited myself to the ones
that I use.
-- https://www.greenend.org.uk/rjk/