Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:server:tweaks [2020-07-12 20:34]
admin [Linux Server Improvements]
blocks:server:tweaks [2023-03-14 20:58] (current)
mattias [Removing Unifi Wifi Support]
Line 20: Line 20:
 ===== Update Java ===== ===== Update Java =====
  
-Blocks 4.1 and later uses a newer version of Java. Before updating Blocks, you need to update your Java version. If your server has internet access, proceed as follows (see below for an off-line alternative).+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 Java to version 11 (see below for how to check what version is installed). If your server has internet access, proceed as follows (see below for an off-line alternative).
  
   - Switch to the pixi-admin user.   - Switch to the pixi-admin user.
-  - Open a terminall window using the terminal icon on the left hand side.+  - Open a terminal window using the terminal icon on the left hand side.
   - Copy and paste the following commands into the terminal window:   - Copy and paste the following commands into the terminal window:
  
 <code> <code>
-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 update
-sudo apt-get install  -y adoptopenjdk-11-hotspot+sudo apt-get install -y wget apt-transport-https 
 +sudo wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /usr/share/keyrings/adoptium.asc 
 +sudo echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list 
 +sudo apt-get update 
 +sudo apt-get install -y temurin-11-jdk
 </code> </code>
  
Line 40: Line 41:
 </code> </code>
  
-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.+When prompted, type the number corresponding to "temurin-11-jdk-amd64" in auto mode (likely number 0) and press return. If auto mode is not available, choose manual mode, then run the command again and auto mode should appear. 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: Finally, verify that Java 11 is now selected:
Line 48: Line 49:
 </code> </code>
  
-The output should indicate "openjdk version 11.0.7" (where 11 is the important number, following digits may be different).+The output should indicate "openjdk version 11.0.15" (where 11 is the important number, following digits may be different).
  
 ==== Offline Procedure ==== ==== Offline Procedure ====
Line 54: Line 55:
 If your Linux-based Blocks server doesn't have Internet access, or you for some other reason can't use the online method, you can instead proceed as follows: If your Linux-based Blocks server doesn't have Internet access, or you for some other reason can't use the online method, you can instead proceed as follows:
  
-  - On a computer with internet access, open a web browser and go [[https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/pool/main/a/adoptopenjdk-11-hotspot/|here]]. +  - On a computer with internet access, open a web browser and go [[https://packages.adoptium.net/ui/native/deb/pool/main/t/temurin-11/|here]]. 
-  - Doing so shows a list of files. If you receive an error message, the offline files may have been moved, in which case a google search for "adoptopenjdk java 11 hotspot" may help track them down. +  - Doing so shows a list of files. If you receive an error message, the offline files may have been moved, in which case a google search for "temurin java 11" may help track them down. 
-  - Download the file named adoptopenjdk-11-hotspot_11.0.7+10-2_arm64.deb, or some later version if available.+  - Download the file named temurin-11-jdk_11.0.15.0.0+10_amd64.deb, or some later version if available.
   - Move the downloaded deb file using a USB stick to your Blocks server.   - Move the downloaded deb file using a USB stick to your Blocks server.
   - On your Blocks server, log in as the pixi-admin user.   - On your Blocks server, log in as the pixi-admin user.
Line 65: Line 66:
 </code> </code>
  
-Make sure there's a space after the word //install//, then drag the file transferred using the USB stick into the terminal window, so its path appears at the end of the command (separated by a space). Now press Enter to execute the command, and type the password for the pixi-admin user. This installs the update from the deb file. You can now enable the newer java version using the //sudo update-alternatives// command shown above and finally verify that you have the correct version. +Make sure there's a space after the word install, then drag the file transferred using the USB stick into the terminal window, so its path appears at the end of the command (separated by a space). Now press Enter to execute the command, and type the password for the pixi-admin user. This installs the update from the deb file. You can now enable the newer java version using the sudo update-alternatives command shown above and finally verify that you have the correct version.
  
 ===== Updating Blocks ===== ===== Updating Blocks =====
Line 72: Line 73:
  
  
-===== 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: 
  
-  - Switch to the pixi-admin user. 
-  - Open a terminall window using the terminal icon on the left hand side. 
-  - Type (or copy/paste) the following commands into the terminal window: 
- 
-<code> 
-sudo apt remove mongodb-org 
-sudo apt remove unifi 
-</code>