Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulating linux terminal in browser

I have read about Fabrice Bellard's linux simulation in browser.

How does Linux emulator in Javascript by Fabrice Bellard work?

Today I stumbled upon this site, where they are simulating full linux terminal in browser, I am able to run python, perl etc. I know they are running their site on node.js, but I couldn't figure out how they exactly simulating the terminal.

http://runnable.com/UWRl3KlLuONCAACG/read-files-from-filesystem-in-python

like image 411
DevC Avatar asked Oct 24 '13 08:10

DevC


People also ask

Can I practice Linux commands online?

Best Online Linux Terminals to Practice Linux Commands. In the first part, I'll list the online Linux terminals. These websites allow you to run regular Linux commands in a web browser so that you can practice or test them. Some websites may require you to register and log in to save your sessions.

Is there an online Linux?

An online Linux terminal is a web-based interface that allows users to access a Linux server from any web browser. This is a great way to access your Linux server from anywhere in the world, as long as you have an internet connection.


1 Answers

The full linux is http://docker.io, the rest is https://github.com/Runnable/dockworker

We're not simulating the terminal but as Kyle says, replicating the terminal over websockets (with an ajax fallback).

In the browser we're using https://github.com/chjj/term.js which was derived from Fabrice Bellard's emulator. It handles the output, and also the keystroke capture.

like image 105
generalhenry Avatar answered Oct 01 '22 01:10

generalhenry