33 lines
746 B
Markdown
33 lines
746 B
Markdown
# How to install Dashy on AlmaLinux
|
|
|
|
## Installation
|
|
```bash
|
|
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
|
|
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 dashy
|
|
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=/opt/dashy
|
|
ExecStart=/root/.nvm/versions/node/v16.20.2/bin/yarn start
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
EOF
|
|
systemctl daemon-reload
|
|
systemctl -q --now enable dashy
|
|
```
|
|
|
|
## Access
|
|
http://ipadress:4000 |