Re:Unix-like virtual shell inside browser
by ks on Sunday January 24, 2010 @05:45PM
(#1073938)
Very interesting. It seems that each visitor is in a self contained environment. I made a simple HTML called "test.html" that I could access from http://cb.vu/test.html. This file was only visible in my own browser,
Re:Unix-like virtual shell inside browser
by Luyt on Sunday January 24, 2010 @07:18PM
(#1074053)
Indeed, there is minimal communication between your browser and the server. Nearly everything happens locally in your browser. Many responses from the commands you can use are canned. Watch the source code to see how it's done ;-)
Re:Unix-like virtual shell inside browser
by wanderr on Sunday January 24, 2010 @09:42PM
(#1074262)
the password for root is...root
Interestingly, I ran rm -rf / as root, and it acted like it wiped out everything. reboot made it act like it was rebooting, and refreshing the page showed "you broke it!" until I deleted the appropriate cookies. Fun!
Re:Unix-like virtual shell inside browser
by kordless on Sunday January 24, 2010 @10:45PM
(#1074333)
I've been working on something like this as well, and your approach is closer to what I've done than terminal.js. To me, it makes more sense to pass the commands back to the server for parsing and handling - let JS just be the display handler. Oh, I like the tab completion stuff too.
Your source code indicates it may have an Open Source license on it. Do you have the raw source available somewhere? Happy to share what little I have done so far.
Re:Unix-like virtual shell inside browser
by TheSOB88 on Wednesday January 27, 2010 @06:31PM
(#1082346)
Hey, I wanted to meet up with you in Boulder (Qualcomm interview guy). I couldn't find your email, so I'm spamming all your comments, which is probably against the law. Please email me at [email protected], or read my longer comment: http://news.ycombinator.com/item?id=1078343
Interestingly, I ran rm -rf / as root, and it acted like it wiped out everything. reboot made it act like it was rebooting, and refreshing the page showed "you broke it!" until I deleted the appropriate cookies. Fun!
You can use "fortune" you know...
This sort of in browser shell seems to be useful for building stuff like "MongoDB Browser Shell" http://mongo.kylebanker.com/
I needed more than the traditional input text type or textarea for input I saw all the time while I was researching a solution.
Your source code indicates it may have an Open Source license on it. Do you have the raw source available somewhere? Happy to share what little I have done so far.
http://tsh.ashafa.com/static/global.js
It was really a quick experimental hack that turned into something worth dedicating a little more time to. Not my best javascript at all.
I'd mostly just want a TTY w/ OpenSSH, VNC, and RDP. Usermode Linux would be nice too.
It must be because you need an input or text area to make the virtual keyboard to appear.