If it is not explicitly told in following recipe, setting up services are described for Ubuntu 20.04 server, but applications are described for Xubuntu 20.04 workstation. If you use different Ubuntu version or Linux distribution, settings as well as content, names and places of configuration files may be different!
Got it.

1. Preparation of workstation

Main steps

About the course


Practical exercise

Install operating system

  1. If not sure about device drivers for WiFi, use Ethernet (cabled) network.
  2. For real, physical computer, put installation USB drive in computer and restart it.
  3. Press Esc or one of F9..F10 keys (if necessary, google it for your particular hardware) to activate booting device menu
  4. Select USB stick as booting device. Depending on boot manager it may look differently, e.g. (go through images, if necessary):

  5. Then choose Install Xubuntu
  6. To put Xubuntu as only operating system, choose option: Erase disk and install Xubuntu
  7. Install Xubuntu 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
  8. Complete setup wizard and log into your computer

Configure operating system

  1. Connect your computer with Ethernet cable 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 mousepad /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. Enable additional software repositories:
    1. open terminal and enter command:

      sudo mousepad /etc/apt/sources.list
    2. remove hash and space (# ) for remote repository entries (lines which start with # deb) and save file.

      Do not remove # from the first line starting with # deb cdrom:[...! If it is enabled, every time package will be installed, package manager will (infinitly) wait for CD/DVD disk to become ready.

  6. Update repo metadata, upgrade system, and clean up unneeded packages 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)

  7. Restart computer.

Install additional packages

  1. Install JDK and Maven building tool with command (and implicitly Java Development Kit as Maven dependency):

    sudo apt-get install default-jdk maven
  2. Set up Eclipse IDE for Enterprise Java Developers:
    1. Download Eclipse archive file from from Eclipse website;
    2. Create folder IDEs in your home folder;
    3. Exctract archive into IDEs folder.
  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
  5. If you have problems with WiFi network, look at Bezvadu tīkls
  6. Install git command line and git GTK GUI:

    sudo apt-get install git
  7. Restart your computer.

Optional tasks

Remove unneeded packages

  1. Remove update manager, to not get annoyed with updating messages:

    sudo apt-get purge snapd update-manager

Install better drivers for VirtualBox

To enable copy-paste between host system and virtual machine you need additional drivers installed in virtual machine.

  1. In terminal execute command:

    sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
  2. Select menu Devices — Insert Guest Additions CD image...
  3. Open terminal in the folder of virtual CD disk (e.g. open it in file manager and press F4)
  4. Execute command

    sudo ./autorun.sh

    and wait for installer to finish and press Enter

  5. Restart virtual machine.
  6. In VirtualBox window select menu Devices — Shared clipboard — Bidirectional


Created by Valdis Vītoliņš on 2017-01-03 08:07
Last modified by Valdis Vītoliņš on 2023-05-03 14:10
Xwiki Powered
Creative Commons Attribution 3.0 Unported License