Skip to content

Commit

Permalink
fix: Simulator-VM: https image loading in remote-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
zehnm committed Mar 17, 2023
1 parent 75fdfb8 commit aca0a73
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

_Changes in the next release_

### Fixed
- Simulator-VM: https image loading in remote-ui. Required OpenSSL 1.1.1 libraries were missing.

---

## v0.22.1-alpha - 2023-03-15
Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
- "8443:8443"
environment:
- UC_TOKEN_PATH=/tmp/ui-env/ws-token
# To run the simulator on the same network as the host. Existing Docker integrations must be reconfigured!
# network_mode: "host"
volumes:
- simulator-data:/data
- ./ui-env:/tmp/ui-env
Expand Down
1 change: 1 addition & 0 deletions linux-vm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Installed applications & tools:
- Home Assistant Server
- mkcert
- Qt 5.15.2
- Node.js 18
- VirtualBox guest additions

Installed Remote Two applications:
Expand Down
22 changes: 22 additions & 0 deletions linux-vm/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,23 @@ Notes:
- Most Qt modules are already included in the default installation and therefore not included in the module parameter.
- See [aqtinstall docs](https://aqtinstall.readthedocs.io/en/latest/getting_started.html) for further information.

### Ubuntu 22.04: downgrade OpenSSL to v1.1.1

Ubuntu 22.04 comes with OpenSSL v3 which doesn't work with QNetworkManager in the aqtinstall version 5.15.2.
Install OpenSSL v1.1.1:
```bash
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.17_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.17_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.17_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.17_amd64.deb
```

⚠️ only downgrade OpenSSL on a dedicated machine / VM and never in a shared or production environment!
This will most likely break other apps!

### Configure Environment

Some environment variables need to be set for the installed Qt runtime. `aqtinstall` will not set them automatically, to
Expand Down Expand Up @@ -216,3 +233,8 @@ Install Firecamp for WebSocket API testing:
sudo snap install firecamp
```

Install Node.js for integration driver development:
```bash
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
```

0 comments on commit aca0a73

Please sign in to comment.