Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an online CMD/Terminal using JavaScript

Tags:

javascript

cmd

I would like to deploy a CMD/Terminal for a website using javascript. A CMD maybe just for running python and other basic commands. How should I go about doing so? Are there any examples? And is JavaScript the best way to go about doing this? Thanks!

like image 273
user1349133 Avatar asked Feb 16 '26 16:02

user1349133


2 Answers

Termlib is what you are looking for I guess. It provides a "Terminal" object and you can extend it according to your requirement.

Demos could be found here

like image 133
xiao 啸 Avatar answered Feb 19 '26 06:02

xiao 啸


Examples: Anyterm, Ajaxterm

You could also use ssh if your firewall / site setup will allow it.

Or you could use vnc to get gui access, if you run a gui on your servers.

I think the best way to get access is either ssh or vnc. If you use Windows servers then remote desktop.

The main reason I could see for using a javascript based in browser UI would be if a firewall between you and the server won't allow ssh and you don't want to or can't configure vnc on the machines involved.

Finally, a really nice looking example of this kind of access on a web site is at... koding.com I saw these guys at the SFJS Meetup a few months back.

like image 36
joshp Avatar answered Feb 19 '26 06:02

joshp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!