I have 2 monitors, 2 keyboards, 2 mice, and 1 computer. How can I set it up for shared use?

I know this was possible on X but with Wayland maturing I assume it’s moved over.

  • markstos@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    16 days ago

    You can do it but using a junk second computer with no hard drive, a slow CPU and little memory.

    This is the thin-client concept and it has been in use going all the way back to mainframes. It lost popularity when personal computers- PCs- got cheap.

    Works like this:

    The thin client BIOS is set to boot over the network. It locates your desktop, downloads a small OS and displays a login, to your remote desktop.

    From there, it’s passing through the keyboard and mouse input to remote server and displaying the output. The real CPU work is all handled by the server.

    The whole Edubuntu distro was built around this design. You could have one decent computer in a school computer lap and 20 crappy thin clients and everything would feel pretty snappy and work pretty well. Cheap and low maintenance to admin with only one hard drive / distro to maintain!

  • Kajika@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    16 days ago

    It is possible, but it is not a wayland limitation per-say but a compositor one (aka the wayland server), and I say “limitation” if the compositor doesn’t have multi-display option.

    Technically wayland is not the issue:

    If you look at your /run/user/[uid] (uid is probably 1000) you will see the wayland “displays” (socket here), usually named wayland-X. The /run[...] is usually set from $XDG_RUNTIME_DIR while the wayland socket to be used is set in the environment variable $WAYLAND_DISPLAY. So running an application in a 2nd session would just require setting the $WAYLAND_DISPLAY to an other value (that exists).

    It seems that Sway is able to do this with the output command.

  • muusemuuse@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 days ago

    If you have only one GPU you cant*. If you have two, you can make each its own seat.

    *xvfb to create a second seat, make a headless session, stream it to a cheap weak thing connected to that other monitor. Cheaper than a second GPU.