sh 在本地安装mosh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在本地安装mosh相关的知识,希望对你有一定的参考价值。

#!/bin/sh


# this script does absolutely ZERO error checking.   however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08.  clearly, the version numbers
# and/or URLs should be made variables.  cheers,  zmil...@cs.wisc.edu


mkdir mosh
cd mosh

ROOT=`pwd`

echo "==================================="
echo "about to set up everything in $ROOT"
echo "==================================="

mkdir build
mkdir install

cd build
curl -O http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
curl -O http://cloud.github.com/downloads/keithw/mosh/mosh-1.2.2.tar.gz
tar zxvf protobuf-2.4.1.tar.gz
tar zxvf mosh-1.2.2.tar.gz

echo "================="
echo "building protobuf"
echo "================="

cd $ROOT/build/protobuf-2.4.1
./configure --prefix=$HOME/local --disable-shared
make install


echo "============="
echo "building mosh"
echo "============="

cd $ROOT/build/mosh-1.2.2
export PROTOC=$HOME/local/bin/protoc
export protobuf_CFLAGS=-I$HOME/local/include
export protobuf_LIBS=$HOME/local/lib/libprotobuf.a

./configure --prefix=$HOME/local
make install

echo "==="
echo "if all was successful, binaries are now in $ROOT/install/mosh/bin"
echo "==="

以上是关于sh 在本地安装mosh的主要内容,如果未能解决你的问题,请参考以下文章

sh 轻松连接ssh / mosh服务器

[笔记]mosh使用笔记

sh 修复oh-my-zsh默认主题的“➜”和“✗”,使某些终端下的光标位置错误(例如Mosh Chrome App,Termius [Chrome App]

解决mosh: Nothing received from server on UDP port 60001 环境: centos7.1

sh 在CentOS 7上安装本地Python 2.7.10

markdown 可以代替tmux的ssh工具mosh