This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge2:applications:chromium [2022/09/07 02:12] nick |
products:sbc:edge2:applications:chromium [2025/05/15 04:12] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Edge2 Chromium with WebGL ====== | ====== Edge2 Chromium with WebGL ====== | ||
| + | ===== Introduction ===== | ||
| + | |||
| + | This document mainly describes how to install Chromium and add WebGL support. | ||
| + | |||
| + | <WRAP important > | ||
| + | No need any setup for **1.7.4** image or newer, just ignore this documentation. | ||
| + | </ | ||
| + | |||
| + | <WRAP important > | ||
| + | If you install Chromium using snap, you can't use WebGL. | ||
| + | </ | ||
| + | |||
| + | <WRAP alert > | ||
| + | This is just an experienced function, you may got some issues when you enable the WebGL, you can follow the steps below to enable WebGL at your own risk. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Upgrade the System ===== | ||
| + | |||
| + | You need to upgrade the system to latest version. | ||
| + | |||
| + | ```shell | ||
| + | sudo apt update | ||
| + | sudo apt full-upgrade | ||
| + | sync | ||
| + | sudo reboot | ||
| + | ``` | ||
| + | |||
| + | ===== Adjust GPU Links ===== | ||
| + | |||
| + | In order to use the WebGL you need to adjust the GPU links, you can follow the steps below: | ||
| + | |||
| + | ```shell | ||
| + | sudo cp / | ||
| + | sudo ln -fs / | ||
| + | sync | ||
| + | ``` | ||
| + | |||
| + | <WRAP alert > | ||
| + | These steps will break the X11 desktop, if you want to use the X11 desktop, you can follow the tetps below to recovery to original state. | ||
| + | ```shell | ||
| + | sudo rm / | ||
| + | sudo mv / | ||
| + | sync | ||
| + | ``` | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Install Chromium from APT Source ===== | ||
| + | |||
| + | Ubuntu 22.04 will use '' | ||
| + | |||
| + | ```shell | ||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt remove chromium-browser | ||
| + | sudo snap remove chromium | ||
| + | sudo apt install chromium-browser | ||
| + | ``` | ||
| + | |||
| + | ===== Setting Flags to Enable WebGL ===== | ||
| + | |||
| + | Open your '' | ||
| + | |||
| + | As shown in the figure below, you need to enable these flags. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Restart '' | ||
| + | |||
| + | ===== Test ===== | ||
| + | |||
| + | You can test Chromium' | ||
| + | |||
| + | {{: | ||
| - | {{page> | ||