A simple dashboard to keep track of all your active devices/servers
A lightweight node js app designed to work with the Slashboard desktop client
Built using Node.js
Clone this repository somewhere safe on your server (/var/www
is often a good choice)
cd /var/www # replace /var/www with the path you prefer if necessary
git clone https://github.com/BSoDium/Slashboard-pulsar.git
Install all the necessary dependencies
cd Slashboard-pulsar
npm install
Run the installation script for your OS (only available for linux at the moment)
./scripts/install.sh
This script will :
Setup pm2 :
npm install pm2 -g
Choose an authentification key and a server-specific secret :
nano config/default.json
By default, the generated keys are 64 characters long, but you can choose shorter ones. When you'll open the file for the first time, The fields will contain the word "default". Erase it and write your key.
The field serverKey
is the local server secret, and sharedSecret
is the key used by the client to connect to your server. It will be later required when registering the server in the desktop app.
Warning : no special characters allowed, only alphanumeric characters. Example :
CRml6VcWMGlH8UQ1XjintL1Tu71IA5ktbA5I8g0HzwrhF4E0hNE50O1ep7W2eNOu
Allow traffic through port 6033
:
sudo ufw allow 6033
Start the app :
pm2 start ecosystem.config.js --env production
Tell pm2 to run it on system startup :
pm2 startup # execute the command pm2 gives you
Save the app list to be restored on reboot :
pm2 save
Download nodejs and npm
Install pm2
npm install pm2 -g
Install pm2-windows-startup
npm install pm2-windows-startup -g
pm2-startup install
Open config/default.json
with your favorite editor, delete the default keys and write your own (see linux manual installation for more details).
Warning : no special characters allowed, only alphanumeric characters. Example :
CRml6VcWMGlH8UQ1XjintL1Tu71IA5ktbA5I8g0HzwrhF4E0hNE50O1ep7W2eNOu
Start the app:
pm2 start ecosystem.config.js --env production
Setup pm2 to relaunch the app on system startup :
pm2 save
Note : This image is still in early access, some features might not fully work as expected.
- Mounted disks view - the ones displayed don't match the host machine's state
- Hostname (host network mode doesn't exist on Windows)
- CPU/RAM usage isn't impressively accurate
- Network interface list
Pull the image from the repository, either from github or dockerhub
On Linux :
docker run \
--network host \
--env SHAREDSECRET="64charSharedSecret"
BSoDium/slashboard-pulsar:latest
SHAREDSECRET is optional. If not provided, it will be randomly generated on container creation.
On Windows :
docker run `
-p 6033:6033 `
--env SHAREDSECRET="64charSharedSecret" `
BSoDium/slashboard-pulsar:latest
Again, SHAREDSECRET isn't required.
If you want to access your server's dashboard from outside its local network, you will probably need to forward a port in your router's configuration. Here's a quick guide to port forwarding, although I suggest that you look for something more specific, because router configuration really depends on your internet provider.
As for the port you need to forward, Pulsar runs on port 6033 by default (cannot be easily changed for now)
Simply run :
./scripts/uninstall.sh
or :
pm2 delete Pulsar
npm uninstall pm2 -g
sudo ufw delete allow 6033 # linux only