GLFPE for Linux 16 Dec 2019 GLF -------------------------------------------------------------------------------- It is assumed that the reader of this document is interested in computer programming, and would like to try writing and compiling programs using tools known to work without too much fuss. It can be expensive to buy into a commercial suite for programming development, but they tend to provode a broad capabilty from the start, and enjoy widespread professional following as well as support. On the other hand, one can program with powerful tools available for free, but one needs to FIND the tools first. Many such tools are now freely available from open sources posted to the web. However, it can be time-consuming and frustrating to locate all the pieces necessary to put together a working environment, and it can be difficult getting all the pieces to actually work together. It would be noce to have a tested working environment ready download, copy to a local computer, and use right away. The GLF Programming Environment has been ported and tested to work on x86 and AMD recent vintage PC compatible computers. It is assumed that the computer supports USB flash drives with at least a USB 2.0 interface (1.0 is WAY too slow, so forget using the really old computers). For the Windows port of GLFPE, it is assumed the computer has Windows already installed. GLFPE for Linux is built as a live boot Linux OS based in a recent Debian release, customized (remixed) to add additional applications and library support for programming compatible with the author's other GLFPE systems. The live boot OS boots from a USB drive or DVD-R, and is self-contained, in that it need not be installed permanently, nor does it rely on the hard drive in the computer at all. The live boot technology uses RAM to "fake out" the lack of hard drive, so as a practical matter one needs at least 2 Gb of RAM in the machine. One also needs to use external USB flash drives as work drives, and to preserve data between sessions. The author posts up-to-date ISO images which can be downloadede to make GLFPE for linux bootable media about once a month. The interested user can simply dowload, burn, and boot to try one. The software to burn or copy is available (free) for all OS types. One may easily use a Windows computer and a Windows program to set up a Linux OS to boot later. One major requirement is getting harder to guarantee as time marches forward. The issue is not unique to GLFPE, but is a factor in trying ANY alternative OS (such as Debian, Ubuntu, or Mint) on a modern PC. In order try an alternative OS such as Linux on a PC (which presumably has Windows installed), you MUST be able to boot from an external device, such as DVD or USB. It USED to be pretty simple. You would insert the alternative USB stick or DVD before boot, turn on the computer, and either it would automatically recognize the new disk and boot it, or present the user a menu to make the choice. One MIGHT have to press a special key (such as F2) during boot and change BIOS settings to be able to boot from the DVD or USB, but is almost always worked. The recent trend to UEFI "Secure Boot" BIOS systems, however has made trying a live boot Linux somewhat more complicated. The GLFPE is based on Debian, which can boot from either Legacy Bios or UEFI modes, BUT NOT IN SECURE BOOT MODE (yet -- as of this writing). If you have a recent version of Windows (10) installed, chances are it has Secure Boot enabled, and if you still want to try GLFPE, you'll have to find out how to temporarily change the boot on your particular machine. The author has been fortunate to use mostly older machines without Secure boot, and has chosen to turn it off completely on a newer computer. Such a choice might worry you too much to try live boot OS systems at all. If the computer is your OWN (not your employer's), you can make the choice, and you have the option of turning off Secure Boot altogether, even for Windows. There is much debate about the security value of Secure Boot, versus the freedom to try experimental operating systems which MIGHT actually be inherently more secure to run. Commercial vendors such as Microsoft have no trouble recommending you lock your machine to ther product. Different brands of computer all do things differently, and some have completely locked down the BIOS and won't do anything without Secure Boot. In that case you might have to forget GLFPE for Linux, at least for now. I hope not. GLFPE for Linux is currently based on Debian 10 (buster), the stable version. Debian is actually the foundation technology behind other familar Linux OSes suchas Ubuntu and Mint. Debian maintains and encourages a more Free Software philosophy than the more "trademarked" Ubuntu and Mint. Not only do they encourage remix and redistribution of Debian, they actually provide a superior build tool ("live-build" package) to prepare the ISO image of the live boot system and installer utility, compatible with that used to create the official release. Updates to the Linux kernel and applications are largely automatic during a build process which takes 2-4 hours. Once a base configuration is stable and debugged, rebuillding updated live boot iumages is easy, traceable, and highly reliable. The user CAN, if nterewsted, participate and try his own remix. The author (GLF) makes the necessary configurations and instructions available to replicate the work. GLFPE has been built for 32-bit (i686) and 64-bit (AMD64) computer systems. Either will work if the computer has a 64-bit proceessor (AMD64), but the i686 version is required for a 32-bit only (older Intel based) computer. The ISO image files and associated archive files distributed in this compendium contain a large amount of software, documentation, and other content, all of which is known, or believed in good faith, to be free or open source, freely available and redistributable content without encumbrances of licensing which prohibit their free distribution and use. See other files in this archive for further description of license or copying terms. GLFPE is a portable working toolset for programmers ---------------------------------------------------- The GLF Programming Enironment (GLFPE) is a collection of free and open source compilers and associated programming tools assembled by the author (GLF), which port a similar complete working environment to at least three different operating systems. At this time it has been ported to and maintained for: PC compatible computers running an installed version of Windows; PC compatible computers capable of booting a live DVD or USB Linux OS; Raspberry Pi microcontroller (A,B,2,or 3) with at least 8Gb SD card. Programming languages supported, with working sample source code, are C, C++, Fortran, COBOL, Python, with more readily available. A few simple integrated development environment (IDE) tools are provided (Orwell Dev-C++, V IDE, Code::Blocks, Geany), which the author uses and reistributes. Programmers tend to be stubborn about preferences, though, and users are free to adapt other preferred editors or IDEs as they see fit. The author will not object, neither will he help if you use Eclipse, Visual C++, Xcode, or some other such thing, but he won't help you figure it out, either. GLF provides what he uses and can tell you how to use. How the GLFPE is used on different OS systems ---------------------------------------------- The Windows version runs a suite of programs in a portable fashion, without formal installation, from a work drive assumed to be a USB stick at least 4Gb in size, preferably fast access (high speed flash and/or USB 3.0). The system essentially exists as a work drive with alot of portable applctions and data, and the only installations which might occur are for possible serial port or other hardware drivers, which must be installed into Windows itself. The author does not work for Microsoft, so he cannot give you a working copy of Windows for free. HOWEVER, he CAN give you a working copy of Gnu/Linux for free. The Linux version of the GLFPE is a complete integrated, fully runnable (and installable if so desired) operating system complete with a similar collection of tools. It runs as a live boot DVD or USB, and no commitments need be made to the host computer to run all the tools and applications. The current version is a custom built remix of Debian 10 (buster). As a live boot system, changes or extra sofware may be temporarily installed during a session, but the changes disappear upon the next boot. It can even be installed to a Virtual Machine (VM) running under some other OS -- it has been tested on Virtualbox. The Raspberry Pi version is an image file suitable for burning to an SD card as the actual boot drive for the RPi. It has on it a Raspbian 10 operating system very similar in nature to the Linux live boot version, but runs as an installed OS on the RPi. As an installed system, all changes made to applications or configurations are cumulative and permanent. The sample source code to compile --------------------------------- The source code distributed with GLFPE is both an offer of teaching examples and a test suite to demonstrate the functionof the compiler toolset. The sample code is voluminous and is either the personal product of the author (GLF), or the compilation of freely available examples and tutorials by others who allow it to be redistributed. It runs the gamut from simple command-line utilities to large graphical libraries for leveraging programming effort in a GUI environment. It is described more fully elsewhere in this archive, and by the commented source code itself. Use it if you wish, or don't. The author offers it to show that the system works. However, it is assumed if you are really interested in GLFPE, it is because you want to write your own programs, and you can use the toolset whether you even look at the sample code or not.