nbarkhina / DosWasmX

Build your own DOS/Windows machine in the browser
https://www.neilb.net/doswasmx/
MIT License
28 stars 3 forks source link
dos emulators

DOS Wasm X

This is a browser based DOS emulator designed around ease of use and stability. It is based on the newer DosBox-X codebase and thus supports both Windows 95 and Windows 98 installations. However if you just want to use DOS applications and games you can stay in DOS mode. To begin using it simply drag and drop any application or game files onto the emulator. You can then save your hard disk with the click of a button or just exit if you want to discard your changes. I went with a simple and clean interface to try and make it approachable and non-intimidating. The hard disk saves directly in your browser so you can come back later and continue where you left off. It's like your own personal virtual machine on the web!

Supports the following features -

You can try it here: https://www.neilb.net/doswasmx/

Build Instructions

You will need a Linux environment to build DOS Wasm X

The emscripten installation above is a one time setup however you will need to always run source ./emsdk_env.sh from the emscripten folder every time you close the terminal and before running make. This is because the emscripten compiler does not get saved to the PATH

builderror

Hosting

You can host the app on your own web server. Copy everything in the dist\ folder to your web server.

Also you can optionally configure a Default Hard Drive to load when users navigate to your application. After Saving/Configuring a Hard Drive locally you can export it from the advanced menu.

exportdrive

Then update the settings.js file with the path to your img file


var DOSWASMSETTINGS = {
    CLOUDSAVEURL: "",
    ISOURL: "",
    DEFAULTIMG: "https://www.yourwebsite.com/hdd.img"
}

Startup Script

You can automate a startup script by creating a "DOSWASMX.BAT" file. It needs to live in the root C:\ drive, not in any subfolder. At the root type "EDIT DOSWASMX.BAT" to create the file and put each command on a seperate line. Then save your file and the hard drive. Example -

doswasmx.bat

Docker

If you wish to run directly in a container, you can use the following command after installing Docker Desktop:

docker run -d -p 80:80 nbarkhina/doswasmx

Once it has started, you can open your browser to http://localhost.

Online Documentation

For more extensive guides and technical information please refer to our Online Documentation

Screenshots

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

Installing Windows

DOS Wasm X supports installing Windows 95 or Windows 98 using your own copy of Windows. Simply drag and drop the ISO onto the startup page. DOS Wasm X will detect the Windows CD and begin the installation process. If you choose to Install Windows 95 you may get the error below. Simply click OK and then cancel when it asks you for the Path to the CD. This will allow you to continue with the installation. The reason for this error is because at this stage of the process the CD drivers have not yet been loaded. However after restarting Windows it will detect the CD Drive and finish installing the drivers successfuly. Always remember to shut down windows in the guest OS before exiting the page. This will automatically save your hard drive changes to the browser and prevent scandisk from running the next time you boot into Windows.

screenshot

Common DOS Commands

You can also type HELP at the command line to get a list of commands.

References

Disclaimer

This app was made for fun and is not affiliated or associated with Microsoft.