Update Linux/Dashy/README.md

This commit is contained in:
2024-01-27 09:15:08 +00:00
parent ed4782d9df
commit 2d2472dd5e

View File

@@ -1,41 +1,26 @@
# How to install Dashy on AlmaLinux # How to install Dashy on AlmaLinux
## 1st step
```bash ```bash
dnf install -y epel-release dnf update -y && dnf install -y git tar
dnf clean all && dnf update -y && dnf install -y nano tar curl wget python3 git curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
dnf install -y openssh-server source ~/.bashrc
systemctl enable --now sshd nvm install 16.20.2
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
npm install --global yarn 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 git clone https://github.com/Lissy93/dashy.git
cd /opt/dashy cd 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
yarn yarn
export NODE_OPTIONS=--max-old-space-size=1000 export NODE_OPTIONS=--max-old-space-size=1000
yarn build yarn build
cat <<EOF >/etc/systemd/system/dashy.service cat <<EOF >/etc/systemd/system/dashy.service
[Unit] [Unit]
Description=dashy Description=dashy
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/dashy WorkingDirectory=/opt/dashy
ExecStart=/usr/bin/yarn start ExecStart=/root/.nvm/versions/node/v16.20.2/bin/yarn start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF