Documents are attached
Setting up LXLE Karen Heart, Instructor Last edited: 3-19-21 Notes Contents Downloading LXLE Creating a VM using VirtualBox CSC 376: Adding a link to Python CSC 376/439: Installing the Java compiler in the VM Downloading LXLE · Go to http://www.lxle.net/download/ · Click on the link to download LXLE 64Bit and download the .iso file. Creating a VM using VirtualBox · Although there are many hypervisors available, the instructions below describe the creation and use of a Virtual Machine (VM) on VirtualBox, which is a free hypervisor published by Oracle. Note: You may also obtain a free version of VMware Workstation Player from VMware through DePaul, but I will not answer any questions on how to use it. · If you do not understand what a VM is, please read about it; one good article online is, "What Is a Virtual Machine? Everything You Need to Know" · Go to VirtualBox.org, download the current version of VirtualBox, and install it. · Next, create a VM according to the VirtualBox manual, then start the VM. Note: Use the following settings: · The VM type is Linux. NOTE: If you do not choose Linux, your VM will not start! · The version is Ubuntu (64-bit). NOTE: If no 64-bit option is available, your host OS lacks support for virtualization; you must fix it before proceeding. Read, Why is VirtualBox only showing 32 bit guest versions on my 64 bit host OS? · Memory size should be set to 2048 MB · When the "File location and size" screen appears, set the size of the virtual hard disk to 20.00 GB. · Immediately after the VM is created, but before starting it, click on "Settings" in the main VirtualBox menu while the new VM is still selected. Click on "System" in the left column, then on the "Processor" tab on the right side. Make sure that the number of processors is set to 1. NOTE: Use of more than one processor will mask your programming errors, which will be discovered by my grader or myself! · Start the VM. Because LXLE has not been installed, you will be asked to select a start-up disk. Click on the folder icon in order to choose a "virtual optical disk file", i.e., an .iso file. Use the .iso file you downloaded. · A menu of options appear; the first is "live - legacy boot the Live System" and it is selected. Choose that option by pressing Enter. · Disconnect the wired network connection, near the top, by clicking on the network icon, then clicking "Disconnect". · Click on the time near the top and change the clock to the Chicago time zone; also, change the time option to "Manual" · Change the screen resolution by choosing Control Menu -> Hardware -> Monitor Settings: Change Resolution to 1024 x 768. Don't worry, this will be only a temporary change that is needed in order to view the installation screens properly. · Double click "Install LXLE Linux" on the desktop or choose Control Menu -> Settings -> Install LXLE Linux. · The installation process will ask you several questions. · On "Installation Type" screen, the default option, "Erase disk and install LXLE" should already be selected. Click "Install Now". · On the "Who are you?" screen, enter user name and password information; then, click "Continue". · After it installs, click "Restart now" · The screen may appear black; if so, press Enter. · If you left your computer to perform the install and cannot see the "Restart now" option but, instead, are now confronted with a lock screen asking for a password, you cannot login. The way to workaround this problem is to simply shut down LXLE and then login using your account. To force VirtualBox to shut down the VM, click on the VirtualBox menu at the top: Machine -> ACPI Shutdown. This may take a few seconds, but certainly less than a minute. · Login again. · To disable the screen lock mechanism, click the Programs icon (round symbol with lines) near the top left (just below the VirtualBox menu, "File Machine View ..."), then Control Menu -> Settings -> Desktop applications for LXSession. Click on Autostart on the left side, then uncheck #locker. You can dismiss the dialog box by clicking on the red x in the upper right corner. · Update the system: Control Menu -> Software -> Check & Install Updates · Once the update finishes, reboot. · Finally, you must prepare LXLE for use for your assignments. Take the following steps from the command line: · $> sudo apt-get update · $> sudo apt-get install build-essential · $> sudo apt-get install g++-multilib CSC 376: Adding a link to Python · By default, Python 3 is installed with LXLE. · The name of the Python executable is actually python3.x, where x is the subversion (e.g., 3.5, 3.6, etc.) but you can access it through a link, python3. The test scripts I have devised for CSC 376, however, use the name py. · You can add the py link to LXLE by using the ln program. · From the command line, figure out the full name of the version of Python installed, then use the full name with the ln program. In the following example, you will see that both Python 2 and Python 3 are present, and the name python links to Python 2. There are also versions that end with the letter 'm'; they are versions that include an optimized version of malloc, which you do not need: · $> cd /usr/bin · $> ls -l python* · lrwxrwxrwx 1 root root 9 Mar 29 18:09 python -> python2.7 · lrwxrwxrwx 1 root root 9 Mar 29 18:09 python2 -> python2.7 · -rwxr-xr-x 1 root root 3637096 Nov 7 04:07 python2.7 · lrwxrwxrwx 1 root root 9 Mar 29 18:09 python3 -> python3.6 · -rwxr-xr-x 3 root root 4526456 Nov 7 04:44 python3.6 · -rwxr-xr-x 3 root root 4526456 Nov 7 04:44 python3.6m · lrwxrwxrwx 1 root root 10 Mar 29 18:09 python3m -> python3.6m · $> sudo ln python3.6 py CSC 376/439: Installing the Java compiler in the VM · Although the OpenJDK 8 JRE (Java Runtime Environment) is included with LXLE, you must add the Java development environment if you are going to write code in Java. · Install the JDK (Java Development Kit, which includes the compiler) from the command line as follows: · $> sudo apt-get install default-jdk · For more information about installing Java, see How To Install Java with Apt-Get on Ubuntu 16.04 (LXLE is actually a version of Ubuntu).