Update the installation instructions on Ubuntu
-
Is there a reason why I'm noticing?
Also the instructions for installing NODEJS are outdated
And also installing MONGODB installs an outdated version?
For example for NODEJS the instructions are like thiscurl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt-get install -y nodejs
instead of the current instructions
sudo apt-get update sudo apt-get install -y ca-certificates curl gnupg 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
And regarding MONGODB, version 5 is used and not version 7, which is the latest
which affects the continuation of the instructions
For example insteadMONGO
are used in
mongosh
and the full instructions
instead ofcurl -fsSL https://pgp.mongodb.com/server-7.0.asc | \ sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \ --dearmor echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list sudo apt-get update sudo apt-get install -y mongodb-org sudo systemctl start mongod sudo systemctl enable mongod
are used in
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list sudo apt-get update sudo apt-get install -y mongodb-org
Sorry in advance for my bad language
I am using Google Translate -
@א-ש You can update by yourself and submit a pull request
https://github.com/NodeBB/docs/tree/master/src/templates/installing/os/ubuntu -
@josef I created a withdrawal request there to the best of my understanding
But the full instructions don't seem to be there
but many small files
And there is a lot of text that I couldn't find where it says to edit itFor example, you need to write that you need a minimum of Ubuntu 20.04 and the minimum of NODE and other things like that
-
@א-ש They are defined here: https://github.com/NodeBB/docs/blob/master/src/templates/installing/index.js#L4-L15
Apart from the recommended ubuntu version, which is defined here:
https://github.com/NodeBB/docs/blob/master/src/templates/installing/os/ubuntu/version.txtBy the way @baris, the edit button at the top of this page: https://docs.nodebb.org/installing/os/ubuntu leads to a 404 page.
-
I have raised the PR, please go through it
https://github.com/NodeBB/docs/pull/86 -
@raohanish I see that you put the NODEJS update in there in addition to Mongo
However you don't seem to be registering the latest script
I would love to learn the reason why does it have problems?
Because I explain to people to install according to the latest script and if there are problems with it I would love to know
You can see it here