this post was submitted on 18 Sep 2024
48 points (100.0% liked)

Selfhosted

40006 readers
874 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello all, I'm looking for a switch/kvm for my home setup. ive been through a few tries and none of them have worked for one reason or another.

I have two machines,

A windows 11 work laptop

  • USB-C out, both USB and display port.
  • HDMI out
  • USB 2.0 out

A Ubuntu based personal server

  • Displayport out
  • USB-C out (no Displayport)

For displays, I have a single double wide 4k monitor

Additionally I have a USB-C hub all my peripherals are connected to.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago (3 children)

One of them is a laptop, why ssh to the server isn't an option? Set up tmux on the server so it always connects to the same session, so you can just continue where you left last time. If you need desktop support, rdp in gnome works really well.

E.g if you connect with this command, and tmux is installed on the server, it will start a new session named "main". If a session with that name exists it will connect to that:

ssh -t [email protected] tmux new-session -A -s main

Add something to .bashrc on the server to always do the same if you work on that phisically:

if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
tmux new-session
fi
[–] [email protected] 3 points 1 month ago (2 children)

I do plan to primarily ssh into my box but I'd still like plain old physical access, particularly while I get things like tailscale, DNS, and a reverse proxy setup.

Id also like to make sure my work PC and home PC are completely segregated for legal reasons, but I plan to to ssh into it from a different laptop anyway.

[–] [email protected] 2 points 1 month ago (1 children)

Use WSL on the laptop for ssh, that's actually a VM. VM separation should work correctly, or we have a much bigger problem. Just reset WSL, everything should be wiped related to the ssh sessions. Work IT would maybe allow that.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

Note that some issue devices have VT-x disabled and the bios locked down by Corp IT for one reason or another, so a VM may not actually be possible from the work issue device here.