Steps to install OMNITTY MULTIPLE SSH MULTIPLEXER

Omnitty is an SSH-tool which is popularly used nowadays, It is also called as omnitty multiple-machine ssh multiplexer. The program used in Omnitty is curses-based by which one can directly take access to several machines/servers simultaneously and work on them at a time. You can direct the input to particular machine or group of a machine. In this article, we show you the steps to install Omnitty multiple ssh multiplexer.

As Omnitty is built-in terminal emulation capability you can run both screens oriented and line-oriented in the target machines. Omnitty is developed by Bruno Takahashi C. de Oliveira and it is licensed under the GNU General Public License. It supports MacOS, Ubuntu, and Linux

Omnitty depends on the libROTE Terminal Emulation Library, and the standard ncurses and libc libraries. Let’s install all required Omnitty packages.

Steps to install tmux dependency:

[root@OmNiTTY-SKS]#  yum install gcc kernel-devel make ncurses-devel
[root@OmNiTTY-SKS]#  yum install ncurses
[root@OmNiTTY-SKS]#  wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
[root@OmNiTTY-SKS]#  tar -xf libevent-2.0.22-stable.tar.gz
[root@OmNiTTY-SKS]#  cd libevent-2.0.22-stable
[root@OmNiTTY-SKS]#  ./configure --prefix=/usr/local
[root@OmNiTTY-SKS]#  make
[root@OmNiTTY-SKS]#  make install

Steps to install tmux on Linux

[root@OmNiTTY-SKS]#  wget https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz
[root@OmNiTTY-SKS]#  tar -xf tmux-2.2.tar.gz
[root@OmNiTTY-SKS]#  cd tmux-2.2
[root@OmNiTTY-SKS]#  LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
[root@OmNiTTY-SKS]#  make
[root@OmNiTTY-SKS]#  make install

Steps to download and install rote:

[root@OmNiTTY-SKS]#  wget http://prdownloads.sourceforge.net/rote/rote-0.2.8.tar.gz
[root@OmNiTTY-SKS]#  tar -zxf rote-0.2.8.tar.gz
[root@OmNiTTY-SKS]#  cd rote-0.2.8
[root@OmNiTTY-SKS]#  ./configure
[root@OmNiTTY-SKS]#  make
[root@OmNiTTY-SKS]#  su -c "make install"

Step to download and install OmniTTY:

[root@OmNiTTY-SKS]#  wget http://prdownloads.sourceforge.net/omnitty/omnitty-0.3.0.tar.gz
[root@OmNiTTY-SKS]#  tar -xzf omnitty-0.3.0.tar.gz
[root@OmNiTTY-SKS]#  cd omnitty-0.3.0
[root@OmNiTTY-SKS]#  ./configure
[root@OmNiTTY-SKS]#  make
[root@OmNiTTY-SKS]#  su -c "make install"

Omnitty is installed in /usr/local/bin, which you should put in your PATH if it is not already there. Run the program by typing omnitty at the Linux prompt.

While Installing OmniTTY, you may or may not face these issue.

OmniTTY error and Troubleshooting Steps:

Solution 1: rote-config: command not found (OR) rote-config not found in a path

[root@OmNiTTY-SKS]# wget http://prdownloads.sourceforge.net/omnitty/omnitty-0.3.0.tar.gz
[root@OmNiTTY-SKS]# tar -xzf omnitty-0.3.0.tar.gz
[root@OmNiTTY-SKS]# cd omnitty-0.3.0
[root@OmNiTTY-SKS omnitty-0.3.0]# ./configure
checking whether libROTE is installed... ./configure: line 1303: rote-config: command not found no rote-config not found in path. Is the ROTE library installed?
You can download it from http://rote.sf.net
[root@OmNiTTY-SKS omnitty-0.3.0]#
[root@OmNiTTY-SKS omnitty-0.3.0]# ln -s /usr/local/bin/rote-config /sbin/rote-config 
[root@OmNiTTY-SKS omnitty-0.3.0]# ./configure
[root@OmNiTTY-SKS omnitty-0.3.0]# make
[root@OmNiTTY-SKS omnitty-0.3.0]# su -c "make install"            #---Installed successfully#

Solution 2: libncurses.so.5: error adding symbols: DSO missing from the command line while installing omnitty.

[root@OmNiTTY-SKS]# tar -xzf omnitty-0.3.0.tar.gz
[root@OmNiTTY-SKS]# cd omnitty-0.3.0
[root@OmNiTTY-SKS omnitty-0.3.0]# ./configure
[root@OmNiTTY-SKS omnitty-0.3.0]# make
gcc -g -O2 -I/usr/local/include -Wall -DOMNITTY_VERSION=\"0.3.0\" -o omnitty minibuf.o machine.o main.o machmgr.o help.o menu.o curutil.o  -L/usr/local/lib -lrote
/usr/bin/ld: help.o: undefined reference to symbol 'delwin@@NCURSES_5.0.19991023'
//lib/x86_64-linux-gnu/libncurses.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'omnitty' failed
make: *** [omnitty] Error 1

[root@OmNiTTY-SKS omnitty-0.3.0]# ln -s /usr/local/bin/omnitty /sbin/omnitty
[root@OmNiTTY-SKS omnitty-0.3.0]# su -c "make install"                #---Installed sucesfully#

Solution 3: OmniTTY make command: /lib64/libncurses.so.5: error adding symbols: DSO missing from command line

[root@OmNiTTY-SKS omnitty-0.3.0]# make
gcc -g -O2 -I/usr/local/include -Wall -DOMNITTY_VERSION=\"0.3.0\" -o omnitty minibuf.o machine.o machmgr.o help.o menu.o main.o curutil.o  -L/usr/local/lib -lrote
/usr/bin/ld: help.o: undefined reference to symbol 'delwin'
/lib64/libncurses.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [omnitty] Error 1

#Found Solution :

Added -lncurses and -ltinfo in Makefile
Makefile looks like this :
omnitty: $(objects)
$(CC) $(CFLAGS)  -o omnitty $(objects) $(LDFLAGS) $(LIBS) -lncurses  -ltinfo

Solution 4: OmniTTY: error while loading shared libraries: librote.so.0

[root@OmNiTTY-SKS]# omnitty
omnitty: error while loading shared libraries: librote.so.0: cannot open shared object file: No such file or directory
[root@OmNiTTY-SKS]# locate librote.so.0
/home/user1/rote-0.2.8/librote.so.0.2.8
/usr/local/lib/librote.so.0
/usr/local/lib/librote.so.0.2.8
[root@OmNiTTY-SKS]#
[root@OmNiTTY-SKS]# ln -s /usr/local/lib/librote.so.0 /usr/lib64/librote.so.0

 

Steps to install OMNITTY MULTIPLE SSH MULTIPLEXER

These are the Steps to install OMNITTY MULTIPLE SSH MULTIPLEXER. Write us if you faced any issue while installation OmniTTY







1 thought on “Steps to install OMNITTY MULTIPLE SSH MULTIPLEXER”

  1. Hi sagar, this blog is awesome.
    please add how we create omnifile and how we can access it in omnitty terminal.
    Thanks

Comments are closed.