Build Mosh

Why do we want to build mosh from source?

At the time when this doc was written, mosh does not support:

  • true color: True color allows you to have 24bit colors in your terminal
  • OSC 52: OSC 52 allows you to copy text to you laptop from your terminal applications

If you’d like to support these when using mosh, you’ll have to build it from source.

How to build mosh from source?

sudo apt-get install automake libtool g++ protobuf-compiler libprotobuf-dev libboost-dev libutempter-dev libncurses5-dev zlib1g-dev libio-pty-perl libssl-dev pkg-config -y
git clone
cd mosh
sudo make install