Warning

If it is not explicitly told in following recipe, setting up services are described for Ubuntu 24.04 server, but applications are described for Xubuntu 24.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

Prev
DatZB028
Next
2. Java project setup

Main Steps

About the course

Presentation

Install the operating system

  1. Set up Xubuntu operating system on physical or virtual computer

Set up your operating system

  1. If necessary, familiarize yourself with terminal and ways to copy, paste, and execute commands
  2. 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.

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

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

  5. 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)

  6. 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 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 Recipes.WiFi.
  8. Install the git version control and meld comparision tool:

    sudo apt 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 purge update-manager
  2. Remove snap

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

Prev
DatZB028
Next
2. Java project setup
  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 13:26
Last modified by Valdis Vītoliņš on 2026-02-05 19:44
XWiki Powered
Creative Commons Attribution 3.0 Unported License