Browser based Web Linux Console -- Serial Console

Below are quite promising. http://www.unixmen.com/ajaxterm-a-web-based-terminal-that-help-you-use-ssh-f... http://www.web-console.org/ http://www.tecmint.com/shell-in-a-box-a-web-based-ssh-terminal-to-access-rem... http://xmodulo.com/access-ssh-terminal-web-browser-linux.html http://www.unixmen.com/keybox-web-based-ssh-console-manage-multiple-ssh-sess...

On 21-10-2014 06:56, Yu Xin Huo wrote:
Below are quite promising.
http://www.unixmen.com/ajaxterm-a-web-based-terminal-that-help-you-use-ssh-f...
http://www.tecmint.com/shell-in-a-box-a-web-based-ssh-terminal-to-access-rem...
http://xmodulo.com/access-ssh-terminal-web-browser-linux.html
http://www.unixmen.com/keybox-web-based-ssh-console-manage-multiple-ssh-sess...
Those apps look nice, but is there a supported/easy way to integrate them to Kimchi? As far as I could tell, those apps are meant to run on their own services only.

backend: 1. server side need to provide a websocket url for UI to connect, some parameter is needed to identify the guest. 2. the websocket receive linux command from client and pass to guest serial console through API provided by qemu/libvirt/virsh. also get output from guest serial console and send back to UI to display as command result. fontend: 1. a html show a console like text box for input. 2. connect to websocket url when loaded. 3. accept user input and send out to websocket. 4. accept websocket message and display in the text box. I failed to get below to work today, I will continue to try tomorrow. I think it is easy to write such a html command line tool if we can not get one that work well. https://github.com/chjj/term.js On 10/21/2014 9:17 PM, Crístian Viana wrote:
On 21-10-2014 06:56, Yu Xin Huo wrote:
Below are quite promising.
http://www.unixmen.com/ajaxterm-a-web-based-terminal-that-help-you-use-ssh-f...
http://www.tecmint.com/shell-in-a-box-a-web-based-ssh-terminal-to-access-rem...
http://xmodulo.com/access-ssh-terminal-web-browser-linux.html
http://www.unixmen.com/keybox-web-based-ssh-console-manage-multiple-ssh-sess...
Those apps look nice, but is there a supported/easy way to integrate them to Kimchi? As far as I could tell, those apps are meant to run on their own services only.

I downloaded the src and looked into the code of apps below: I decide to use https://github.com/jcubic/jquery.terminal. It supports command history, try http://terminal.jcubic.pl/#demo. I think the license(Licensed under GNU LGPL Version 3 license <http://www.gnu.org/licenses/lgpl.html>) is ok. I will create a javascript interpreter which talk with the kimchi web socket at server side. Serial Console will requires login, let us discuss how the session(login token) to be reserved across browser, web socket, serial console. --------------- http://code.google.com/p/shellinabox/ http://shellinabox.com/index-old.html ---------------- http://www.web-console.org/ https://github.com/nickola/web-console ---------------- https://github.com/jcubic/jquery.terminal ----------------- http://www.unixmen.com/ajaxterm-a-web-based-terminal-that-help-you-use-ssh-f... http://antony.lesuisse.org/software/ajaxterm/ On 10/23/2014 5:52 PM, Yu Xin Huo wrote:
backend: 1. server side need to provide a websocket url for UI to connect, some parameter is needed to identify the guest. 2. the websocket receive linux command from client and pass to guest serial console through API provided by qemu/libvirt/virsh. also get output from guest serial console and send back to UI to display as command result.
fontend: 1. a html show a console like text box for input. 2. connect to websocket url when loaded. 3. accept user input and send out to websocket. 4. accept websocket message and display in the text box.
I failed to get below to work today, I will continue to try tomorrow. I think it is easy to write such a html command line tool if we can not get one that work well. https://github.com/chjj/term.js
On 10/21/2014 9:17 PM, Crístian Viana wrote:
On 21-10-2014 06:56, Yu Xin Huo wrote:
Below are quite promising.
http://www.unixmen.com/ajaxterm-a-web-based-terminal-that-help-you-use-ssh-f...
http://www.tecmint.com/shell-in-a-box-a-web-based-ssh-terminal-to-access-rem...
http://xmodulo.com/access-ssh-terminal-web-browser-linux.html
http://www.unixmen.com/keybox-web-based-ssh-console-manage-multiple-ssh-sess...
Those apps look nice, but is there a supported/easy way to integrate them to Kimchi? As far as I could tell, those apps are meant to run on their own services only.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

I tried jquery terminal today and get below: 1. each time user input a command and press 'enter', I can get notified and get that input. 2. this input can be sent to kimchi backend through websocket. 3. kimchi backend forward this command to guest serial console, guest run it and response back the command result. 4. kimchi backend send the command result back to UI through websocket. 5. UI get the command result and call jquery terminal API to show it there. Issues to discuss: 1. text editor support like 'vim', without other js library support, only jquery terminal, no way to support text editor. 2. any other special command need special handling you see, welcome to discuss.
participants (2)
-
Crístian Viana
-
Yu Xin Huo