Tweak debian installation for newer debian testing servers (#4142)

* Tweak debian installation for newer debian testing servers

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Tweaks

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Update _install-and-configure/install-dashboards/debian.md

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Update _install-and-configure/install-opensearch/debian.md

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

---------

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
This commit is contained in:
Peter Zhu 2023-05-22 17:30:20 -04:00 committed by GitHub
parent c1fd49d432
commit f055a7ff85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -67,13 +67,17 @@ The Debian package is not signed. If you would like to verify the fingerprint, t
APT, the primary package management tool for Debianbased operating systems, allows you to download and install the Debian package from the APT repository.
1. Install the necessary packages.
```bash
sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2
```
1. Import the public GPG key. This key is used to verify that the APT repository is signed.
```bash
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo apt-key add -
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
```
1. Create an APT repository for OpenSearch.
```bash
echo "deb https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opensearch-dashboards-2.x.list
echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-dashboards-2.x.list
```
1. Verify that the repository was created successfully.
```bash
@ -126,4 +130,4 @@ By default, OpenSearch Dashboards, like OpenSearch, binds to `localhost` when yo
```
1. From a web browser, navigate to OpenSearch Dashboards. The default port is 5601.
1. Log in with the default username `admin` and the default password `admin`.
1. Visit [Getting started with OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/dashboards/index/) to learn more.
1. Visit [Getting started with OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/dashboards/index/) to learn more.

View File

@ -94,15 +94,21 @@ The Debian package is not signed. If you would like to verify the fingerprint, t
APT, the primary package management tool for Debianbased operating systems, allows you to download and install the Debian package from the APT repository.
1. Install the necessary packages.
```bash
sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2
```
{% include copy.html %}
1. Import the public GPG key. This key is used to verify that the APT repository is signed.
```bash
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo apt-key add -
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
```
{% include copy.html %}
1. Create an APT repository for OpenSearch:
```bash
echo "deb https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opensearch-2.x.list
echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-2.x.list
```
{% include copy.html %}
@ -530,4 +536,4 @@ sudo apt-get upgrade opensearch=<version>
- [OpenSearch configuration]({{site.url}}{{site.baseurl}}/install-and-configure/configuration/)
- [Install and configure OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/install-and-configure/install-dashboards/index/)
- [OpenSearch plugin installation]({{site.url}}{{site.baseurl}}/opensearch/install/plugins/)
- [About the Security plugin]({{site.url}}{{site.baseurl}}/security-plugin/index/)
- [About the Security plugin]({{site.url}}{{site.baseurl}}/security-plugin/index/)