Need help with socket.io-computer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

kevin-roark
426 Stars 132 Forks 95 Commits 5 Opened issues

Description

a collaborative virtual machine

Services available

!
?

Need anything else?

Contributors list

# 212
CSS
TypeScr...
nextjs
hyper
36 commits
# 13,297
TypeScr...
microse...
CSS
vercel
35 commits

socket.io-computer

A collaborative virtual machine where players take turns in controlling it.

It works by running qemu on the server-side and streaming the image binary data to the browser.

Dependencies

In order to run

socket.io-computer
you must have the following dependencies installed:
  • qemu
  • redis-server

On the mac, all of the above are available on homebrew.

How to run

First you should create an image onto which you'll load (install) the operating system ISO. We'll call it for this example

winxp.img
.
$ qemu-img create -f qcow2 winxp.img 3G

Then you can run the additional needed processes:

# web server
$ node app.js

io server

$ node io.js

qemu instance

$ COMPUTER_ISO=winxp.iso COMPUTER_IMG=winxp.img node qemu.js

emulator communication process

$ COMPUTER_IMG=winxp.img node emu-runner.js

Then point your browser to

http://localhost:5000
.

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.