Java Bootcamp
2. Preparation of Java project

1. exercise: Preparation of Java development workstation

Main steps

About the course



Install operating system

  1. Put installation USB drive in computer and restart it.
    1. Use F12 to activate booting device menu
    2. Select LEGACY BOOT — USB Storage Device


    3. If there is operating system installed already, choose option: Erase disk and install Lubuntu

      a) Screenshot of choice if there is NOT operating system on disk:

      b) Screenshot of choice if there IS operating system on disk:

  2. Install Lubuntu Linux workstation with following settings:
    1. Location: Riga
    2. User: student
    3. Password: Student007
    4. Computer name — first syllables of name and surname separated with dash, e.g., val-vit
    5. Language English or Latvian
  3. Complete setup wizard and log into your computer

Configure operating system

  1. Connect your computer with Ethernet wire to the router or switch
  2. If necessary, familiarize yourself with Terminal and ways to copy-paste and execute commands
  3. Set IP address of the bcserver:
    1. open terminal
    2. enter: sudo leafpad /etc/hosts and add lines in file, that the look is like following:       localhost       val-vit    bcserver

      where val-vit is your computer and bcserver is name of the Java Bootcamp Server.

      help check that ping bcserver command returns response times
      help check that /etc/hostname has the same name e.g. val-vit as /etc/hosts, e.g. val-vit

  4. If you use other WiFi network, don't set this, otherwise set bcserver as a proxy server for apt package manager:
    1. press ctrl+alt+t to open terminal
    2. enter command:

      sudo leafpad /etc/apt/apt.conf
    3. In opened file add line:

      Acquire::http::Proxy "http://bcserver:3128";
  5. Enable additional software repositories:
    1. open terminal and enter command:

      sudo leafpad /etc/apt/sources.list
    2. remove hash and space (# ) for remote repository entries (lines which start with # deb) and save file.
  6. Update repo metadata, upgrade system, clean up packages and clean cached files with command in terminal:

    sudo apt-get update; sudo apt-get dist-upgrade; sudo apt-get autoremove

    press Enter to confirm operations

  7. Restart computer.

Install closed source drivers for WiFi card

  1. Install (or reinstall) device drivers (and recompile part of Linux kernel to interact with proprietary drivers):

    sudo apt install --reinstall firmware-b43-installer
  2. Because these drivers are tied with specific Linux kernel version, disable upgrades of Linux kernel:

    sudo apt-mark hold linux-image-generic linux-headers-generic

    Now you can safely upgrade all other packages.

  3. Reboot your computer.
  4. Disconnect Ethernet wire and check that WiFi hardware is enabled (hardware switch to left, red mark not visible) and is working.
  5. Connect to WiFi: JSE_BC with password: JSE_BC_2019.
  6. If WiFi networks are not provided in network list of network manager, go to Solving WiFi Problems

Adjust other settings

  1. Adjust keyboard settings 1. To disable Ibus:
    1. select menu Start — Preferences — Input method and press button to disable Ibus.

    2. uninstall ibus package at all, by entering command

      sudo apt-get purge ibus
  2. Install LibreOffice software by entering command:

    sudo apt-get install libreoffice
  3. Associate office documents with LibreOffice:
    1. select Start — Preferences — Default applications for LXSession and open Launching applications,
    2. select for Document: LibreOffice Writer and for Spreadsheet LibreOffice Calc,
  4. Add other workstation additions, if necessary

Install development tools

  1. Install Eclipse IDE and Maven building tool with command:

    sudo apt-get install eclipse maven
    help Check that java -version command returns info about java
    help Check that mvn -version command returns info about maven

  2. For more info look at:
    1. Eclipse uz Linux
    2. Noderīgas Ubuntu Linux komandas

Give Ethernet wire to your classmate.

Java Bootcamp
2. Preparation of Java project
  1. ^ Ibus keyboard supports entering hieroglyphs (e.g. for Chinese, Japanese etc.) using standard keyboard. It interferes with hot-keys for applications (e.g. Eclipse).
Created by Valdis Vītoliņš on 2017-01-03 10:07
Last modified by Valdis Vītoliņš on 2019-03-04 13:06
Xwiki Powered
Creative Commons Attribution 3.0 Unported License