From e93057093e15160f1086d161c9c9f324c30d0a44 Mon Sep 17 00:00:00 2001
From: Jakub Kuczys <6032823+jack1142@users.noreply.github.com>
Date: Sun, 5 Jun 2022 03:08:02 +0200
Subject: [PATCH] Add Ubuntu 22.04 install guide (#5720)
* Add Ubuntu 22.04 install guide
* Add Ubuntu 22.04 to End-user guarantees
* Add missing information about supported arches in install guide
---
docs/getting_started.rst | 2 +-
docs/install_guides/index.rst | 3 ++-
docs/install_guides/ubuntu-2204.rst | 33 +++++++++++++++++++++++++++++
docs/version_guarantees.rst | 1 +
4 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 docs/install_guides/ubuntu-2204.rst
diff --git a/docs/getting_started.rst b/docs/getting_started.rst
index 98018d1f1..e1d9860e2 100644
--- a/docs/getting_started.rst
+++ b/docs/getting_started.rst
@@ -282,7 +282,7 @@ If you want to do it, follow these steps.
2. **Install Linux**
Most of the VPS providers have tools for installing Linux automatically. If
- you're a beginner, we recommend **Ubuntu 20.04 LTS**.
+ you're a beginner, we recommend **Ubuntu 22.04 LTS**.
For Raspberry Pi users, just install `Raspbian
`_ on a micro-SD card.
diff --git a/docs/install_guides/index.rst b/docs/install_guides/index.rst
index b7babf610..dcc8cf975 100644
--- a/docs/install_guides/index.rst
+++ b/docs/install_guides/index.rst
@@ -6,7 +6,7 @@ Installing Red
The list below shows the installation guides available based on the operating system being used.
If you want to host Red on a VPS and are unsure what operating system you should choose,
-we recommend **Ubuntu 20.04 LTS**.
+we recommend **Ubuntu 22.04 LTS**.
.. toctree::
:maxdepth: 1
@@ -30,4 +30,5 @@ we recommend **Ubuntu 20.04 LTS**.
rocky-linux-8
ubuntu-1804
ubuntu-2004
+ ubuntu-2204
ubuntu-non-lts
diff --git a/docs/install_guides/ubuntu-2204.rst b/docs/install_guides/ubuntu-2204.rst
new file mode 100644
index 000000000..74e68372e
--- /dev/null
+++ b/docs/install_guides/ubuntu-2204.rst
@@ -0,0 +1,33 @@
+.. _install-ubuntu-2204:
+
+==================================
+Installing Red on Ubuntu 22.04 LTS
+==================================
+
+.. include:: _includes/supported-arch-x64+aarch64.rst
+
+.. include:: _includes/linux-preamble.rst
+
+-------------------------------
+Installing the pre-requirements
+-------------------------------
+
+We recommend adding the ``deadsnakes`` ppa to install Python 3.9:
+
+.. prompt:: bash
+
+ sudo apt update
+ sudo apt -y install software-properties-common
+ sudo add-apt-repository -y ppa:deadsnakes/ppa
+
+Now install the pre-requirements with apt:
+
+.. prompt:: bash
+
+ sudo apt -y install python3.9 python3.9-dev python3.9-venv python3-pip git openjdk-11-jre-headless build-essential nano
+
+.. Include common instructions:
+
+.. include:: _includes/create-env-with-venv.rst
+
+.. include:: _includes/install-and-setup-red-unix.rst
diff --git a/docs/version_guarantees.rst b/docs/version_guarantees.rst
index 8bf8a422b..6735050c1 100644
--- a/docs/version_guarantees.rst
+++ b/docs/version_guarantees.rst
@@ -76,6 +76,7 @@ Rocky Linux 8 x86-64, aarch64 2029-05-31 (`end-of
Ubuntu 18.04 LTS x86-64, aarch64 2023-04-30 (`End of Standard Support `__)
Ubuntu 20.04 LTS x86-64, aarch64 2025-04-30 (`End of Standard Support `__)
Ubuntu 21.10 x86-64, aarch64 2022-07-31 (`End of Standard Support `__)
+Ubuntu 22.04 LTS x86-64, aarch64 2027-04-30 (`End of Standard Support `__)
================================ ======================= ============================================================
====================