Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blocks:server:tweaks [2019-03-26 11:17] admin created |
blocks:server:tweaks [2024-10-08 11:01] (current) admin Change "orange suitcase" |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Linux ServerImprovements | + | ====== 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, | 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, | ||
+ | This article describes how to update server images based on Ubuntu 18. If you're using server image version 200525 or later, based on Ubuntu 20, most of what's described below is 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. | ||
- | ===== Linux Operating Systemn Updates ===== | + | :!: If you're using an older version of server, based on Ubuntu 16, released before 2019-05-28, first follow [[blocks: |
- | System components are updated regularly. Most updates are not related to Blocks at all, and make no difference. But occasionally, | ||
- | To update your server: | + | ===== Operating System Updates ===== |
+ | System components are updated regularly. Most updates are not related to Blocks at all, and make no difference. But occasionally, | ||
+ | |||
+ | - Make sure the server has Internet access (test by opening the pre-installed web browser and going to a web address). | ||
+ | - Switch to the pixi-admin user (password is " | ||
+ | - Click the gray A-in-a-circle icon in the toolbar on the left hand side titled " | ||
+ | - If it indicates that software updates are available, consider installing those. | ||
+ | - Restart the server to make sure the updates take effect. | ||
+ | |||
+ | ===== Update Java ===== | ||
+ | |||
+ | Blocks 4.1 and later uses a newer version of Java. If your server currently has an older version of Blocks, you need to update | ||
- | - Make sure the server has Internet access (test by opening the pre-installed Firefox browser and going to a web address). | ||
- Switch to the pixi-admin user. | - Switch to the pixi-admin user. | ||
- | - Click the orange " | + | - Open a terminal window using the terminal |
- | - Select | + | - Copy and paste the following commands into the terminal window: |
- | - If you see "OS updates" | + | |
- | - Other items may appear | + | < |
+ | sudo apt-get update | ||
+ | sudo apt-get install -y wget apt-transport-https | ||
+ | sudo wget -O - https:// | ||
+ | sudo echo "deb [signed-by=/ | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install -y temurin-11-jdk | ||
+ | </ | ||
+ | |||
+ | 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 "temurin-11-jdk-amd64" | ||
+ | |||
+ | Finally, verify that Java 11 is now selected: | ||
+ | |||
+ | < | ||
+ | java -version | ||
+ | </ | ||
+ | |||
+ | The output should indicate " | ||
+ | |||
+ | ==== Offline Procedure ==== | ||
+ | |||
+ | If your Linux-based Blocks server doesn' | ||
+ | |||
+ | - On a computer with internet access, open a web browser and go [[https:// | ||
+ | - Doing so shows a list of files. | ||
+ | - Download the file named temurin-11-jdk_11.0.15.0.0+10_amd64.deb, | ||
+ | - Move the downloaded deb file using a USB stick to your Blocks server. | ||
+ | - On your Blocks server, log in as the pixi-admin user. | ||
+ | - Open a terminal window and type the following command | ||
+ | |||
+ | < | ||
+ | sudo apt install | ||
+ | </ | ||
+ | |||
+ | Make sure there' | ||
+ | |||
+ | ===== Updating Blocks ===== | ||
+ | To update the Blocks program itself, follow the instructions given [[: | ||
- | ===== Updating the Start and Stop scripts ===== | ||
- | The way the Blocks server is started and stopped has changed | ||