WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Run TCL in a Web Browser  (Read 3850 times)

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Run TCL in a Web Browser
« on: January 22, 2021, 05:23:39 AM »
I was wondering if you have gotten TCL to run in a web browser?

A similar example to something like this would be the following

https://bellard.org/jslinux/vm.html?url=alpine-x86.cfg&mem=192

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Run TCL in a Web Browser
« Reply #1 on: January 22, 2021, 07:49:05 AM »
Why?

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Run TCL in a Web Browser
« Reply #2 on: January 22, 2021, 10:19:21 AM »
@andyj I would like to display a Mathics.org demo on my site.

Its a math equation software.
« Last Edit: January 22, 2021, 10:22:53 AM by limeblack »

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Run TCL in a Web Browser
« Reply #3 on: January 22, 2021, 10:47:33 AM »
How about a VNC plugin? This is really a web programming question. Did you look at their JS to see how they are doing it?

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Run TCL in a Web Browser
« Reply #4 on: January 22, 2021, 11:03:35 AM »
Okay how do you compile TCL into a bin file?

I wasn't planning on having a remote access point.  Meaning its all hosted in the browser.

Their JS runs an entire linux distro in the browser so its rather complex IMO.

https://github.com/killinux/jslinux-bellard

https://github.com/levskaya/jslinux-deobfuscated
« Last Edit: January 22, 2021, 11:12:35 AM by limeblack »

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Run TCL in a Web Browser
« Reply #5 on: January 22, 2021, 11:12:42 AM »
In the demo link it's a viewer for a VM. You will need to do something similar. Again, it's a web programming question. I don't know what you mean by bin file. Linux isn't running in a browser in the demo link.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Run TCL in a Web Browser
« Reply #6 on: January 22, 2021, 11:16:32 AM »
@andyj yes it is it just has a websocket for internet access.

This is probably a better example http://copy.sh/v86/?profile=linux26

No internet access it is running completely in the browser.

It would be cool to display a demo on TCL homepage(thinking of other ideas.)

It appears this demo has gotten TCL to run https://github.com/copy/v86#compatibility
« Last Edit: January 22, 2021, 11:48:52 AM by limeblack »

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Run TCL in a Web Browser
« Reply #7 on: January 22, 2021, 12:54:46 PM »
hello Forum members,

There is a project that does the point(s) raised in this thread Topic.

Mike Levin  (?)

Levinux?.....or something.

It's purpose, possibly being to simply offer citizens  ( offer them a FREE personal Linux computer )  as a usable "operating system" directly  .....just by the citizen  sitting at any public web or internet connected "PC terminal machine" (anyplace in the world).......
(it then becomes "their Linux PC machine" ......since the Linux has snap shot... and acts just as a regular real computer  (FREE for the citizen)

FREE server(s) instances......right........?

---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------

There is already a working idea  similar to the idea of this THREAD post. 

https://distrotest.net/index.php    (Linux in a web browser)

"Distrotest"............although the "free Linux machine" you receive doesn't deliver a world wide web connection to the user  (citizen).  (connection for Learning)

........O__o.........

it  is  interesting topic.  (somehow)

Thx

C

ps.....a World Wide Web browser..........(of which there are oceans )....is for connecting to the world wide web.

Not sure "why" you would want Linux simple running inside the mechanism of a "web browser" implicitly itself.......(where that said web browser, isn't interacting with a "Live" world wide web connection.

 








« Last Edit: January 22, 2021, 01:08:14 PM by cast-fish »

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Run TCL in a Web Browser
« Reply #8 on: January 22, 2021, 05:44:40 PM »
https://distrotest.net/Tiny%20Core/11.1%20CorePlus

-------------------------------------------------------------------------------------------------


also a free Linux VM  .........from any web browser is below

https://www.offidocs.com/index.php/desktop-online-utilities-apps/xlinux-online-linux
(press ENTER)

(The Linux machine has a "true" anonymous World Wide Web connection)  via the ready to go LINKS (World wide web browser TOOL) using the command

"$ Links"  or  Links -g



(there is the full list of packages the Linux machine has on it...in the description page .......

thx


« Last Edit: January 22, 2021, 06:16:55 PM by cast-fish »

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Run TCL in a Web Browser
« Reply #9 on: January 22, 2021, 06:25:20 PM »
$  links   (command)


Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Run TCL in a Web Browser
« Reply #10 on: January 22, 2021, 07:38:54 PM »
$  links   (command)

....after that press "g"  key

Offline mocore

  • Hero Member
  • *****
  • Posts: 641
  • ~.~

Offline cast-fish

  • Hero Member
  • *****
  • Posts: 1000
  • hi there
Re: Run TCL in a Web Browser
« Reply #12 on: February 19, 2021, 05:32:46 PM »
good question mocore...WHY

the  link you gave does not function at all.....so i found what you meant and it
does boot into "SLitaz desktop" but it takes a ridiculous long while to do so....once it's booted it's almost totally unusable
.  (on a 2 megabit DSL connection which should be plenty)

a total waste of time. 

 (so your question is good question WHY).

....maybe it functions on a T1 bandwidth network connection.....?. but for the other majority of people.........it's useless.

why do people make stuff like this?

V

« Last Edit: February 19, 2021, 05:34:33 PM by cast-fish »