Setting up a Raspberry Pi for a work project that requires running an old DOS program


Recommended Posts

I don't have any questions, I am just posting about a project I am starting to run an orphaned DOS program that could run in Windows up to XP, but work isn't providing the hardware/software needed any more, except one legacy laptop that needs to keep getting shipped out as-needed.

Our IT department has tried to get an Oracle VM to run virtual XP, and that worked briefly, but was terribly temperamental and even having the external USB/Ethernet adapter plugged or not plugged would cause the VM to fail. It also had other issues with reliability that other people in my department have run into when trying to get it working.

I have a Raspberry Pi B, and it has a serial port (required for this legacy program), but it defaults to spitting out kernel messages at boot and being a TTY for emergency login purposes.  This can be shut off and repurposed, and I am currently doing so.  I am starting with the "lite" edition of Raspbian Stretch, and doing things like setting up an SSH server to login from a PC over ethernet (for in the field troubleshooting, should there be problems), and VNC server for using when the Pi is running dosbox. Since dosbox seems to require running in a GUI window (I may be wrong on this, but at first look, it appears to), I am installing a light window manger - fluxbox.

I intend to have the Pi auto-login and start the legacy program when booted, so it should work as-is.  But, for the guys in my group that like to drive the ship and change options on the fly in the field, I think a VNC connection would suit just fine.  (maybe if this goes well, I could get a small LCD display and micro keyboard to integrate into the project...)

It makes me more than a little sad to see the Neowin Linux forums so barren.  There were no posts in this forum (other than the pinned "Which Distro" forum) in two weeks.

 

Cheers!

Nice post, Mark! I will follow this as you move forward. I also miss the Linux subforums being busier. Not sure if it is members moving to other platforms or other reasons. I am still a huge Linux fan. Xubuntu is still my favorite!

I still use Mint 18.2, but it's just that I haven't had any issues...

  • Like 2

I like this sort of post.. Just a good reason to start a discussion etc..

 

If the section needs traffic, guess I could post up some of the stuff I have been doing in the linux area.. Latest project was running litecoin node on one of my pi's just for something to do on it, etc. Not sure if keep it running its a on a pi2 and its a bit underpowered ;)

 

Could go over setting up netdata which is pretty slick way to get lots of info about your linux boxes, etc..

 

When I get around to it want to move my pi zero to be monitoring my ups I just moved into my av cab, etc.

 

To be honest I am more curious to the specific of this antiquated software you need to maintain ;)  Vs any details of how you are setting up in linux..

  • Like 3

Interesting project!

 

I'm currently making use of Raspberry Pi 3 Model B's around our office, these boot up and start streaming various rtsp CCTV feeds from our UniFi Video CCTV system. Each office has a 27" wall mounted monitor, with a Pi connected to it.

 

The streams differ depending on who's office it is, mainly this allows people to see if their's anyone in the showroom who might need attending to. I've found the Pi can multiplex 6-9 streams at 30fps on a 1080p screen perfectly.

  On 22/01/2018 at 16:01, BudMan said:

I like this sort of post.. Just a good reason to start a discussion etc..

...

To be honest I am more curious to the specific of this antiquated software you need to maintain ;)  Vs any details of how you are setting up in linux..

Expand  

I thought it would be interesting to share a real-world application in (near) real time.  I travel a lot for work, and often long hours, so when I get home, and I get the chance to play I can update until project completion.

As for the legacy software, I can imagine this falls in where a large number do.  I need to talk to older robots that customers still have running production. But these units are old enough that RS-232 was the method of communication (including important features like backing up or restoring files in the event of hardware replacement or other failure requires it). It has a vendor-specific protocol, so I can't use commercially available (or Open Source) software as a substitute for this program.  That leaves keeping an old laptop around with obsolete Windows for this purpose (which my company does, and FedExes it around where it is needed), or running in a VM in a current Windows environment (which has been problematic), or trying it in Linux using dosbox.  It works in dosbox, as tested on a laptop running Ubuntu.  But every tech could easily be running different hardware, and one should not have to go though a lot of Linux-y work to set up dual boot (which is against IT policy, and these are their computers), or I was thinking inexpensive commodity hardware could do the trick.

I've set up fstab so I think it will automount a USB stick presenting itself as /dev/sda, mounting the first (and likely only, if using a USB stick) to a mount point already declared as /mnt/usbstick.  I have yet to do all the dosbox setup to mount that as C:, but I have done that once before it is pretty trivial.  Just need to test it all when done to make sure it is reasonably bulletproof.

