Installation/Live Images/USB-Stick for OFW11/User Guide
1 Introduction
This small user guide aims at getting you started with using the 64-bit Lubuntu 15.10 Live installation that is currently available for a physical USB-stick (real or virtual boot) or as a Virtual Machine Appliance for the VirtualBox.
WARNING: The image and virtual machines created for the Workshop will not work in 32-bit machines.
Contents
2 Software provided with the disk image(s)
- Lubuntu 15.10 x86_64
- Live USB drive boot for full capabilities.
- Virtual Box installers for Mac OS X and Windows, along with the respective virtual machine for virtual live booting are provided in the USB drive as well, in case the live boot in the real machine fails. Details provided inside the folder ThirdParty
- Cases and software for the training sessions, provided inside the folder Training
- foam-extend 4.0 (from 3.2-nextRelease branch)
- OpenFOAM 3.0.x
- Note: It's not OpenFOAM-dev, because we already have foam-extend 4.0 to worry about.
- Each version of foam-extend and OpenFOAM will have its own version stack of third-party software. For example:
- OpenFOAM 3.0.x provides ParaView 4.4.0;
- foam-extend 4.0 provides ParaView 4.3.1.
- swak4Foam 0.4.0 RC2 and PyFoam, both as up-to-date as possible, for both foam-extend and OpenFOAM.
- cfMesh 1.1.1, for both foam-extend and OpenFOAM.
- Helyx-OS v2.4.0 for OpenFOAM 3.0.x
- Dakota 6.3
- Salome 7.7.1
- OpenSCAD 2015.03-1
- Anaconda 4.0 with Python 2.7, along with a few more packages, that are listed here: Installation/Live_Images/USB-Stick_for_OFW11/Creation_Guide#Install Anaconda 4.0.0 with Python 2.7
- KDE's kompare
- emacs
- rst2pdf
- imagemagick
3 Booting
There are 3 ways we can boot up the Lubuntu Live installation that was created for this Workshop:
- If you believe your laptop (or transportable desktop) computer can boot the physical USB-stick, then please try the instructions given in section Booting directly from the USB-stick.
- If your laptop (or transportable desktop) computer cannot boot from the physical USB-stick, then please try the instructions given in section Booting the USB-stick via VirtualBox.
- If your machine cannot handle the USB stick, or if you cannot deploy the disk image to your own USB-stick or if there aren't any more sticks left in the Workshop, then you can rely on using a Virtual Machine. For this, follow the steps given in section Booting without USB-stick and with Virtual Machine Appliance.
3.1 Booting directly from the USB-stick
Each laptop has its own booting strategy, where some might not even be able to do so.
Nonetheless, the conventional way is:
- Insert the USB-stick in your laptop.
- While the laptop is booting up, it should show a keyboard key option for booting, which usually is either one of the following keys: DEL, F2, F10, ESC, Or any other F* keys.
- Then either use the boot menu that the BIOS/UEFI provides or configure the BIOS/UEFI to first boot from the USB-stick.
- If it starts booting properly from the USB-stick, it should show the language selection screen, as shown in the chapter Live Boot menu .
- Or possibly only a black screen with only a symbol on the lower left corner of the screen. In which case, please wait 30 seconds to start booting without pressing any keys.
Now, depending on whether it all went well or not:
- If it went well, then please proceed to the chapter Live Boot menu .
- If it did not go as planned, then please turn off your computer and boot into your standard Operating System, may it be Windows or Mac OS X. Then go to the section Booting the USB-stick via VirtualBox.
3.2 Booting the USB-stick via VirtualBox
We wont go into lengthy details on how to install and use VirtualBox, because it already a fairly good guide on its website, as shown here: Chapter 1. First steps. If you don't have access to the Internet, but you do have access to the USB-stick, then check the folder ThirdParty and open the PDF file VirtualBox-UserManual.pdf.
The installers for Windows and Mac OS X are inside the folder ThirdParty.
In addition, since we will be booting the USB-stick within VirtualBox, after installing it, please also install the extension pack, which is inside the sub-folder VirtualBoxExtensionPack. It's the file Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack and if you double-click on it, VirtualBox should open it without any problems; if double-click didn't work, check the section 8.36 VBoxManage extpack in the VirtualBox-UserManual.pdf document.
- Note
- If you are running VirtualBox within a real machine that is running a Linux Distribution, then make sure to add your user to the group for virtual box users, by running a command similar to this:
sudo usermod -aG vboxusers $USER
Now, once you have installed VirtualBox and got a hang on the basics, then follow these steps:
- Copy the folder VM from the USB-stick onto your desktop or documents folder or some other folder.
- Go into the folder VM on your target location (desktop/documents/other) and double-click on the file OFW11USBVM.ova. This should start VirtualBox and its interactive import mechanism.
- As shown in the image below, it shows the import window for the file you double-clicked on. If this window didn't appear, then through VirtualBox's own menu, choose: File -> Import Appliance... and then browse to find the OVA file mentioned in the previous step.
- Once the import is complete, you need to:
- Select the newly imported VM on the list shown on the left side of the window.
- Click on the Storage icon on the right side of the window.
- On the item hanging from the Controller: IDE tree branch, shown on the middle of the newly shown window;
- One the Optical Drive shown on the right part of the screen, click on the CD/DVD icon and browse for the ISO file that is inside your local VM folder, namely the file VMbootUSB.iso.
- Click on the OK button for the Settings window.
- Now, with our virtual machine named OFW11 Lubuntu Live VM selected on the right side of the window, click on the big Start button on the top and let it start the virtual machine!
- If it starts booting properly from the USB-stick, it should show the language selection screen, as shown in the chapter Live Boot menu .
Now, depending on whether it all went well or not:
- If it went well, then please proceed to the chapter Live Boot menu .
- If it did not go as planned, then try the section Booting without USB-stick and with Virtual Machine Appliance and/or ask for assistance at the Workshop or at this thread: Support for the USB-stick image and Virtual Machine Appliance for the OFW11
3.3 Booting without USB-stick and with Virtual Machine Appliance
Quoting the only important detail from the previous section:
- We wont go into lengthy details on how to install and use VirtualBox, because it already a fairly good guide on its website, as shown here: Chapter 1. First steps.
Now, once you have installed VirtualBox and got a hang on the basics, then follow these steps:
- Download the file OFW11-2016_v3.ova from the Download page, listed in section Virtual Machine Appliance file. It's a rather big file and it will take a considerable time to download.
- Go into the folder where the downloaded file is now located and double-click on said file, which should be named OFW11-2016_v3.ova. This should start VirtualBox and its interactive import mechanism.
- As shown in the image below, it shows the import window for the file you double-clicked on. If this window didn't appear, then through VirtualBox's own menu, choose: File -> Import Appliance... and then browse to find the OVA file mentioned in the previous step.
- Once the import is complete, you need to:
- Select the newly imported VM OFW11 Direct Image on the list shown on the left side of the window.
- Click on the System icon on the right side of the window.
- On the Motherboard tab, change the Base Memory to something that your computer can handle, namely something in the green zone of the tick bar.
- On the Processor tab, change the Processor(s) to something that your computer can handle, namely something in the green zone of the tick bar.
- Click on the OK button for the Settings window.
- Now, with our virtual machine named OFW11 Direct Image selected on the right side of the window, click on the big Start button on the top and let it start the virtual machine!
- If it starts booting properly, it should show the language selection screen, as shown in the chapter Live Boot menu .
Now, depending on whether it all went well or not:
- If it went well, then please proceed to the chapter Live Boot menu .
- If it did not go as planned, then ask for assistance at the Workshop or at this thread: Support for the USB-stick image and Virtual Machine Appliance for the OFW11
If all went well in the chapter Booting, then please follow the following steps:
- The first screen after the booting process started, should be the language option:
- It should then show the boot menu:
- This is the keyboard options menu:
- Now we’re back to the boot menu:
- If all went well, the light on the USB-stick should start blinking (if there is one) and the boot menu will take a little while to go away… eventually, something like one of the following two images will appear:
- When the boot is complete, it should show the Lubuntu Desktop:
Now, if all went well, please continue reading the next chapters!
5 Details of the desktop
- Start menu... well, it's called something else, but it's akin to Windows XP Start button.
- File explorer, for looking interactively to the contents of the files.
- Firefox, for browsing the internet or at least for opening HTML pages.
- LXTerminal, which is the console application for interacting with OpenFOAM/foam-extend applications.
- Minimize all windows, so that we can see the desktop.
- Workspaces, which represent 2 desktops, for showing only one at a time. It's a neat desktop organization capability.
- Window list bar, where the open windows on the current workspaces at listed as long buttons
- Battery icon, which should look different when you have a laptop and the battery is plugged in.
- Network (and WiFi) configuration.
- Keyboard Layout Handler, where you can change the keyboard configuration.
- Shows the current time... and date if you click on it.
- The button for system shutdown, reboot and so on.
6 Changing keyboard layout
Changing the keyboard layout can be done after booting the USB stick, by following these steps:
- Right-click on the Portuguese flag on the lower right corner of the screen, as shown in the image above at the red 1.
- It's set to the Portuguese keyboard layout by default... sorry about that, but it's to ensure that users will update this for themselves.
- Choose the the first option "Keyboard Layout Handler" Settings (#2).
- In the new window, click on the + Add button (#3).
- A new window will show up and there you can choose the keyboard layout.
- Once you've added a new keyboard layout, you can remove any other layouts that you don't need.
- You can now close the window Keyboard Layout Handler.
- If you have more than one layout, you can click on the flag icon (#1) to change between layouts.
7 Starting up OpenFOAM/foam-extend
Double click on the LXTerminal icon.
- For loading the shell environment for OpenFOAM 3.0.x, run:
of30x
- For loading the shell environment for foam-extend 4.0, run:
fe40
Note: Always use a different LXTerminal for each version.
8 How to use other applications that already installed
- HELYX-OS
- Simply run the following command, regardless of the OpenFOAM/foam-extend version that you are using:
helyxos
- Salome
- Simply run the following command, regardless of the OpenFOAM/foam-extend version that you are using:
salome
- OpenSCAD
- Simply run the following command, regardless of the OpenFOAM/foam-extend version that you are using:
openscad
- Dakota
- You need either OpenFOAM or foam-extend environment to be activated, in order to use Dakota.
- Python
- You need either OpenFOAM or foam-extend environment to be activated, in order to use Python.
- PyFoam
- You need either OpenFOAM or foam-extend environment to be activated, in order to use PyFoam.
- swak4Foam
- You need either OpenFOAM or foam-extend environment to be activated, in order to use swak4Foam.
- cfMesh
- You need either OpenFOAM or foam-extend environment to be activated, in order to use cfMesh.