Showing posts with label JSLinux. Show all posts
Showing posts with label JSLinux. Show all posts

Friday, June 19, 2020

a Browser on a Linux with X Windows in a Browser.


I have seen it All Now, Full Linux in a Risc Emulators in a Browser window, that can run X, and open a Browser in the emulator




http://s-macke.github.io/jor1k/demos/main.html

http://www.benjamincburns.com/2013/11/10/jor1k-ethmac-support.html


 Adding DNS server 10.5.0.1                                                     
 Adding DNS server 8.8.8.8                                                      
 Adding DNS server 8.8.4.4                                                      
-login[80]: root login on 'ttyS1'                                               
*******************************************************                         
* Don't know what to do? Type 'help' and press enter. *                         
*******************************************************                         
Note, you can exit most programs by pressing CTRL+C                             
~ $ uname -a                                                                    
Linux openrisc 4.4.0-42578-gacba10ee627d-dirty #6 Thu May 25 20:53:14 UTC 2017 o
penrisc GNU/Linux                                                               
~ $ df                                                                          
Filesystem           1K-blocks      Used Available Use% Mounted on              
/dev/root              1048576      2936   1045640   0% /                       
devtmpfs                 12904         0     12904   0% /dev                    
none                     12968         0     12968   0% /dev/shm        
~ $ ping 8.8.8.8                                                                
PING 8.8.8.8 (8.8.8.8): 56 data bytes                                           
64 bytes from 8.8.8.8: seq=0 ttl=118 time=39.279 ms                             
64 bytes from 8.8.8.8: seq=1 ttl=118 time=36.067 ms                             
64 bytes from 8.8.8.8: seq=2 ttl=118 time=37.068 ms                             
64 bytes from 8.8.8.8: seq=3 ttl=118 time=35.070 ms                             
^C                                                                              
--- 8.8.8.8 ping statistics ---                                                 
4 packets transmitted, 4 packets received, 0% packet loss                       
round-trip min/avg/max = 35.070/36.871/39.279 ms                                




Back end internet connectivity is done through a websocket proxy.
https://github.com/benjamincburns/websockproxy


It can play Amiga Mod files on the Linux in the Emulator


-= MikMod 3.2.6 =-                                                              
Open Sound System: 8 bit normal mono, 22050 Hz, no reverb                       
File: /usr/share/mikmod/mod/enigma.mod                                          
Name: Enigma                                                                    
Type: Protracker, Periods: mod type, log                                        
pat:007/063 pos:3C spd: 6/125 vol:100%/100% time: 0:34 chn: 4/4                 
 Help  Samples [playList] Configuration  Volume                                 
   0 *.../share/mikmod/mod/spacedeb.mod   15  /usr/share/mikmod/mod/aurora.mod  
   1 *.../share/mikmod/mod/GSLINGER.MOD   16  /usr/share/mikmod/mod/external.xm 
   2 */usr/share/mikmod/mod/jt_911.xm     17  /usr/share/mikmod/mod/SATELL.S3M  
   3  /usr/share/mikmod/mod/aryx.s3m      18  /usr/share/mikmod/mod/jt_letgo.xm 
   4  ...mod/mod/celestial_fantasia.s3m   19  /usr/share/mikmod/mod/DEADLOCK.XM 
   5  ...d/aceman_-_my_first_console.xm                                         
   6  ...re/mikmod/mod/beyond_music.mod                                         
   7  /usr/share/mikmod/mod/ELYSIUM.MOD                                         
   8  .../share/mikmod/mod/stardstm.mod                                         
   9  ...re/mikmod/mod/eternity-1553.xm                                         
  10  .../share/mikmod/mod/strshine.s3m                                         
  11 */usr/share/mikmod/mod/BUTTERFL.XM                                         
  12  .../share/mikmod/mod/CTGOBLIN.S3M                                         
  13  /usr/share/mikmod/mod/sweetdre.xm                                         
  14 >/usr/share/mikmod/mod/enigma.mod                                          
--------------------------------------------------------------------------------
20 Modules                                                                      



It has networking and supports C++ and Lua compilers.


                                                                                
                                                                                
  +--------------------------------------------------------------------------+  
  |                                 Network                                  |  
  +--------------------------------------------------------------------------+  
  |   links     - Graphical Web Browser. Start page is google.com            |  
  |   lynx      - Text Web Browser. Start page is google.com                 |  
  |   links     - Text Web Browser. Start page is google.com                 |  
  | * telnet    - Watch an ASCII version of Star Wars over a telnet connec   |  
  |   git       - git clone 2048.c, compile and start                        |  
  |   ssh       - Secure Shell                                               |  
  |   nmap      - Free Security Scanner For Network Exploration & Security   |  
  |   sshd      - start a sshd server                                        |  
  |   Back                                                                   |  
  |                                                                          |  
  |                                                                          |  
  |                                                                          |  
  |                                                                          |  
  |                                                                          |  
  |                                                                          |  
  |                                                                          |  
  +--------------------------------------------------------------------------+  
Use PageUp and PageDown to scoll down or up a page of items                     
Arrow Keys to navigate (ESC to Exit)






xx

Monday, June 15, 2020

JSLinux PC/x86 emulator in Javascript running Linux

run an emulated linux in browser:

https://bellard.org/jslinux/

Run Linux or other Operating Systems in your browser!

Linux distribution

It uses the Buildroot embedded distribution. Custom packages are added for vfsync, qemacs, riscvemu, x86emu, tcc, calc. Optional X Window support is available with the Fluxbox window manager.


Networking

Access to Internet is possible inside the emulator. It uses the websocket VPN offered by Benjamin Burns (see his blog). The bandwidth is capped to 40 kB/s and at most two connections are allowed per public IP address. Please don't abuse the service.

There is even a WebSockets Proxy
Yo dawg, I heard you like browsing the web, so I put a browser in your browser so you can browse while you browse!
A websocket ethernet switch built using Tornado in Python
Implements crude rate limiting on WebSocket connections to prevent abuse.

https://github.com/benjamincburns/websockproxy

Getting Started:

A Gentle Introduction to JSLinux
Let's take a Linux emulator in the browser for a spin
https://devpost.com/software/a-gentle-introduction-to-jslinux