-
-
Save xorrbit/18a6fe25a089ef4738f3 to your computer and use it in GitHub Desktop.
Setup mosh 1.2.5 on Centos 6.x
This file contains hidden or 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
#!/bin/sh | |
# Update latest epel | |
sudo yum -y instlal epel-release | |
# perl-IO-Socket-IP isn't in the repos | |
wget http://rpm.mag-sol.com/Centos/6/x86_64/perl-IO-Socket-IP-0.31-1.el6.noarch.rpm | |
sudo rpm -Uvh perl-IO-Socket-IP-0.31-1.el6.noarch.rpm | |
rm perl-IO-Socket-IP-0.31-1.el6.noarch.rpm | |
# Download and build mosh | |
sudo yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++ | |
rpmdev-setuptree | |
cd ~/rpmbuild/SOURCES | |
wget http://mosh.mit.edu/mosh-1.2.5.tar.gz | |
cd ~/rpmbuild/SPECS | |
rm mosh.spec* | |
wget https://raw.github.com/keithw/mosh/master/fedora/mosh.spec | |
rpmbuild -bb mosh.spec | |
ARCH=`uname -m` | |
sudo rpm -Uvh ~/rpmbuild/RPMS/${ARCH}/mosh-1.2.5-1.el6.${ARCH}.rpm | |
# Set iptables rule | |
sudo iptables -A INPUT -p udp -m multiport --dports 60000:61000 -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks , it did work!
fix Line 4 : yum install