Environment setup guide

  • On this course you are going to use Ubuntu Linux distribution.
  • If you already have Ubuntu installed, you may use on this course.
  • This guide shows how you can prepare either one of the following two options for Ubuntu installation:
    • Network installation on Labranet VLE (Virtual Learning Environment)
    • Local installation on your computer using VirtualBox

Labranet (VLE) installation option

  • Important: This method requires active VPN connection to Labranet if you are using environment from home!
  • Follow these steps to prepare your environment:
    1. Go to the address https://portal.vle.fi.
    2. Enter your Labranet credentials and click Login.
    3. Click Template Catalog.
    4. You should now see catalog item called Linux Basics. Click Deploy button on that item and then from the opening window click Create.
    5. The deployment of your virtual machine should now begin. This could take couple of minutes to finish.
    6. After successful deployment your virtual machine can be found under Deployments page.
    7. Click on your deployed virtual machine. This should open the machine related information.
    8. Under information section you can find your virtual machine's IP address. Copy it to clipboard.
    9. Use Putty or other SSH client application to connect to your virtual machine. See Putty's guide below:
      1. Download Putty from here.
      2. Open Putty and paste the IP address of your virtual machine to Host Name (or IP address) field. Check that Port value is 22 and SSH is selected as a connection type. Click Open.
      3. If you are prompted for SSH key (Putty Security Alert), click Yes.
      4. You should now see the login screen. Use the following login credentials:
        • Username: user
        • Password: root66

VirtualBox installation option

  • With this option your Ubuntu will be running on your local computer on top of virtualization application called VirtualBox.
  • VirtualBox is available for all modern operating systems.
  • Follow these instructions to install VirtualBox on your computer:
    1. First, download the operating system image file for Ubuntu here
    2. Next, Go to the address address https://www.virtualbox.org/wiki/Downloads.
    3. Download the VirtualBox option suitable for your computers operating system (for example choose Windows hosts if you are running Windows 10 on your computer).
    4. Open the installer you downloaded and follow the installation instructions.
    5. After successful installation open the VirtualBox. You should now see the main view of VirtualBox like in the picture below. VirtualBox window
    6. Start creating a new virtual machine by clicking New button.
    7. Give name to your virtual machine (for example Ubuntu). Type and Version fields will be automatically detected according to Name field. Click Next button.
    8. Adjust memory size to match your computers available memory (keep memory preferably in the green area). We are using Ubuntu server version which has the minimum RAM requirement of 512 MB (0.5 GB). Although it is advisable to use at least 1 GB for the VM. Then click Next
    9. Next step will be the Hard disk selection. As we are preparing a completely new installation of Ubuntu, select Create a virtual hard disk now option and select Create.
    10. Now prepare the virtual hard disk for your Ubuntu following these steps:
      • Choose VDI as your hard disk file type and click Next.
      • On the next step you may choose either one of the following:
        • Dynamically allocated: Only necessary space is allocated from your computers hard drive and is filled up when disk space is filled on your Ubuntu.
        • Fixed size: Disk space is allocated immediately from your computers hard drive.
      • Next, change virtual hard disk location if needed and set the size for the disk to be at least 10 GB. Then click Create. If you chose fixed size disk, this process takes a couple of minutes depending of the size you chose for your hard disk.
    11. You should now see your Ubuntu virtual machine listed on your VirtualBox window. Select your virtual machine and click Settings.
    12. Set the following settings:
      • General → Advanced: Set Shared clipboard to Bidirectional.
      • Storage: Click the Empty setting under Controller: IDE and then click disc icon from right and click Choose a disk file.... Browse the Ubuntu image file from your computer you downloaded earlier and click Open.
      • Save all the settings by clicking OK
    13. Now from the VirtualBox main window select your virtual machine and click Start.
    14. VirtualBox will ask your start-up disk. Choose your Ubuntu iso image file from the list and click Start. The installation of your Ubuntu should now start.
    15. Use all default settings for the installation except these:
      • Set your keyboard language to match your preferred language.
      • Install OpenSSH server when prompted.
    16. After the successful installation your virtual machine will be rebooted.
    17. Remove the installation media by selecting DevicesOptical DrivesRemove disk from virtual drive.
    18. You should have the login screen similar to the example below after successful reboot. Ubuntu login screen example
    Important: The default resolution will be 640x480 or 800x600 for Ubuntu server running in VirtualBox so it is suggested to do the following changes for using higher resolution.
    1. Login to your Ubuntu
    2. Open the grub file for editing by typing sudo nano /etc/default/grub
    3. Add this line to the end of the file (You may also use lower 1024x768 resolution):
      • GRUB_GFXPAYLOAD_LINUX=1280x1024
    4. Exit the file and save changes with keyboard shortcut Ctrl + x followed by Y and enter.
    5. Type sudo update-grub.
    6. Then type use command reboot to restart your virtual machine.
    7. You should now have the higher resolution in use.