Live data from Hacker News

Mosh

jefftk.com

71–80 of 152 posts

Re: Mosh

#71
Last time I tried using things like this, it just ended becoming a VT layering monstrosity where you had like 3-4 terminal emulators all interfering with how you expect your keyboard and mouse interactions work. It's also why I gave up trying to use tmux.

It's easier for me to just pick one terminal emulator I like and spawn multiple windows of it, ssh about and deal with the woes of TCP than put up with VT layering like mosh requires.

Re: Mosh

#72
post #64
post #58

Earlier quoted context omitted.

Why do you code on a remote server?

I'm creating a PoC (well more the MVP of a company) and this includes a scrapper which requires a very reliable connection, which I don't have locally

You can code locally, push to a repository, and have the changes almost instantly on your server ready to be run.

Re: Mosh

#73
post #58
post #53

As someone who codes on a remote server the whole day, mosh is absolutely necessary and it is fantastic Advantages: - you dont see any lag when you type, it is exactly as if you were on your local machine - when network disconnect, the terminal freeze and when network is up again, the terminal becomes interactive again preserving everything in between - connection is preserved as long as the terminal is open, so even…

Why do you code on a remote server?

Pretty common for physics experiments. My computer has neither direct access to the data being collected, nor the processing power to deal with it. Sure, I could code locally, push to a repo, and then test remotely, but the additional turnaround would be obnoxious. Far easier to open up a terminal and run emacs remotely.

Re: Mosh

#75

If you use a combo of iTerm on Mac + Mosh + tmux, I highly recommend rebuilding mosh on client/server from this PR[1] which adds better support for copy & paste. Also, if you use mosh without tmux, you're missing out -- learn tmux. [1] https://github.com/mobile-shell/mosh/pull/1054

but I like screen better :P

Re: Mosh

#76
post #53

As someone who codes on a remote server the whole day, mosh is absolutely necessary and it is fantastic Advantages: - you dont see any lag when you type, it is exactly as if you were on your local machine - when network disconnect, the terminal freeze and when network is up again, the terminal becomes interactive again preserving everything in between - connection is preserved as long as the terminal is open, so even…

Drawbacks:

- No commits in github in over 9 months, PRs and issues are stacking up.

- I've had friends report clipboard broken in latest Mac OS X version.

Don't get too attached to mosh.

Re: Mosh

#77
post #58

Earlier quoted context omitted.

Why do you code on a remote server?

Pretty common for physics experiments. My computer has neither direct access to the data being collected, nor the processing power to deal with it. Sure, I could code locally, push to a repo, and then test remotely, but the additional turnaround would be obnoxious. Far easier to open up a terminal and run emacs remotely.

If you're using emacs, you may be able to use Tramp to remotely access the file. It depends on how IDE-ish you've got your emacs set up. As long as you've got reasonable latency I find that much nicer.

(If you already know, well, I'm sure someone else just learned something today.)

Re: Mosh

#78

If you use a combo of iTerm on Mac + Mosh + tmux, I highly recommend rebuilding mosh on client/server from this PR[1] which adds better support for copy & paste. Also, if you use mosh without tmux, you're missing out -- learn tmux. [1] https://github.com/mobile-shell/mosh/pull/1054

Mosh + tmux on an iPad Pro rocks. I can now select and copy/paste using finters or Apple Pencil.

Re: Mosh

#79
post #58

Earlier quoted context omitted.

Why do you code on a remote server?

Pretty common for physics experiments. My computer has neither direct access to the data being collected, nor the processing power to deal with it. Sure, I could code locally, push to a repo, and then test remotely, but the additional turnaround would be obnoxious. Far easier to open up a terminal and run emacs remotely.

I coded PHP like that a long time ago. There was a great editor, maybe called E or something to that tune that would made it seem as if your files were right there locally.

Re: Mosh

#80
post #53

As someone who codes on a remote server the whole day, mosh is absolutely necessary and it is fantastic Advantages: - you dont see any lag when you type, it is exactly as if you were on your local machine - when network disconnect, the terminal freeze and when network is up again, the terminal becomes interactive again preserving everything in between - connection is preserved as long as the terminal is open, so even…

I detach/reattach mosh sessions all the time, using the excellent dtach tool.
Post reply on HN