Giter VIP home page Giter VIP logo

dosbox's Introduction

dosbox

Your Universal DOS Game Console by Docker

Installation & run

  • Step 1. Install docker by following Docker official installation guide. Docker is cross-platform so you can run xserver on Mac OSX / Linux / Windows.

  • Step 2. Download the image, run

$ docker pull weichuntsai/xserver:1.0
$ docker pull weichuntsai/dosbox:1.0
  • Step 3. Install a VNC viewer. I recommend RealVNC.

  • Step 4. Initialize the xserver container, the command is as follows:

$ docker run --name mydisplay -e VNC_PASSWORD=1234 -p 5901:5900 weichuntsai/xserver:1.0

For other scenarios of this step, please refer to xserver README.md

  • Step 5. Initialize the dosbox container with link to xserver container (assume you want to name the dosbox container as mydosgame and your DOS game folders are in the /oldgames of your host computer), please run
$ docker run --name mydosgame -dt -v /oldgames:/home --link mydisplay:xserver --volumes-from mydisplay weichuntsai/dosbox:1.0
  • Step 6. Setup authentication cookie in the container mydosgame and run the command dosbox
$ docker exec -it mydosgame bash
$ chmod 755 /setup-xclient.sh; /setup-xclient.sh xserver; source ${HOME}/.bashrc
$ dosbox
  • Step 7. Open your VNC viewer in the host computer (assume you initialize xserver like Step 4), connect to localhost:5901 and type in the password 1234, then you can see your dosbox console window inside the VNC viewer window like the following figure: demo1

  • Step 8. Type in dir in the dosbox console window, and you would see your game folders. Then you just use cd ${game_folder} to enter into the folder and find the right executable you have to run (I assume you know what to run). demo2

dosbox's People

Contributors

jimmytsai1 avatar weichuntsai0217 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

dosbox's Issues

No sound in VNC (docker executed under MacOS)

Hi all and thanks for this great tool... it works perfectly here in my MAC OS 10.12 system, but I cannot hear any sound, should I do something here to fix it or is there any bug in the software?

Edit: When I run the dosbox command inside docker, it says:

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
CONFIG:Loading primary settings from config file /root/.dosbox/dosbox-0.74.conf
MIXER:Can't open audio: No available audio device , running in nosound mode.
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA:Can't open sequencer
MIDI:Opened device:none

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.