Last active
January 21, 2022 14:03
-
-
Save palexander/2975305 to your computer and use it in GitHub Desktop.
Compiling and running mosh on Dreamhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to @samsonjs for the cleaned up version: | |
# https://gist.github.com/samsonjs/4076746 | |
PREFIX=$HOME | |
VERSION=1.2.3 | |
# Install Protocol Buffers | |
wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 | |
tar -xf protobuf-2.4.1.tar.bz2 | |
cd protobuf-2.4.1 | |
./configure --prefix=$PREFIX | |
make | |
make install | |
cd .. | |
# You'll need this setting to have mosh find the Protocol Buffer lib | |
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig | |
# Install mosh | |
wget https://github.com/downloads/keithw/mosh/mosh-$VERSION.tar.gz | |
tar -xf mosh-$VERSION.tar.gz | |
cd mosh-$VERSION | |
./configure --prefix=$PREFIX | |
make | |
make install | |
echo You can run this to verify the install worked: | |
echo $ export LD_LIBRARY_PATH=$PREFIX/lib | |
echo $ mosh-server | |
echo (Running mosh-server should give you a pid and a key to use if you want to connect manually) | |
echo To connect to the server in the future, run this on your local machine: | |
echo $ mosh --server="LD_LIBRARY_PATH=$PREFIX/lib $PREFIX/bin/mosh-server" $USER@$(hostname -f) |
Andrew Giessel's method worked for me when running into the "configure: error: cannot find protoc, the Protocol Buffers compiler" issue.
Though I was installing from $HOME/usr, and needed to do this instead:
export PATH=$PATH:$HOME/usr/bin
Many thanks for putting this up. Helped me get mosh running on RHEL7
Was having the same problem on centos, and running
export PATH=$PATH:$HOME/usr/bin
helped.
Thanks so much for sharing this.
I've tweaked the code a bit more, fixing the broken links, updated the versions, and make the entire process a bit more automated and foolproof.
https://gist.github.com/jaywilliams/c9ffab789b3f622abc932dd4cfaaeef5
I hope it helps others out there!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use ${HOME} instead of /home/your_user