Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to install mosh on openwrt #1

Open
jensolsson opened this issue Mar 2, 2018 · 5 comments
Open

Is it possible to install mosh on openwrt #1

jensolsson opened this issue Mar 2, 2018 · 5 comments

Comments

@jensolsson
Copy link

Does it work or is it unstable has a lot of bugs etc?
Can you please update README with instructions on how to build it?

@mchwalisz
Copy link
Owner

I haven't looked at that for a couple of years. Cannot give you the answer. I wouldn't expect it to work out of the box.

You are welcome to try and propose fixes, will do my best to check it. You should follow the standard OpenWRT build procedure to include it.

@Strykar
Copy link

Strykar commented Mar 26, 2019

Does it work or is it unstable has a lot of bugs etc?
Can you please update README with instructions on how to build it?

@jensolsson It works well over 4G, no issues here - OpenWrt 18.06.2 Linux x86/64 4.14.95
To build a single openwrt package, read https://forum.openwrt.org/t/compiling-a-single-package/15903

The Makefile and patches are already created.

root@apu:~# mosh-server new


MOSH CONNECT 60001 FBj0BKEb7UnO9Qp5aendJg

mosh-server (mosh 1.3.2) [build mosh 1.3.2]
Copyright 2012 Keith Winstein <[email protected]>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[mosh-server detached, pid = 32588]

@mchwalisz
Copy link
Owner

I see you have updated to the newer mosh version. Could you do pull request to update it here as well?

@schovi
Copy link

schovi commented Jul 16, 2019

@Strykar is there any manual on how to use those patches? No expert here :(

@Strykar
Copy link

Strykar commented Nov 19, 2019

@mchwalisz Sorry for the late response but I lost a hard drive and the Makefile for mosh. Unrelated, but #2 will not build.

After some discussion on #openwrt-dev@Freenode it appears a patch should be used only if upstream will accept it (at some point, shape or form.). The current patch will never be accepted upstream as it is required to test for UTF-8 (OpenWrt implies UTF-8 but does not support NLS without a custom build), my solution is to simply use sed to comment out the test so it returns true in the OpenWrt Makefile instead of a patch.

@schovi I've recreated the Makefile and am in the process of creating a feed, but you can grab it and create a mosh{client,server} package for OpenWrt, tested on 18.06.5 here. I actually spent 30 minutes writing instructions on the Mosh wiki last night but didn't save it and lost all of it due to a powercut. I will update the wiki there shortly if that helps.

I will try to get this accepted upstream to OpenWrt, I would like to cherry pick some patches related to tmux, color and large paste fixes from Mosh master as its been two years since the last release but it's not clear yet how the OpenWrt devs would feel about that and I would really like to get this package into OpenWrt.

EDIT:
Instructions to build on OpenWrt added - https://github.com/mobile-shell/mosh/wiki/Build-Instructions.
Also see https://forum.openwrt.org/t/testers-wanted-duo-2-factor-auth-and-mosh/48684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants