🐧 Linux (Ubuntu)

Installation of DaneeCloud on Ubuntu 20.04

  1. Update and upgrade

sudo apt update
sudo apt upgrade
  1. Install Git

sudo apt install git
  1. Install NodeJS v18

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install nodejs

You can check version of NodeJS by:

node -v
  1. Install latest version of DaneeCloud

git clone https://github.com/DaneeSkripter/DaneeCloud.git
  1. Install NPM packages:

cd DaneeCloud
npm install
  1. Fill config and .env file:

.env Template:

SESSION_SECRET= // Random string
mongo_srv= // Your MongoDB URL
smtp_username= // Username for SMTP user
smtp_password= // Password for SMTP user
smtp_host= // SMTP Host
smtp_port= // Port for SMTP
emailSender= // SMTP sender (example@domain.com)
CSRF_TOKEN= // Random 32 characters string
RCAPTCHA_SITE_KEY= // ReCaptcha Site Key (Not required)

config.json Template:

{
    "cloudname": "",
    "cloudurl": "",
    "port": 5000,
    "uploadsfolder": "/uploads/",
    "logtofile": false,
    "registerip": false,
    "disableRegister": false,
    "enableRecaptcha": false
}
  1. Install PM2 (To keep your cloud alive):

npm install pm2 -g
  1. Then disconnect SSH and reconnect back, and run:

cd DaneeCloud
pm2 start index.js --name "Your cloud"
  1. Now your cloud will be accessible on http://<yourserverip>:<yourport> (If you set port as 80 you can use just http://<yourserverip>)

Logs:

pm2 logs

Last updated