|
@@ -216,4 +216,41 @@ Verify auto-renewal:
|
|
|
sudo certbot renew --dry-run
|
|
|
```
|
|
|
|
|
|
----
|
|
|
+---
|
|
|
+
|
|
|
+
|
|
|
+## 12. Install NVM and Node.js 20
|
|
|
+### **Step 1: Install NVM**
|
|
|
+```bash
|
|
|
+curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
|
|
|
+```
|
|
|
+Reload shell configuration:
|
|
|
+```bash
|
|
|
+source ~/.bashrc # For Bash users
|
|
|
+source ~/.zshrc # For Zsh users
|
|
|
+```
|
|
|
+Verify NVM installation:
|
|
|
+```bash
|
|
|
+nvm --version
|
|
|
+```
|
|
|
+
|
|
|
+### **Step 2: Install Node.js 20**
|
|
|
+```bash
|
|
|
+nvm install 20
|
|
|
+```
|
|
|
+Set Node.js 20 as the default version:
|
|
|
+```bash
|
|
|
+nvm use 20
|
|
|
+nvm alias default 20
|
|
|
+```
|
|
|
+Verify Node.js installation:
|
|
|
+```bash
|
|
|
+node -v
|
|
|
+npm -v
|
|
|
+```
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+## **Done! 🎉**
|
|
|
+Your Ubuntu system is now **updated, secured, and configured with a sudo user, MySQL, NGINX, PHP 8.3, phpMyAdmin, UFW firewall, Code Server, SSL with Let's Encrypt, NVM, and Node.js 20.**
|
|
|
+
|