• Re: Linux dosemu2

    From Analog@21:2/123 to ryan on Tue Aug 11 15:13:21 2020
    132
    Very cool - maybe there's a way to make a recipe here for other people
    to use.

    Here's what I do with my Dosemu2 Docker setup:
    1. Create a simple image with the pieces:
    [SNIP]
    ROM ubuntu:18.04

    RUN apt-get update -y
    RUN apt-get upgrade -y
    RUN apt-get install software-properties-common -y
    RUN add-apt-repository ppa:dosemu2/ppa
    RUN apt-get update -y
    RUN apt-get install dosemu2 -y
    RUN /usr/sbin/useradd -d /home/analog -m analog
    USER analog
    WORKDIR /home/analog
    ENTRYPOINT ["/usr/bin/dosemu"]
    [SNIP]
    2. Create Docker Compose file with the volume attached:
    [snip]
    version: '3'
    services:
    dosemu:
    container_name: dosemu
    image: dosemu:18.04
    build:
    dockerfile: ./Dockerfile
    context: .
    stdin_open: true # docker run -i
    tty: true # docker run -t
    volumes:
    - ./dosemu:/home/analog/.dosemu
    [snip]
    3. Run the first time docker compose to initialize Dosemu2's files:
    docker-compose build
    docker-compose up -d
    4. Now docker is running Dosemu in the backgroup (-d detached). To connect to the shell:
    docker attach dosemu
    Once in the shell it might not be apparent but you're inside the Dosemu instance. You need to hit "enter" to accept the preamble stuff. If you don't see a cursor it's most likely due to terminal size (need 80x25). Just type "cls" to clear and you should see a prompt "c:\"
    5. Exit the instance and the configuration files will be saved on the host machine's local "dosemu" folder you mounted as a volume.
    exitemu
    6. Now you have a folder for your Docker that you can spin up directly and launch a game or edit things. In the "dosemu" folder you can copy any BBS
    doors you want to play, any dos software, or programs. Just put them in the "drive_c" folder like you would on any DOS c:\.
    7. From here, it can get more advanced on how you want to launch the Dosemu container. You can keep doing it like we did above or you can specify a
    special entrypoint like:
    ENTRYPOINT ["/usr/bin/dosemu .dosemu/drive_c/tw2002/tedit.exe"]
    Which will pass the "tedit" command as your Dosemu start point. However, you really need to use a batch file to make sure you're inside the right directories within Dosemu. My BBS doors dynamically create a BAT file that I pass as the launch arg to Dosemu:
    [run.bat]
    cd c:\tw2002
    ...
    tw2002 -l
    [end]

    I'm too lazy to write the rest of this up, but you guys get the gist.

    Analog

    |20|15ÚÄ|16|08´ |08De|07ad|15be|07a|08tz b|07b|15s
    |08ÀÄÙÃÄ¿ |08:>.|07A|08rk |0710|08:|07101|08/|0714|08.
    |04þ |08À|20|15Ä|16|08Ù |08:>.|10A|02gn |1046|08:|101|08/|10123|08.
    |04A|07n|15al|07o|08g |08:>.|12F|04sx |1221|08:|122|08/|12123|08.
    |04.|08dPR|04. |08:>.|15S|07ci |1577|08:|151|08/|15131|08. |04°±°|08±ÛÛÜÝ|08:>.|11T|03qw |111337|08:|113|08/|1113|08.

    --- Mystic BBS v1.12 A46 2020/08/06 (Linux/64)
    * Origin: deadbeatz.org (21:2/123)