MacからLinuxサーバへ接続
% sudo yum -y install boost perl-IO-Pty-Easy
% wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
% tar -zxvf protobuf-2.4.1.tar.gz
% cd protobuf-2.4.1
% ./configure LDFLAGS=-Wl,-rpath,/usr/lib --prefix=/usr
% make
% sudo paco -D make install
% wget https://github.com/downloads/keithw/mosh/mosh-1.1.3.tar.gz
% tar zxvf mosh-1.1.3.tar.gz
% cd mosh-1.1.3
(% export PKG_CONFIG_PATH=/usr/lib/pkgconfig)
% ./autogen.sh
% ./configure --prefix=/usr
% make
% sudo paco -D make install
% mosh --help
Usage: /usr/bin/mosh [options] [--] [user@]host [command...]
--client=PATH mosh client on local machine
(default: "mosh-client")
--server=PATH mosh server on remote machine
(default: "mosh-server")
--predict=adaptive local echo for slower links [default]
-a --predict=always use local echo even on fast links
-n --predict=never never use local echo
-p NUM --port=NUM server-side UDP port
--help this message
--version version and copyright information
Please report bugs to mosh-devel@mit.edu.
Mosh home page: http://mosh.mit.edu
brew update
brew install protobuf
brew install boost
brew install pkg-config
git clone https://github.com/keithw/mosh.git
cd mosh
./autogen.sh
./configure
make
make install
% cd /usr/bin
% sudo mv mosh-server mosh-server.REAL
% sudo vi mosh-server
#!/bin/sh
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib exec /usr/bin/mosh-server.REAL "$@"
% sudo chmod +x mosh-server
% mosh vmuser@vmcentos62
vmuser@vmcentos62's password:
/home/vmuser
vmuser@vmcentos62(377) % ★OK