從一位Linux前輩的Blog中看到的軟體 - GateOne

節錄GateOne官網的介紹:

Gate One is an open source, web-based terminal emulator with a powerful plugin system.
It comes bundled with a plugin that turns Gate One into an amazing SSH client but Gate One can actually be used to run any terminal application.
You can even embed Gate One into other applications to provide an interface into serial consoles, virtual servers, or anything you like.
It's a great supplement to any web-based administration interface.

以下是在Linux Mint 15的安裝紀錄

安裝相依性軟體

user@localhost:~$ sudo pip install kerberos
user@localhost:~$ sudo apt-get install python-dev python-tornado

在GateOne的官方介紹中,tornado是用pip來安裝。但是在實驗中發現,不論是pip還是easy_install 安裝的tornado,在下面的安裝步驟中,執行gateone.py時會出現一個錯誤:

Traceback (most recent call last):
File "/opt/gateone/gateone.py", line 289, in 
tornado.options.enable_pretty_logging()
AttributeError: 'module' object has no attribute 'enable_pretty_logging'

在google找到的參考資料中,都是tornado的版本問題。有人提到tornado 2.4.0沒問題,但是根據實驗,使用pip install tornado==2.4.0 安裝之後還是會出現一樣的錯誤。但是如果是使用apt-get安裝的tornado (version 2.4.1) 就可以直接解決此問題。

下載並安裝:

Debian package

user@localhost:~$ wget https://github.com/downloads/liftoff/GateOne/gateone_1.1-1_all.deb
user@localhost:~$ sudo dpkg -i gateone_1.1-1_all.deb

Source tarball

user@localhost:~$ wget https://github.com/downloads/liftoff/GateOne/gateone-1.1.tar.gz
user@localhost:~$ tar  zxf gateone-1.1.tar.gz
user@localhost:~$ cd GateOne
user@localhost:~/GateOne$ sudo python setup.py install

運行server

user@localhost:~/GateOne$ cd /opt/gateone
user@localhost:/opt/gateone$ sudo ./gateone.py

完成

GateOne的設定檔是/opt/gateone/server.conf,第一次運行server時會產生設定檔。


參考資料

Comments

comments powered by Disqus