This is an old revision of the document!


Linux Server Improvements

PIXILAB regularly revisits and improves the Linux server image, resulting in newer releases. The release is indicated by the date shown as part of the filename. However, for a running installation, it's not practical to re-image the server regularly. Instead, we provide important notes here on what you can do to keep up to date with the state of the art, keeping your server working as well as possible.

This article describes how to update server images based on Ubuntu 18. If you're using server image version 200525 or later, which is based on Ubuntu 20, this has already been taken care of. However, you may still want to update your operating system from time to time to keep up-to-date with security patches.

:!: If you're using an older version of server, based on Ubuntu 16, released before 2019-05-28, first follow this guide, then proceed as follows below.

Operating System Updates

System components are updated regularly. Most updates are not related to Blocks at all, and make no difference. But occasionally, there are security or performance improvements that may be worthwhile to incorporate.

  1. Make sure the server has Internet access (test by opening the pre-installed web browser and going to a web address).
  2. Switch to the pixi-admin user (password is "pixi" if you haven't changed it).
  3. Click the orange "suitcase" icon in the toolbar on the left hand side, titled "Ubuntu Software".
  4. Select the "Updates" tab.
  5. If you see "OS updates", click the "Install" button next to it.
  6. Restart the server to make the updates take effect.

Update Java

Blocks 4.1 and later uses a newer version of Java. Before updating Blocks, you need to update your Java version:

  1. Switch to the pixi-admin user.
  2. Open a terminall window using the terminal icon on the left hand side.
  3. Copy and paste the following commands into the terminal window:
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo apt-get install -y software-properties-common
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt-get update
sudo apt-get install  -y adoptopenjdk-11-hotspot

Enter the pixi-admin user's password when requested. Then switch to Java 11 using the following command:

sudo update-alternatives --config java

When prompted, type the number corresponding to "adoptopenjdk-11-hotspot-amd64" in auto mode (likely number 0) and press return. Note that this command can be used to switch back to the older Java version if desired, without having to reinstall anything.

Finally, verify that Java 11 is now selected:

java -version

The output should indicate "openjdk version 11.0.7" (where 11 is the important number, following digits may be different).

Updating Blocks

To update the Blocks program itself, follow the instructions given here.

Removing Unifi Wifi Support

If you're not using your Blocks server as a Unifi wifi network controller, we recommend that you remove that software:

  1. Switch to the pixi-admin user.
  2. Open a terminall window using the terminal icon on the left hand side.
  3. Type (or copy/paste) the following commands into the terminal window:
sudo apt remove mongodb-org
sudo apt remove unifi