Skip to content

Instantly share code, notes, and snippets.

@palexander
Last active January 21, 2022 14:03
Show Gist options
  • Save palexander/2975305 to your computer and use it in GitHub Desktop.
Save palexander/2975305 to your computer and use it in GitHub Desktop.

Revisions

  1. palexander revised this gist Aug 27, 2013. 1 changed file with 22 additions and 12 deletions.
    34 changes: 22 additions & 12 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,33 @@
    # 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=${HOME}
    ./configure --prefix=$PREFIX
    make
    make install
    cd ..

    # You'll need this setting to have mosh find the Protocol Buffer lib
    export PKG_CONFIG_PATH=/home/your_user/lib/pkgconfig
    export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig

    # Install mosh
    wget https://github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz
    tar -xf mosh-1.2.2.tar.gz
    cd mosh-1.2.2
    ./configure --prefix=/home/your_user
    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
    # You can run this to verify the install worked
    # Running mosh-server should give you a pid and a key to use if you want to connect manually
    export LD_LIBRARY_PATH=/home/your_user/lib
    mosh-server
    # To connect to the server in the future, run this on your local machine:
    mosh --server="LD_LIBRARY_PATH=/home/your_user/lib /home/your_user/bin/mosh-server" your_user@your_server.dreamhost.com

    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)
  2. palexander revised this gist Aug 27, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    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=/home/your_user
    ./configure --prefix=${HOME}
    make
    make install
    cd ..
  3. palexander revised this gist Jun 22, 2012. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,23 @@
    # 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=/home/your_user
    make
    make install
    cd ..
    # You'll need this setting to have mosh find the Protocol Buffer lib
    export PKG_CONFIG_PATH=/home/your_user/lib/pkgconfig
    # Install mosh
    wget https://github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz
    tar -xf mosh-1.2.2.tar.gz
    cd mosh-1.2.2
    ./configure --prefix=/home/your_user
    make
    make install
    # You can run this to verify the install worked
    # Running mosh-server should give you a pid and a key to use if you want to connect manually
    export LD_LIBRARY_PATH=/home/your_user/lib
    # Now, to connect to the server, run this on your local machine:
    mosh-server
    # To connect to the server in the future, run this on your local machine:
    mosh --server="LD_LIBRARY_PATH=/home/your_user/lib /home/your_user/bin/mosh-server" your_user@your_server.dreamhost.com
  4. palexander revised this gist Jun 22, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,5 @@ cd mosh-1.2.2
    make
    make install
    export LD_LIBRARY_PATH=/home/your_user/lib
    # Now, to connect to the server, run this on your local machine:
    mosh --server="LD_LIBRARY_PATH=/home/your_user/lib /home/your_user/bin/mosh-server" your_user@your_server.dreamhost.com
  5. palexander created this gist Jun 22, 2012.
    16 changes: 16 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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=/home/your_user
    make
    make install
    cd ..
    export PKG_CONFIG_PATH=/home/your_user/lib/pkgconfig
    wget https://github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz
    tar -xf mosh-1.2.2.tar.gz
    cd mosh-1.2.2
    ./configure --prefix=/home/your_user
    make
    make install
    export LD_LIBRARY_PATH=/home/your_user/lib
    mosh --server="LD_LIBRARY_PATH=/home/your_user/lib /home/your_user/bin/mosh-server" your_user@your_server.dreamhost.com