Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Operating Systems (https://www.askmehelpdesk.com/forumdisplay.php?f=433)
-   -   Running QBasic in Suse 10 (Linux) (https://www.askmehelpdesk.com/showthread.php?t=15103)

  • Nov 21, 2005, 11:57 AM
    fushichouryuuko
    Running QBasic in Suse 10 (Linux)
    Background:
    I have this QBasic program, consisting of these 3 files (QBASIC.EXE, QBASIC.HLP, QBASIC.INI), and it’s currently running on Windows XP SP2 OS. I plan to switch an entire lab to SUSE 10 Linux OS. I have a beginning programming class (senior high) that’s learning this old language.

    Problem:
    I need to be able to run QBasic smoothly on SUSE 10 and was wondering how I will go about this.

    Conditions:
    I heard that you need to install some sort of shell extension to run Window programs in Linux, but I prefer not to do that if possible. If not, then I would like to know how to install this ‘shell’ that I know nothing about.
    Also, if anyone knows of a different program that uses the Same syntax as QBasic and runs on Linux, then by all means please bombard me with all of your knowledge!
  • Nov 21, 2005, 02:21 PM
    LTheobald
    I believe QBasic was created by Microsoft. So the chances or seeing QBasic on Linux are next to none. That said, I'm sure you could find a compiler that's very similar. I'm not familiar with Basic so I don't know how different the language is between flavour to flavour.

    http://www.thefreecountry.com/compilers/basic.shtml
  • Nov 21, 2005, 03:42 PM
    fushichouryuuko
    Hm… That can’t be too good. (Blah, Microsoft…) I looked through the link you gave me and the page often mentions “interpreter.” Is that a compiler in itself? Or some sort of add-on in order for a programming language to run? (sorry if my terminology is off)
  • Nov 22, 2005, 02:09 AM
    LTheobald
    That's cool. Basically there are two ways you can execute computer programs. It can either be compiled (changed into a format that a computer can understand easily then this compiled code is executed by another program) or interpreted (a program will read the code and decide what needs to be done at runtime).

    For a better explanation - check here: http://en.wikipedia.org/wiki/Interpr...28computing%29

    And:
    http://www.pasteur.fr/formation/info...n/ch05s02.html


    Also on a quick side note: Why not just set up dual booting on your PC. SuSE & Windows on the same PC. It's very easy to do.
  • Nov 24, 2005, 10:06 PM
    fushichouryuuko
    Ah, my understanding of programming tools has improved. Thanks for the info on interpreters. :D

    Reason for not using dual-boot is because we’re trying to encourage students to be, at least, acquainted with Linux operating systems. I’ve noticed that certain companies are switching over from Windows to Linux. So, students thinking of working in the computer industry will be better prepared for the future. (Plus, there was an instructor at our school who got fed up with Windows when his Server suddenly crashed. :eek: It was a system error with Win. Ser. 2K3.)

    I will continue to look for a Linux compatible programming language that can be used in this class. :o

    By the way, does anyone know how to close down a thread? Also, what happens when I close it down? Will it eventually be removed from the forum? :confused:
  • Nov 25, 2005, 03:09 AM
    LTheobald
    Does it have to be an old language? Why not introduce the students to Java? It's platform independent (will work on Windows, Linux, Macs etc.) and it's reasonably simple. Also there are two big languages/specifications out there at the moment in the industry - Java or .Net. Introducing them to Java will a lot more useful then QBASIC. Plus, I'm a Java programmer so I can answer questions on that easier than I can QBASIC :P

    Also - well done for introducing people to Linux. It'll be useful to know the basics.

    That said, I don't know how hard it will be for a beginner. I'll have a look around and see what'll be a good language to start with.
  • Nov 25, 2005, 12:25 PM
    fushichouryuuko
    Yes, it has to be QBasic because of the very fact that it’s a dead language. We want a language that’s really basic for intro students so they can get a feel for what programming is. If they like it, then they can take the next course learning Pascal. By the way, is there a Pascal compiler that’ll work in Linux? If students stick with the program, then they may take C++ or Java. This way, we eliminate any students that have no will to work. We teach Java, but only for motivated students.
  • Nov 26, 2005, 05:16 AM
    LTheobald
    Makes sense. I started on Pascal myself. Then after a year of that at A-Level I moved onto Delphi. Then at university I moved onto ADA for a year and then Java after that. But that's enough of my history ;)

    I can't find anything that will help run QBasic on Linux easily. So if you really want to use QBasic, try it with Wine (comes with SuSE 10). Otherwise this compiler is said to be very similar to QBasic: wxBasic.

    As for a Linux Pascal compiler - http://www.freepascal.org/ . That'll do the job.
  • Nov 26, 2005, 08:34 PM
    fushichouryuuko
    Thanks, I'll try these out and let you know how it goes. :D (I'm still pretty new to Linux myself, so this will take some time.) :p
  • Nov 28, 2005, 05:54 AM
    LTheobald
    Well as always, if you get stuck - give us a shout, We have a few Linux experts here just itching to answer questions :D
  • Dec 1, 2005, 12:52 PM
    fushichouryuuko
    I went here http://wxbasic.sourceforge.net/bleed.php to download WXBasic and downloaded the Linux tar file. Then I extracted it then went into the folder a clicked on the wxbasic icon, but it won't run. The error was "Initialization error Expected a file name" Was I suppose to specify something? This is on SUSE 10 Linux by the way.
  • Dec 2, 2005, 01:58 AM
    LTheobald
    I've give it a go on my version of SuSE 10 later. Will get back to you.

  • All times are GMT -7. The time now is 01:07 AM.