I'm at the point now where I am trying to get a vncviewer to log in and display X. I dealt with the free version not supporting encryption, and added settings on the Pi to not require encryption. But I get a small black window, instead of the fluxbox environment I see when I am locally on the Pi and startx.

 

Hardware wise, I know I need to get something to bring up the 3.3V serial levels to at least TTL levels, since we have been able to use USB serial adapters in Windows before, so the robots are able to communicate with devices that only send 5V.

If there are any thoughts on this, I'd appreciate the guidance, otherwise I will just recheck what I am doing to see if I overlooked something.  :)

  On 22/01/2018 at 16:34, InsaneNutter said:

Interesting project!

 

I'm currently making use of Raspberry Pi 3 Model B's around our office, these boot up and start streaming various rtsp CCTV feeds from our UniFi Video CCTV system. Each office has a 27" wall mounted monitor, with a Pi connected to it.

 

The streams differ depending on who's office it is, mainly this allows people to see if their's anyone in the showroom who might need attending to. I've found the Pi can multiplex 6-9 streams at 30fps on a 1080p screen perfectly.

Expand  

I like that use!  I have always thought that a Pi attached right to the back of a TV is a great way to do networked video (or even corporate displays that maybe show powerpoint type marketing stuff, or interactive information kiosks).

To be honest pi doesn't seem like the best option for such a project..

 

Why does it need to be a OLDER laptop... Why not just run your software in a vm...  What VM software have you tried.. Why are you running the vm software in XP..  Just use whatever OS you want on the hardware that has the connection you need... You could for sure use a usb to rs232 adapter I would think even.

 

You could then use virtualbox, qemu, vmware, parallels, etc. etc.. many of them support all 3 OSes, etc. 

 

I would for sure think you should have no problems with say vmware workstation.. Small price to pay to be able to just have anyone on their current laptop fire up a virtual machine, etc.  Why would you fedex something like this around?  Anyone anywhere could just download the VM image fire up on whatever laptop is around, etc.

Yes, if the VM was reliable or supported by our IT department.  It's been temperamental, and fails if you don't have the Apple usb/ethernet adapter plugged in, etc.  Our IT installed Oracle for us, and the machines we have are otherwise locked down.  They do NOT (oddly enough) support running the old company software in that virtual machine.  That is left to us individually to get it working again when it fails.

 

It is an absolutely awful situation to be in, and I am tired of feeling powerless in getting this to work. It worked in VM for maybe 6 months then suddenly stopped.  I made sure that the host Windows 10 serial port hadn't changed COM ports for any weird reason, and that it was mapped through to the Virtual XP.

 

And, yes, FedExing an old laptop here and there is perhaps the worst solution of all, and that is what I want to improve.

Even if only for me, and let the other guys decide if they want to even bother.

 

The number of these really old robots that only talk on RS-232 is dwindling, and most of the newer guys probably aren't assigned to them much when an older tech like myself is available to go. Maybe some guys never see a serial port, and others need this twice a year or so.

 

I guess, like most of the theory of Open Source Software, this is my itch. And I need to scratch it because I am tired of banging my head against my Oracle VM which no longer functions properly, and asking for "the old laptop" to be FedExed to a customer I'm heading to that runs really old robots.

 

Offtopic, but if you are into figuring out what's wrong with a VM, I am willing to discuss further (in another thread, since it would be more appropriate) this issue with my virtual XP. It runs, and everything seems good. But it just doesn't work.  It's like the cables (usb serial adapter and null modem) are bad. But they aren't, as I have exchanged hardware there and it just doesn't work.

What did the software originally run on. Dos 6.22 ?  Concurrent Dos, something else?

 

Why bother with the XP at all - why not just run the VM the software designed to run on?  But sure be happy to join in another thread working with that.  There is the vm section which seems appropriate for such a topic ;)  It doesn't get much love either.. hehehehe

It is a dos program. I remember running it when I used Windows 3.11.  The OS and the rest of the computing world has moved on.  This has not.  :p

You can run dos 6.22 on VM easy enough...   Or how about just boot it from usb stick ;)  So as long as your hardware has the correct port for your rs232 connection.

It's a Surface tablet, with one usb port. I use a usb serial adapter that has generally worked fine.  Since the tablet is owned (and locked down) by the company, there isn't a lot I can do, and near as I can tell, even DOS isn't legally available for free (maybe it is for subscribers/members of TechNet or such).  And the other guys report the same problems with using a virtualized environment to work reliably.

Unless you think that the problem is with the XP part?  Not just the virtualization software and configuration?

