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.

  4. 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

  5. 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";
  6. 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.
  7. 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 (and similarly for other tasks)

  8. Restart computer.

Install additional packages

  1. Install LibreOffice software with command:

    sudo apt-get install libreoffice
  2. Install Eclipse IDE and Maven building tool with command:

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

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

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. Restart your computer.
  4. Disconnect Ethernet wire.
  5. help Check that WiFi hardware is enabled (hardware switch to left, red mark not visible) and is working.

  6. Connect to WiFi: JS_BC with password: JS_BC_2020.
  7. help Check that you can open page

  8. If WiFi networks are not provided in network list of network manager, go to Solving WiFi Problems.
  9. Give Ethernet wire to your classmate.

Adjust settings

  1. uninstall ibus1 package with command:

    sudo apt-get purge ibus
  2. Remove update manager, to not get annoyed with updating messages:

    sudo apt-get purge update-manager
  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. If you want to get help from this teacher on your computer:
    Disable touchpad while typing2:

    1. select menu Start — Preferences — Default applications for LXSession, select tab Autostart,
    2. enter command syndaemon -d and click on + Add button.
    3. Log off and on to make command effective.

    Add Latvian Modern keyboard layout:

    1. right click on Keyboard Layout Handler icon in taskbar,
    2. select "Keyboard Layout Handler" Settings,
    3. in window Keyboard Layout Handler uncheck box Keep system layouts and click Add,
    4. in window Add Keyboard Layout expand row lv Latvian and select lv(modern) and press OK,
    5. help Check, that lv modern keyboard layout is addend in list, and press Close.
    6. You can change keyboard layout by clicking on Layout Handler icon, or by pressing Shift and CapsLock keys together.
  5. Add other workstation additions, if necessary.

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).
  2. ^ This will make you slower, if you don't use mouse, because any time you use keyboard, you will have to wait for touchpad to get enabled.
Created by Valdis Vītoliņš on 2017-01-03 10:07
Last modified by Valdis Vītoliņš on 2020-02-03 14:23
Xwiki Powered
Creative Commons Attribution 3.0 Unported License