Hacker News new | ask | show | jobs
by vietjtnguyen 2285 days ago
Something I've done before to share a screen with coworkers is to work in tmux and start a web tty service like gotty (https://github.com/yudai/gotty). After you resolve the standard network issues (port visibility and whatnot) you just need to configure it with `tmux attach` as the starting command. tmux already supports shared sessions if multiple terminals attach to the same session, the session window size simply shrinks to the minimum of all clients. If you've established trust then you can use --permit-write with gotty to actually work in the same terminal. Hop into a voice chat and you've got pair programming.
1 comments

If text editing is all you need, and both sides are comfortable with the tools, then what you’ve suggested is definitely faster than Screen (tmux sends text, we send pixels).

But if the guest needs to see something else on the host’s computer (if you’re working together on a webpage, or a desktop app), then whole-desktop screen sharing is the best approach.

Screen definitely isn’t the best tool for every job. But it’s great for when you want everyone on the same page, seeing the same thing, and able to talk about the content of your screen and even control it together.

I guess I should have qualified my post, I did look at Screen (OP) and it definitely does more than just sharing a terminal. It also just reminded me of something I've done before (Screen -> screen -> tmux -> gotty, the mind is so good at connections) which I thought was apropos and worth sharing.