Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:server:tweaks [2019-06-13 12:19] admin Offline chromium installation |
blocks:server:tweaks [2024-10-08 11:01] (current) admin Change "orange suitcase" |
||
---|---|---|---|
Line 3: | Line 3: | ||
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 System Updates ===== | + | :!: If you're using an older version of server, based on Ubuntu 16, released before 2019-05-28, first follow [[blocks: |
+ | |||
+ | ===== Operating System Updates ===== | ||
System components are updated regularly. Most updates are not related to Blocks at all, and make no difference. But occasionally, | System components are updated regularly. Most updates are not related to Blocks at all, and make no difference. But occasionally, | ||
- | To update your server: | + | - Make sure the server |
+ | - 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. | ||
- | - Make sure the server has Internet access (test by opening the pre-installed Firefox browser and going to a web address). | + | ===== Update Java ===== |
- | - Switch to the pixi-admin user. | + | |
- | - Click the orange " | + | |
- | - Select the " | + | |
- | - If you see "OS updates", | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | Finally, restart the server to make the updates take effect. | + | |
- | + | ||
- | :!: While most updates are for the better (or at least neutral), they may occasionally cause problems. Make sure to test all important system functions after updating your server. | + | |
- | + | ||
- | + | ||
- | ===== Updating Blocks | + | |
- | + | ||
- | To update the Blocks program itself, follow the instructions given [[: | + | |
- | + | ||
- | ===== Installing the Chromium Browser ===== | + | |
- | + | ||
- | In preparation for Blocks 3, we're strongly recommending you install the Chromium browser (or Google Chrome if you prefer). In Blocks 3, Chromium (or Chrome) will be used to render previews, which solves a problem that in some cases could cause Blocks to crash under Linux. | + | |
- | To install Chromium on your Linux-based | + | 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 |
- Switch to the pixi-admin user. | - Switch to the pixi-admin user. | ||
- | - Open a terminal window. | + | - Open a terminal window |
- | - Install Chromium using the following commands: | + | - Copy and paste the following commands |
< | < | ||
- | sudo apt install | + | sudo apt-get update |
- | sudo apt install | + | sudo apt-get |
+ | sudo wget -O - https:// | ||
+ | sudo echo "deb [signed-by=/ | ||
+ | sudo apt-get update | ||
+ | sudo apt-get | ||
</ | </ | ||
- | :!: If you plan on using the browser installed on your server to edit content in Blocks, you need to install Google Chrome instead of Chromium. However, we don't recommend using the server for editing purposes. | + | Enter the pixi-admin user's password when requested. Then switch to Java 11 using the following |
- | + | ||
- | You can now remove Firefox, as Chrome/ | + | |
< | < | ||
- | sudo apt-get remove | + | sudo update-alternatives |
</ | </ | ||
- | After finishing installing/ | + | When prompted, type the number corresponding to " |
- | - Switch back to the pixi-server user. | + | Finally, verify that Java 11 is now selected: |
- | - Launch Chromium/ | + | |
- | - Once it appears in the launcher (dock) on the side, right-click the icon and chose "Lock to launcher" | + | |
- | ==== Installing Chromium Offline ==== | + | < |
+ | java -version | ||
+ | </ | ||
- | If your Blocks server doesn' | + | The output should indicate " |
- | https:// | + | ==== Offline Procedure ==== |
- | https:// | + | |
- | Store those two " | + | If your Linux-based Blocks server doesn' |
- | - Switch to the //pixi-admin// user. | + | - On a computer with internet access, open a web browser and go [[https://packages.adoptium.net/ui/native/ |
- | | + | - 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 " |
- | - Open a Terminal window. | + | - Download the file named temurin-11-jdk_11.0.15.0.0+10_amd64.deb, |
- | - Type //sudo dpkg -i// followed by a space character. | + | - Move the downloaded deb file using a USB stick to your Blocks server. |
- | - Drag the DEB file beginning with // | + | - On your Blocks server, log in as the pixi-admin user. |
- | - Press Enter and then the //pixi-admin// user's password if requested. | + | - Open a terminal window and type the following command (but don't press Enter). |
- | - Repeat from //sudo dpkg -i// above, | + | |
- | ===== Updating the Start and Stop scripts ===== | + | < |
+ | sudo apt install | ||
+ | </ | ||
- | The way the Blocks server is started and stopped has been enhanced | + | Make sure there' |
- | - Download {{ : | + | ===== Updating |
- | - Move the TAR file to your Linux Blocks | + | |
- | - Double click the TAR file on the Linux server. | + | |
- | - Select both files and drag them to the home folder of the pixi-server user. | + | |
- | {{ : | + | To update the Blocks |
- | + | ||
- | :!: To use these scripts to start and stop the server, you must be running Blocks 2.3 or later. | + | |
- | + | ||
- | Once installed, you can start and stop Blocks in either of the following ways: | + | |
- | + | ||
- | * By restarting the server, which always launches Blocks. | + | |
- | * Start using the PIXILAB Blocks icon in the task bar on the left hand side. | + | |
- | * Stop the server by clicking the Quit button in the Blocks window (not available if started from a non-GUI session – see below). | + | |
- | * Using the start.sh and stop.sh shell scripts from a terminal or SSH session. | + | |
- | + | ||
- | The advantage with the last option is that you can start/stop the server without using the GUI. This is often useful when accessing the server remotely, e.g. over a VPN connection or similar. | + | |
- | + | ||
- | :!: No Blocks window will appear on screen when started from a non-GUI session, such as over SSH. You can check whether the server is running by attempting to log in to it using a web browser. In this case, you must use the stop.sh script to terminate the server. | + | |
- | + | ||
- | ===== Reducing the Wear on the SSD ===== | + | |
- | + | ||
- | During normal operation of Blocks, most disk accesses will be READ operations used to serve media and other data to the display spots. However, due to the default behavior of most Unix-based operating systems, such accesses may still incur a write operation to update the "last accessed" | + | |
- | + | ||
- | Fortunately, | + | |
- | + | ||
- | {{ :blocks: | + | |
- | + | ||
- | Click the //Disks// icon, opening a window like the one shown below. Click the large center partition of the disk to select it. Then choose "Edit Mount Options…" | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | At the beginning of the "mount options" | + | |
- | + | ||
- | < | + | |
- | noatime, | + | |
- | </ | + | |
- | + | ||
- | :!: IMPORTANT: Note that there must be a comma separating the word //noatime// from the word //errors// that was already there. | + | |
- | The result will look like this screenshot. | ||
- | {{ : | ||
- | Click OK to save your changes, then restart the server to make your changes take effect. |