As far as the progress on the Pi goes, I have problems getting VNC to work right.  Part of the problem is the default setting of the vncserver on the Pi is for Encryption=AlwaysOn, and the free version of vncviewer isn't capable of encryption, so I kept getting kicked out before I could even try logging in.  Googled and found that setting, and it now prompts for password, but when entered and connected, I get a small black rectangle, with the mouse cursor.
 

vnc-blackscreen.png

  On 23/01/2018 at 19:34, BudMan said:

You can run dos 6.22 on VM easy enough...   Or how about just boot it from usb stick ;)  So as long as your hardware has the correct port for your rs232 connection.

Expand  

I have tested a DOS 6.22 install in Virtualbox, using questionably-sourced install media.  Just for testing, so morally, I feel only slightly wrong. That was the easy part, though.

I have DOS.  Just DOS.  I cannot access USB (even trying to map storage), and Shared Folders with the host is also a no-go.  As is network access.

I think I could create a filesystem image that I could connect to, in order to get the legacy program into the virtual DOS.  But then every tech would need to do similar wrangling, since I think plugging in USB hotswapping would not work.

Then, even if this were successful, I would anticipate the same temperamental issues that virtualization has provided for XP for all of us traveling techs.

Why are you stuck using VB?  There are multiple VM hosting options other than this... Windows 7 has built in XP mode VM that should be able to run your software..

 

https://technet.microsoft.com/en-us/library/hh859554.aspx

Windows 7: Load and Configure Windows XP Mode

  On 24/01/2018 at 02:16, BudMan said:

Why are you stuck using VB?  There are multiple VM hosting options other than this... Windows 7 has built in XP mode VM that should be able to run your software..

 

https://technet.microsoft.com/en-us/library/hh859554.aspx

Windows 7: Load and Configure Windows XP Mode

Expand  

Not my computer.  No permissions to install programs. It pops up a box saying the action is blocked, and provides an optional submission form for requesting administrator review of the program if I feel there is a business need for it.

Sure seems like a business need to me ;)  Our systems are locked down too - but they allow us to install and use VM.. They have to use a wifi card to get on any network.. or a usb nic so they are isolated from work network, etc.  Ie we can get on the internet via guest wifi for internet, etc.

 

If at customer site we can fire up a vm and get on customer network with that, etc. etc.

Solved the VNC issue.  The problem I encountered was due to the raspi-config utility sets up vncserver as a service, and I had the same problems when running it as a user and trying to connect to the display :1 it created.

The solution was to disable that service, and I ran the command

sudo systemctl enable vncserver-x11-serviced

which set up the vncserver-x11 service daemon to start on init.

  On 24/01/2018 at 02:00, markjensen said:

I have tested a DOS 6.22 install in Virtualbox, using questionably-sourced install media.  Just for testing, so morally, I feel only slightly wrong. That was the easy part, though.

I have DOS.  Just DOS.  I cannot access USB (even trying to map storage), and Shared Folders with the host is also a no-go.  As is network access.

I think I could create a filesystem image that I could connect to, in order to get the legacy program into the virtual DOS.  But then every tech would need to do similar wrangling, since I think plugging in USB hotswapping would not work.

Then, even if this were successful, I would anticipate the same temperamental issues that virtualization has provided for XP for all of us traveling techs.

Expand  

Did you ever think of giving freedos a shot in the vm and see if that would work?

  On 25/01/2018 at 23:22, Matthew S. said:

Did you ever think of giving freedos a shot in the vm and see if that would work?

Expand  

A quick look shows it has network support, so that is good, but it does not seem to support swappable USB storage media (just to boot from, like a hard drive).  It won't cost much time to install and play, thanks!

