News for hackers. Stuff that matters.
Re:The Surface Book 2 is everything the MacBook Pro should be by martin_ky on Wednesday June 27, 2018 @03:41PM (#17411155)
> It’s 2018 and I still see people walking around with Windows laptop lids open because they presumably have no confidence in Windows’ ability to sensibly preserve state after closing the lid.

At my workplace it's about 60:40 Windows to Mac user ratio. Regardless of the machine, nobody closes the lid when moving in the office between desks and meeting rooms. So, I'd say it's probably not that.

Re:The Surface Book 2 is everything the MacBook Pro should be by ams6110 on Wednesday June 27, 2018 @03:49PM (#17411221)
Probably don't want to lose their ssh connections.
Re:The Surface Book 2 is everything the MacBook Pro should be by diroussel on Wednesday June 27, 2018 @05:10PM (#17411886)
Back in 2004 I had an ssh terminal open from my Mac (12" PowerBook) to my home Linux server. I closed the lid and took the laptop away with for a trip. For some reason I didn't use the laptop during the week. When I got back home 6 days later I opened the laptop and saw the ssh session. I tried it out and it still worked! I was amazed!

The ssh client had no keep alive. And the sshd had no keep alive. There was not firewall and a long DHCP lease. So it all just worked.

But because of firewalls aggressivly closing xonnections, these days we tend to need keep alives and so I don't this this would work today.

Re:The Surface Book 2 is everything the MacBook Pro should be by synthmeat on Wednesday June 27, 2018 @03:52PM (#17411249)
Re:The Surface Book 2 is everything the MacBook Pro should be by Xeoncross on Wednesday June 27, 2018 @04:25PM (#17411536)
mosh doesn't support port forwarding. There is a $400+ bounty for the feature.
Re:The Surface Book 2 is everything the MacBook Pro should be by SirensOfTitan on Wednesday June 27, 2018 @05:54PM (#17412169)
Re:The Surface Book 2 is everything the MacBook Pro should be by Xeoncross on Wednesday June 27, 2018 @06:12PM (#17412305)
Great, they seem to have just solved `-R` (reverse) tunnels: https://github.com/MisterTea/EternalTerminal/pull/80
Re:The Surface Book 2 is everything the MacBook Pro should be by brotherjerky on Wednesday June 27, 2018 @05:38PM (#17412043)
Link? I'll throw in $100 right now
Re:The Surface Book 2 is everything the MacBook Pro should be by Xeoncross on Wednesday June 27, 2018 @06:09PM (#17412285)
I'm sure many people would appreciate that gesture

https://github.com/mobile-shell/mosh/issues/337

Re:The Surface Book 2 is everything the MacBook Pro should be by koko775 on Wednesday June 27, 2018 @04:58PM (#17411812)
EternalTerminal does though, and it integrates better with tmux.
Re:The Surface Book 2 is everything the MacBook Pro should be by wslh on Wednesday June 27, 2018 @04:59PM (#17411820)
~$ 400 ? Not tempting at all.
Re:The Surface Book 2 is everything the MacBook Pro should be by shpx on Wednesday June 27, 2018 @09:31PM (#17413392)
If you have tmux or your remote machine, you can add this alias to your mac's bashrc

    alias my-server='ssh server-hostname -t "tmux new-session -s user || tmux attach-session -t user"'
It will connect to a tmux session on the remote machine if it exists or start a new one if it doesn't. If you Cmd+w your terminal window or disconnect, the tmux session stays running on the remote machine.

You could also tell it to try reconnecting every second and bind it to something easy to type like 'kj' (too bad df is already taken)

    alias kj='while true; do my-server; sleep 1; done'
Re:The Surface Book 2 is everything the MacBook Pro should be by oso2k on Wednesday June 27, 2018 @04:25PM (#17411532)
There’s tmux, abduco, & screen for that on Linux.
Re:The Surface Book 2 is everything the MacBook Pro should be by philsnow on Wednesday June 27, 2018 @05:26PM (#17411989)
mosh is an infinitely better user experience for certain use cases, particularly poor/intermittent connections. session establishment is very slow and requires a lot of round-trips, and if you have high latency and packet loss, it becomes painful. if you establish a session once with mosh, you don't have to establish connections after that, you just blit UDP packets.
Re:The Surface Book 2 is everything the MacBook Pro should be by bubblethink on Thursday June 28, 2018 @01:15AM (#17414243)
mosh on its own doesn't handle scrollback buffer. So you're back to tacking on other things like tmux on top.
Re:The Surface Book 2 is everything the MacBook Pro should be by synthmeat on Wednesday June 27, 2018 @05:32PM (#17412016)
Those three are only neighbours to maintaining ssh connections problem.
Re:The Surface Book 2 is everything the MacBook Pro should be by glup on Wednesday June 27, 2018 @06:54PM (#17412594)
You can run those on the remote side of the mosh session
Re:The Surface Book 2 is everything the MacBook Pro should be by satysin on Wednesday June 27, 2018 @06:26PM (#17412403)
Modern Standby/Connected Standby in Windows 10 won't lose any network connections while in standby.
Re:The Surface Book 2 is everything the MacBook Pro should be by emsy on Wednesday June 27, 2018 @04:44PM (#17411701)
Regardless of the reasons for people not closing their laptop lids, these issues exist and they shouldn't.