Add Linux/Dashy/README.md

This commit is contained in:
2023-12-29 10:16:33 +00:00
parent 65869b6a57
commit cf53ef0bad

44
Linux/Dashy/README.md Normal file
View File

@@ -0,0 +1,44 @@
# 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
npm install --global yarn
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
yarn
export NODE_OPTIONS=--max-old-space-size=1000
yarn build
cat <<EOF >/etc/systemd/system/dashy.service
[Unit]
Description=dashy
[Service]
Type=simple
WorkingDirectory=/dashy
ExecStart=/usr/bin/yarn start
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl -q --now enable dashy
```