From 3d6817afe4d16e20b15b2b9e589cbf5be7c68d25 Mon Sep 17 00:00:00 2001 From: sonyakun Date: Sun, 12 Nov 2023 01:15:43 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Node.js=E3=81=AE=E3=82=A4=E3=83=B3=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=83=BC=E3=83=AB=E6=96=B9=E6=B3=95=E3=81=AE=E3=82=B3?= =?UTF-8?q?=E3=83=9E=E3=83=B3=E3=83=89=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/docs/install/ubuntu-manual.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/docs/install/ubuntu-manual.md b/src/docs/install/ubuntu-manual.md index d952572c3e..25186ca68b 100644 --- a/src/docs/install/ubuntu-manual.md +++ b/src/docs/install/ubuntu-manual.md @@ -90,11 +90,21 @@ sudo adduser --disabled-password --disabled-login misskey Node.jsは、サーバーサイドJavaScript環境であり、Misskeyの基本的な実行環境である。 ```sh -sudo apt install -y curl +sudo apt-get update -curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - +sudo apt-get install -y ca-certificates curl gnupg -sudo apt install -y nodejs +sudo mkdir -p /etc/apt/keyrings + +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + +NODE_MAJOR=20 + +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list + +sudo apt-get update + +sudo apt-get install nodejs -y # Node.jsがインストールされたので、バージョンを確認する。 node -v From c6f6485cb95e38fb5c71e7d36efa9f59994e1031 Mon Sep 17 00:00:00 2001 From: sonyakun Date: Sun, 10 Dec 2023 00:15:24 +0900 Subject: [PATCH 2/3] =?UTF-8?q?/usr/share/keyrings=E3=82=92=E4=BD=BF?= =?UTF-8?q?=E3=81=86=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/docs/install/ubuntu-manual.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/install/ubuntu-manual.md b/src/docs/install/ubuntu-manual.md index 25186ca68b..edbe788a29 100644 --- a/src/docs/install/ubuntu-manual.md +++ b/src/docs/install/ubuntu-manual.md @@ -94,13 +94,13 @@ sudo apt-get update sudo apt-get install -y ca-certificates curl gnupg -sudo mkdir -p /etc/apt/keyrings +sudo mkdir -p /usr/share/keyrings -curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg NODE_MAJOR=20 -echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /usr/share/keyrings/sources.list.d/nodesource.list sudo apt-get update From 95844870bc2d525f9a3fcc48535a08765495be45 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 23 Dec 2023 17:31:42 +0900 Subject: [PATCH 3/3] Update src/docs/install/ubuntu-manual.md --- src/docs/install/ubuntu-manual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/install/ubuntu-manual.md b/src/docs/install/ubuntu-manual.md index edbe788a29..e17035c0d3 100644 --- a/src/docs/install/ubuntu-manual.md +++ b/src/docs/install/ubuntu-manual.md @@ -100,7 +100,7 @@ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg NODE_MAJOR=20 -echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /usr/share/keyrings/sources.list.d/nodesource.list +echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list sudo apt-get update