So happy that I can run even if it is an old version of Freebasic on the Raspberry Pi. Freebasic is a lot like but not exactly like qbasic. The first thing I did was to port a spreadsheet to the unit.
To set up Freebasic, the first thing I did was to download the tarball and the extract it. (from sourceforge.net)
$ tar xvf fbc-0.91.0-pi-debian.tar.gz
$ sudo ./install.sh -i
And lastly install a few goodies to make the install complete.
$ sudo apt-get install libxext-dev libncurses5-dev libx11-dev libxpm-dev libxrandr-dev libstdc++6-4.4-dev
You should be able to write a test program to see if the install worked.
In an editor, type a simple program.
$ vim test,bas
$ fbc test.bas
There is more to it than that but that is a quickie starter.