How to run GW-Basic under Ubuntu?

8k views Asked by At

Well, I suddenly missed GW-Basic very much, so I want to install one in my new Ubuntu box. I have a long time not programmed for GW-Basic, so I don't know if there comes new releases. I copied GWBASIC.EXE from my old DOS 3.3 box, but it seems not start using Wine. I guess it's 16-bit so Wine will not support it.

Is there something like 286 emulator? Or should I have to run some expensive VM like Vmware? Oh no.

5

There are 5 answers

0
Gordon On BEST ANSWER

DOSbox works for running gwbasic, and many old dos programs.

To install it: sudo apt-get install dosbox

To run it: dosbox gwbasic.exe

Caveats: DOSbox emulates the CPU, so it runs apps slower than on Wine or as a native app. However, anything that originally ran on a 486 should run fine with DOSbox.

Speaking of gwbasic, by default it saves the source in a binary format. You can save in a text format with the a (ascii) switch, like this:

save "filename",a

As far as a basic interpreter that runs gwbasic code on Ubuntu, I haven't found one yet, but I am still looking.

0
Pravin On

i installed dosbox from synaptic. and GW basic runs perfectly. in fact i tried many dos based programs in my collection, most worked. Dos box gives perfectly the feel of old dos machine

1
Achinth Gurkhi On

GWBASIC.EXE will run only on a Windows system. You can setup a Windows VM on Ubuntu as mentioned here: http://downloadsquad.switched.com/2008/02/10/run-windows-in-a-virtual-machine-using-ubuntu-and-virtualbox/

0
jochietoch On

PC-BASIC runs your GW-BASIC programs without modification and runs natively on Ubuntu (it's Python-based). Just unpack the tarball and run

pcbasic filename
0
Cees Timmerman On

QB64 runs natively on Linux.

REMLINE.BAS is a program to remove line numbers from Microsoft Basic Programs. It removes only those line numbers that are not the object of one of the following statements: GOSUB, RETURN, GOTO, THEN, ELSE, RESUME, RESTORE, or RUN.