I will focus on 32-bit Linux distributions for PureBasic development, because 32-bit binaries run on 64-bit versions but not vice versa and i have no use for more than 4gb of memory for my PureBasic tasks. The installations will include commands for VirtualBox integration, if you are not installing linux in VirtualBox, you can just skip them.
To avoid the common problem of informations disappearing due to outdated links, all instructions are written into this thread, so please excuse the lack of nice formatting

Here are instructions about Using PureBasic (32bit) on 64bit Linux by Freak in the PureBasic Team Blog.
Running multiple PureBasic installations is simple, just unpack them to different directories and start the PureBasic IDE ("<installation directory>compilers/purebasic") from there. Linux package administration tools will resolve dependancies if you want to install a package following one of the install instructions. Just accept the additionally required installations when they are requested.
Make sure you use the right ISO file which is named in the intructions and watch carefully which hard disk is used before you let a linux installation "clean and use entire disk"!
If you are new or unsure - use VirtualBox and backup often!
VirtualBox
Homepage: www.virtualbox.org
VirtualBox is a free virtual machine which allows to run one operating system within another. It is used here to easily run different linux distributions from within Windows or Mac OS X.
The following settings where used:
Main memory: 1500 MB
Fixed hard disk size: 15 GB
During installation in VirtualBox use "Erase and use the entire disk" or similar automatic partitioning options. On first start of the new virtual machine, assign the downloaded ISO file as "installation media".
Install the OS, reboot and install the guest extensions and reboot the system.
Create a "shared folder" (Geräte->Gemeinsame Ordner for the german version) and mark it "automatisch einbinden" and "permanent erzeugen".
To transfer files between the Host (usually Windows) and the guest (Linux), just copy them into the "shared folder". The "shared folder" in Linux is usually accessible somewhere in "/media/" or "/mnt". Make the folder sharing permanent and reboot, call "df" in a shell and you should see where the shared folder is mounted. You usually need root access to use the shared folder.
If the install succeeded, you should be able to resize the window and have the linux desktop use it's full size.
That works fine for my computers with 6/8gb RAM and will give you about 10 to 13 GB of free disk space. The downside of using VirtualBox, is that you usually cant use 2D or 3D hardware acceleration.
Suggested linux configuration changes after install
For current gnome based linux installations like Fedora or Ubuntu, the menubar icons and icons in buttons are disabled. Enable them by using the "dconf-editor" and enable the options in "org->gnome->desktop->interface" called "menus-have-icons" and "buttons-have-icons".
or use the commands
Code: Select all
gconftool-2 --set /desktop/gnome/interface/buttons_have_icons --type bool true
gconftool-2 --set /desktop/gnome/interface/menus_have_icons --type bool true
Finding the (K)Ubuntu version installed:
cat /etc/lsb-release
Showing which dynamically linked libraries are used by a program:
ldd <program>
Programs useful to dissect the program flow in case of problems:
ltrace
strace
General debuggers:
ddd
gdb
IDA starter
Displaying the dynamic linker cache:
ldconfig -p