Possibly look into the industrial form-factor 486-DX4 and Pentium-4 boards that are still made and still supported ... stackable modules for whatever is needed, too. Small form factor, runs DOS 6.22 and 7.1, IBM-DOS, Win 3.11, Win-95/98 and OS/2 .. even XP (though it's slow) ... pretty awesome the hardware and software that's been made for those. Even has SD-Card support at the BIOS level. We've been messing around with those in the lab and they are VERY good.

 

AND they have GPIO headers with tons of documentation. Not Pi-compatible OOTB, but they can be made to communicate at least.

 

Very low-cost, very easily-obtained and quite extendable. :yes: And talk about compatible ...

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft should never release , Windows 12.
    • Microsoft Weekly: Windows 10 end of support toolkits, new builds, and more by Taras Buria Background by ES60 on Pixabay This week's news recap is here with plenty of new Windows 11 builds to try, a lot of useful information about the end of Windows 10 support, important guides for those who miss uBlock Origin in Chrome, gaming news, and more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Reviews are in Gaming news Great deals to check Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. Windows 10's support is quickly approaching (including exotic editions, such as the original LTSB), and with Microsoft offering only 12 months of extended security updates for regular users, multiple groups provide their own solutions for the inevitable demise of hundreds of millions of PCs. The Restart Project released a so-called "End of Windows 10 toolkit" to help community repair groups deal with the upcoming event. If your computer is not supported but you still want to leave Windows 10 behind, try the recently updated Flyby11 app, which received a new way to download and patch Windows 11 images. You can also check out this guide to learn how to create a lightweight Windows 11 image for unsupported PCs. Alternatively, you can sign up for the Extended Security Update program and get one more year of updates for free, as described in our newly published guide. If you plan to stay with Windows 10 and you use Office apps, Microsoft has an important update for you. The company revealed that Microsoft 365 apps will stop receiving feature updates in August 2026 for the Current Channel, October 2026 for the Monthly Enterprise Channel, and January 2027 for the Semi-Annual Enterprise Channel. This week, Windows 11 version 24H2 received a new out-of-band update with an emergency fix for Azure VM boot issues. Also, Microsoft confirmed problems with the emoji panel in Windows 10, the fact that it could not resolve a recent Windows Firewall issue, and details about driver improvements in Windows 11 version 25H2. Microsoft also announced that Windows 11 images now include more recent versions of inbox apps. This allows customers to use those apps right after installing Windows and without wasting time and bandwidth on updates. Another benefit to this is that more recent versions include all the security fixes, which minimizes security risks and threats. To finish this week's Windows 11 section, here is our recap of the top 10 useful and cool features that Windows 11 received in the first half of 2025. They include some much-anticipated changes, such as small taskbar buttons (in the picture below), and more obscure stuff. We also published a similar article, but for the upcoming 10 cool features for Windows 11. Also, here is a cool project that puts Windows XP in your browser, allowing you to check out the 21-year-old operating system in Edge, Chrome, or any other modern browser. Windows Insider Program Here is what Microsoft released for Windows Insiders this week: Builds Canary Channel Build 27902 This build brought only two fixes for File Explorer and Camera, plus some general improvements. The Windows Vista startup sound bug is still not fixed. Dev Channel Build 26200.5702 (KB5062653) This build introduces generative AI image descriptions in Click to Do, improved privacy dialogs, fixes for the taskbar, File Explorer, Search, and other parts of the operating system. Build 26200.5710 (KB5062676) This build contains new AI-powered accessibility features and a new system for logging your computer's slowdowns. Beta Channel Build 26120.4733 (KB5062651) This build has the same changes as build 26200.5702. Build 26200.5710 (KB5062676) This one is the same as build 26200.5710. Release Preview Channel Build 26100.4767 (KB5062663) A small update with fixes for IME, Group Policy Editor, Windows Firewall, and graphics. Build 22631.5696 (KB5062663) This build fixes certain issues with the previous build. Build 19045.6159 (KB5062649) This build fixes certain issues with the previous build. This week, Microsoft revealed details about why a particular taskbar feature for Windows 11 was killed. As it turned out, Microsoft's idea for a simplified taskbar received so much flak from Windows insiders that the company was forced to kill it for good. With the latest preview builds, Microsoft is testing a big new feature for its operating system. Windows 11 is getting a new adaptive power saver, which will turn on or off depending on workload and not your current battery level. Microsoft is also changing how energy saver affects various parts of your system, such as the display, background tasks, and more. Also, Microsoft released an important new feature for the Copilot app. It now lets you share the entire desktop with Copilot through the Vision feature and receive useful information and help from AI in your applications. Another change enables you to trigger Copilot Vision when in voice mode. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) delivering new features, security fixes, improvements, patches, and more from Microsoft and third parties. Command Palette, one of my favorite PowerToys modules, is getting an important new feature. Soon, you will be able to pin favorite apps for quicker access in the launcher or the list of all apps. App pinning is expected in version 0.93 next month. If you use Google Chrome and uBlock Origin, the famous content blocker, you might have noticed that the extension was permanently disabled. Fortunately, there is still a way to bring it back to life. Check out this guide to learn how to enable uBlock Origin in Google Chrome. Speaking of Chrome, Google is ending its browser support on macOS 11 Big Sur. Other browser news includes a dedicated version of AdGuard for Microsoft Edge on Android, a new Vivaldi for iOS update that introduced Reader View and other improvements, and Firefox getting WebGPU support.. In a surprising twist of events, Microsoft announced that Skype for Business and Exchange are getting their own Extended Security Update program, giving users six more months of support before services shut down for good. Here are other updates and releases you may find interesting: Security Copilot in Microsoft Entra is now available for all IT admins. Here's how the Microsoft Stream and Clipchamp unification is going. Microsoft 365 Copilot is finally getting memories. LibreOffice called out Microsoft for using "complex" file formats to lock in Office users. VMware Workstation Pro and Fusion received snapshot and security fixes. Mercedes-Benz integrates Microsoft Teams and Microsoft 365 Copilot for in-car productivity. Microsoft stopped using China-based engineers to support US defense clients. What will not receive updates anymore is Microsoft's Movies and TV store. This week, the company quietly killed it. No refunds will be offered, but users can keep their movie libraries and watch everything they purchased before. Reviews are in Here is the hardware and software we reviewed this week Christopher White published a review of the Synology BeeStation Plus, a worthy upgrade over the original BeeStation. It is affordable, easy to set up, great for family sharing, and it has a small footprint. It is not flawless, of course, but still good overall. Steven Parker published a small hands-on article about the SEENDA KSM64-3, an ultra-thin keyboard-mouse combo with an affordable price tag. On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. New games are coming to Game Pass subscribers. Microsoft announced a new wave of titles, which includes High On Life, RoboCop: Rogue City, Grounded 2, Farming Simulator 25, Wheel World, Abiotic Factor, and more. Three games are leaving the service, so check out the complete list here. The Xbox app on PC received an important new feature that was previously available only on consoles. Now, Xbox Game Pass Ultimate subscribers with PCs and handhelds can stream the games they own from the cloud. Right now, this feature supports over 250 games. Deals and freebies Here is the latest issue of the Weekend PC Game Deals series, which includes automation fests, charity specials, a free copy of Civilization VI: Platinum Edition, and a lot more. Other gaming news includes the following: Avowed received Steam Deck Verified with a new update that reworked the Fighter and Ranger classes. Cyberpunk 2077 is getting self-driving cars, FSR 4, XeSS 2, VRR on consoles, and more. Great deals to check Every week, we cover many deals on different hardware and software. The following discounts are still available, so check them out. You might find something you want or need. Dell 27 Plus 4K Monitor - S2725QS: $239.99 | 20% off Apple AirPods 4 - $89 | 31% off Apple AirPods 4 with Active Noise Cancellation - $119 | 34% off Crucial T710 2TB Gen5 NVMe SSD | 22% off 26TB Western Digital My Book Desktop External Hard Drive - $549.99 | $60 off Samsung Galaxy Tab S9 11-inch, 128GB - $484.99 | $104 off Nakamichi Shockwafe Ultra 9.2.4 Channel Dolby Atmos/DTS:X Soundbar | 33% off Lenovo Legion Y32p-30 Gaming Monitor: $599.99 | 25% off This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering a free member account or subscribing for extra member benefits, along with an ad-free tier option.
    • on Android phones Chrome is the default browser. Google is monopolizing like Microsoft did with Internet Explorer.
    • “which covers most of what people can hears. ” Oh yeah, you really reviewed this AI slop. Neowin should cut out the middleman at this point.
    • £129 in the U.K., that is a fair drop in price and if anyone have a need for one then now is a good time to buy one. But for most people if they have a pretty good router it would be money wasted,, unless they need Wi-Fi 7 and I doubt many will notice any difference even if they have Wi-Fi 7 devices. The 2.5Gb/s lan and Wan could be useful for some people, but why only one 2.5 lan? sure, there is not much around in the 2.5Gb/s line at the moment and a lot of devices like TVs would not benefit by it, but if someone has a couple of computers with 2.5Gb/s lan, they have to buy a switch, so more cost. So a unmanaged one can be picked up for around £50 these days, but that is still extra and electrical another socket and box. I suppose sticking another 2.5Gb LAN on the router would have added a bit of more cost, but not that much. I don't really have much need for a Wi-Fi 7 router, I have an Archer AX53 that does what I need, the one thing I do miss is the USB port that don't seem to be a thing these days on routers, just to stick a small USB drive in for documents, saves booting up the nas.
  • Recent Achievements

    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
    • One Month Later
      Ian_ earned a badge
      One Month Later
    • Dedicated
      MacDaddyAz earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      ATLien_0
      207
    3. 3
      Michael Scrip
      205
    4. 4
      Xenon
      141
    5. 5
      +FloatingFatMan
      116
  • Tell a friend

    Love Neowin? Tell a friend!