• 批量SSH操作工具---OmniTTY安装


    安装rote

    # pwd

    /tmp/rote-0.2.8

    # ./configure

    # make

    # make install

    ......

    mkdir -p /usr/local/include/rote

    rm -f /usr/local/include/rote/*.h

    cp rote.h /usr/local/include/rote

    mkdir -p /usr/local/lib

    cp librote.so.0.2.8 /usr/local/lib

    cd /usr/local/lib && ln -sf librote.so.0.2.8 librote.so

    cd /usr/local/lib && ln -sf librote.so.0.2.8 librote.so.0

    chmod 755 rote-config

    mkdir -p /usr/local/bin

    cp -p rote-config /usr/local/bin

    -----------------------------------------------------------

    ROTE - Our Own Terminal Emulation Library v0.2.8

    Include files installed at: /usr/local/include

    Library files installed at: /usr/local/lib

    rote-config executable : /usr/local/bin/rote-config

    To find out what compiler arguments you should use to

    compile programs that use rote, use the rote-config

    program (make sure /usr/local/bin is in your path).

    -----------------------------------------------------------

    ......

    :如果报错”Need ncurses to compile librote“,需要安装ncurses开发包,

    CentOS

    # yum install ncurses-devel

    ubuntu

    $ apt-get install libncurses5-dev

    将rote的so文件加入系统查找路径里(不然omnitty运行时会提示找不到so)

    # whereis librote.so.0

    librote.so: /usr/local/lib/librote.so.0 /usr/local/lib/librote.so

    # vim /etc/ld.so.conf.d/omnitty-x86_64.conf

    添加如下内容:

    /usr/local/lib

    # ldconfig

    安装OmniTTY

    # pwd

    /tmp/omnitty-0.3.0

    # ./configure

    # make

    # make install

    ......

    mkdir -p /usr/local/bin

    cp omnitty /usr/local/bin

    mkdir -p /usr/local/man/man1

    cp omnitty.1 /usr/local/man/man1

    ......

    使用

    # omnitty

    菜单

    底栏

    image_thumb6

    “F1”菜单栏

    image_thumb9

    ”帮助说明“信息(简单的E文)

    image_thumb14

    添加主机/主机列表

    单个主机

    F5--->”Add:172.18.8.7“

    image_thumb15

    主机列表

    F5--->”Add:@主机列表文件路径“

    image_thumb17

    :文件路径不要太长,太长也输不进去。:-(

    image

    注:ssh退出的机器想再次登陆,进不去:-( 重新加。

    image

    SecureCRT、putty、Xshell不同终端打开OmniTTY,显示上各有不同,示例里的截图是在shellinabox里进行的(显示相对正常)

    默认运行omnitty,机器列表项显示不全,参考man omnitty,添加参数”-W”设置显示长度,我是用的alias omnitty=’omnitty –W 15’

  • 相关阅读:
    [zjoi2012]灾难——拓扑排序+灭绝树
    [bzoj3590]Quare——状压DP
    [bzoj4144]Petrol——最小生成树+最短路
    [bzoj2407]探险——重构图+最短路
    [bzoj2725]故乡的梦——最短路+线段树
    [bzoj2118]墨墨的等式——同余最短路
    [loj2736][JOISC 2016 Day3]回转寿司——分块+堆
    PHP学习笔记二十四【Get Set】
    PHP学习笔记二十三【This】
    PHP学习笔记二十二【静态方法二】
  • 原文地址:https://www.cnblogs.com/zhangxinglong/p/5318475.html
Copyright © 2020-2023  润新知