Posts: 34
Threads: 12
Joined: Apr 2022
Reputation:
1
I have some experience with Windows + QB64.
I am now trying out LINUX (never used/studied Linux before) on a Virtual Machine (VM).
Would appreciate some help to install QB64 into VM Linux - to be able to get to a working "Hello World" program.
Thanks in advance.
Posts: 144
Threads: 10
Joined: Apr 2022
Reputation:
5
Richard,
I am in the opposite boat... so to speak. I am a 100% Linux user and have tinkered with VM to use WinXP. As to how to setup VM for Linux... I cannot be of much help... But, if you want recommendations as to which "flavour" of Linux to use, then there is DISTROWATCH (
https://distrowatch.com/) Could be a little overwhelming. If so then may I suggest:
https://itsfoss.com/best-linux-beginners/
J
May your journey be free of incident. Live long and prosper.
Posts: 144
Threads: 10
Joined: Apr 2022
Reputation:
5
Ok. Going on memory here...
Double-click the qb64_lnx.tar.gz file. This should display a folder. The folder name will either be a dot "." or 'qb64'. if a dot, double-click that folder. This should display the qb64 folder. Hopefully there will be a 'extract' button (top left). Click it. You will then have to navigate to a desired location to put the qb64 folder. In your case, you will probably have two options by default... the Download folder or the Richard folder (this is your home directory). Best choose this one. then, in the bottom right corner of the extract window, select extract. Magically the qb64 folder will appear in your home directory.
You can close the extract window. On your Desktop you should have your "home" folder. Double-click it and you should see the qb64 director. Double-click it to display its contents. Within that directory should be the 'setup_lnx.sh' file.
In theory, if you double-click that file, you will be presented with a bunch of options: Run in Terminal, Display, Cancel and Run.
Select 'Run in Terminal'. This will kick off the install and you should see feedback on the screen. If all the dependencies are ok, then the "Terminal" will close and you should see a couple of extra files in the qb64 directory. One will be labelled 'qb64' (executable) - Double clicking this file should start QB64.
I am going to guess that, if dependencies are required, the install should "go out a fetch them"... I am not certain with a VM. A full install of Linux Mint (my current system) already had those files installed and QB64 installed without issue. But I am not sure about what a VM has or has not installed.
Let me know how you managed? Do not panic if a mistake is made... One of the advantages of a VM... lol If the install of QB64 fails then it is as simple as deleting the QB64 folder and starting again...
J
May your journey be free of incident. Live long and prosper.
Posts: 144
Threads: 10
Joined: Apr 2022
Reputation:
5
06-13-2022, 01:03 PM
(This post was last modified: 06-13-2022, 01:04 PM by johnno56.)
Looks like the memory has failed again... I had made the assumption that the setup_lnx.sh file was already modified to be an executable. The fact that the text editor has opened it instead has confirmed my mistake...
Time to roll up the sleeves and use a little command prompt typing... Look at your Desktop and notice the black icon on the bottom tool bar (panel)... There is the main Menu icon then the folder icon that hides an open window then next to it is the Firefox browser then the black Terminal icon. Click that one. This will pop up a command prompt similar to the one Windows uses. By default the Terminal will open and you will be placed in your home directory. Enter pwd then press enter to confirm. You should have a prompt similar to richard@ (machine name):~$ with a flashing cursor.
Navigate to your qb64 directory by typing cd qb64 then press enter. Your prompt should look something like richard@(machine name):~/qb64
Type ls (or dir) then enter. This will display all the files in your qb64 directory. Almost there...
You need to change the attribute of the setup file so that it can be executed.
At the prompt type chmod +x setup_lnx.sh then enter.
Hopefully this should be the last command... At the prompt type ./setup_lnx.sh then enter.
If all has gone well the installation of qb64 should start...
Executing from the Terminal is a little more "hands on" than normal, but using the Terminal, will display any and all feedback from the installation. Helpful in spotting errors etc...
Once qb64 has installed, it can be accessed via the main menu button, in the lowest left corner, then found under 'programming'. (note: When you spot it under programming... right mouse click on qb64 and you can place a shortcut either on the Desktop or on the 'panel' (tool bar) with your other icons.
J
May your journey be free of incident. Live long and prosper.
Posts: 336
Threads: 24
Joined: Apr 2022
Reputation:
19
Richard
right-click on the QB64 archive and select extract here
launch the terminal, cd to the extracted folder from step above and then enter
./setup_lnx.sh
you will need an internet connection because the install script will try to install missing packages