From 2d2472dd5eaa2de7bfde6dd2dfc04aebfe886bc8 Mon Sep 17 00:00:00 2001 From: admManuel Date: Sat, 27 Jan 2024 09:15:08 +0000 Subject: [PATCH] Update Linux/Dashy/README.md --- Linux/Dashy/README.md | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/Linux/Dashy/README.md b/Linux/Dashy/README.md index 3d280e6..76bb7f9 100644 --- a/Linux/Dashy/README.md +++ b/Linux/Dashy/README.md @@ -1,41 +1,26 @@ # How to install Dashy on AlmaLinux -## 1st step ```bash -dnf install -y epel-release -dnf clean all && dnf update -y && dnf install -y nano tar curl wget python3 git -dnf install -y openssh-server -systemctl enable --now sshd -update-crypto-policies --set DEFAULT:SHA1 -reboot -``` - -## 2nd step -```bash -rpm --import https://rpm.nodesource.com/gpgkey/nodesource.gpg.key -dnf install -y https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -dnf install -y nodejs --setopt=nodesource-nodejs.module_hotfixes=1 -npm cache clean -f +dnf update -y && dnf install -y git tar +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash +source ~/.bashrc +nvm install 16.20.2 npm install --global yarn -cd /opt +ln -sf /root/.nvm/versions/node/v16.20.2/bin/node /usr/bin/node +cd /opt/ git clone https://github.com/Lissy93/dashy.git -cd /opt/dashy -npm cache clean -f -npm install -g n -n 16.20.1 -npm install -g pnpm -npm install -g npm@10.2.5 -ln -sf /usr/local/bin/node /usr/bin/node +cd dashy yarn export NODE_OPTIONS=--max-old-space-size=1000 yarn build cat </etc/systemd/system/dashy.service [Unit] Description=dashy + [Service] Type=simple -WorkingDirectory=/dashy -ExecStart=/usr/bin/yarn start +WorkingDirectory=/opt/dashy +ExecStart=/root/.nvm/versions/node/v16.20.2/bin/yarn start [Install] WantedBy=multi-user.target EOF