Skip to content

Instantly share code, notes, and snippets.

@goldeneggg
Created April 14, 2012 07:50
Show Gist options
  • Save goldeneggg/2382738 to your computer and use it in GitHub Desktop.
Save goldeneggg/2382738 to your computer and use it in GitHub Desktop.
CentOS6.2にmoshを導入してMacから接続する

Mosh

% sudo yum -y install boost

% 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/local/lib --prefix=/usr/local 
% make
% sudo make install

% git clone http://github.com/rurban/mosh.git
% cd mosh
% export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
% ./autogen.sh   
% ./configure --prefix=/usr/local
% make
% sudo make install

% sudo yum -y install perl-IO-Pty-Easy

% 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 [email protected].
Mosh home page: http://mosh.mit.edu

% cd /usr/local/bin
% sudo mv mosh-server mosh-server.REAL
% sudo vi mosh-server
 #!/bin/sh
 LD_LIBRARY_PATH=/usr/local/lib:/usr/lib exec /usr/local/bin/mosh-server.REAL "$@"
% sudo chmod +x mosh-server

Client(Mac)

% 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

% mosh user@centos62
user@centos62's password: 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment