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. Java workstation setup

Main Steps

About the course

Presentation

Install the operating system

  1. If you are not sure about the drivers for your WiFi devices, use an Ethernet (cable) network.
  2. For a real, physical computer, insert the installation USB drive into the computer and restart it.
  3. Press Esc or one of the F9..F10 keys (look it up for your specific hardware if necessary) to activate the boot device menu.
  4. Select USB flash drive as boot device. Depending on the boot manager, it may look different, for example (see pictures if necessary)

  5. Then select Install Xubuntu
  6. To set Xubuntu as the only operating system, select the option: Erase disk and install Xubuntu
  7. Set up a Xubuntu Linux workstation with the following settings:
    1. Location: Riga
    2. User: your identifier
    3. Password: strong password
    4. Computer name — the first syllables of your first and last name, separated by a dash, for example val-vit
    5. Language English or latvian
  8. Complete the setup wizard and log in to your computer

Set up your operating system

  1. Connect your computer to your router or switch using an Ethernet cable
  2. If necessary, familiarize yourself with terminal and ways to copy, paste, and execute commands
  3. Set the IP address of cserver:
    1. Open a terminal
    2. type: sudo mousepad /etc/hosts and add lines to the file that look like this:

      127.0.0.1 localhost
      127.0.1.1 val-vit
      3.123.45.45 cserver

      where val-vit is your computer and cserver is the server name provided by your instructor.

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

  5. Check that additional software repositories are enabled:
    1. open a terminal and enter the command:

      sudo su
      cat /etc/apt/sources.list.d/ubuntu.sources

      check that it contains lines Components: main restricted universe multiverse

  6. Refresh repository metadata, update system, and clean up unnecessary packages with the command in the terminal:

    sudo apt update; sudo apt full-upgrade; sudo apt autoremove

    press enter key to confirm actions (and similarly for further tasks)

  7. Restart your computer.

Install additional packages

  1. Install the JDK and Maven tools with the command (and implicitly the Java development environment as a Maven dependency):

    sudo apt-get install default-jdk maven
  2. Download the Eclipse archive file from https://www.eclipse.org/downloads/packages/

    or

    download IntelliJ IDEA from https://www.jetbrains.com/idea/download/

  3. Create a folder IDEs in your home folder
  4. Unzip the archive to the IDEs folder.
  5. help Check if the command java -version returns information about Java
    help Check if the command mvn -version returns information about Maven

  6. For more information, see:
    1. Eclipse uz Linux
    2. Noderīgas Ubuntu Linux komandas
  7. If you are having problems with your WiFi network, see Bezvadu tīkls.
  8. Install the git command line and meld comparision tool:

    sudo apt-get install git meld
  9. Reboot your computer.

Set up user data

  1. Set up user data Git:

    git config --global user.name "FirstName LastName"
    git config --global user.email firstname.lastname@example.com
  2. Set the default git editor for taking notes, etc., for example:

    git config --global core.editor mousepad
  3. Set meld as git's default merge and change review tool:

    git config --global merge.tool meld
    git config --global diff.tool meld

Optional tasks

Remove unnecessary packages

  1. Remove the update manager so you don't get annoyed by update notifications1:

    sudo apt-get purge update-manager

Install better VirtualBox drivers

To enable copy and paste between the host system and the virtual machine, additional drivers must be installed in the virtual machine.

  1. In the terminal, run the command:

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

    sudo ./autorun.sh

    and wait for the installer to finish and press Enter

  5. Reboot the virtual machine.
  6. In the VirtualBox window, select the menu Devices — Shared Clipboard — Bidirectional

  1. ^ This will also remove the ubuntu-release-upgrader-gtk* update-manager* update-notifier* xubuntu-desktop* metapackages (packages that contain packages), but the actual packages will remain installed.

  

Created by Valdis Vītoliņš on 2025-01-28 15:26
Last modified by Valdis Vītoliņš on 2025-02-13 18:28
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License