-
Notifications
You must be signed in to change notification settings - Fork 8
Installation and Trubbleshooting
- Download the right version from the Release page on the repository.
- Un-zip the download
- Run
install.bash
usingbash install.bash
- Follow the installer
- Run the server:
cd ~/zentrox; ./zentrox
- Go to https://localhost:8080/ or the corresponding adress to view the server on port 8080
- Clone the repository using
git clone https://github.com/Wervice/zentrox
- Run these commands:
# Assuming your are not already in zentrox, otherwise skip this command
cd zentrox
# Install frontend dependencies
cd frontend
npm i # Requires nodejs and npm
# Build frontend
cd ../backend
bash build_frontend.bash
# Build backend
bash build.bash
cd dist
bash install.bash
- Follow the installer
- You will then find zentrox in ~/zentrox with the file name for the executable "zentrox"
- Remove ~/zentrox and ~/zentrox_data
- Deny port 8080 in the UFW or delete the rule that allows it
Caution
~/zentrox_data contains all files of Zentrox vault. Deleting this directory will make these files inacessible. Copy relevant data in case you want to restore Zentrox later, i.e. after re-installing it.
When using OTP, Zentrox will create an OTP secret after the installation and on the first start of the server. The secret will be logged in the console and shown to you the first time you access the login page. When your re-start Zentrox, the secret will not be shown to you another time. In this case, you can find it by reading the key "otp_secret" in ~/zentrox_data/zentrox_store.toml.
Do not share this secret with anyone
This error may occur if pip3 could not install the required python modules for the FTP server (ftp.py).
You can fix this by installing the modules through your systems package manager.
The package names are: pyftpdlib
and PyOpenSSL
or python-pyftpdlib
and python-pyopenssl
/ python-openssl
In case you can not login, try the following steps:
This only works with physical or remote (i.e. SSH) access to the device
Zentrox may run into problems if 2FA using One-Time-Pad was incorrectly configured during set up.
This is unlikely, but you can disable 2FA by opening ~/zentrox_data/zentrox_store.toml and setting "use_otp" to "0".
As soon as you reload the login page, you will not need 2FA anymore.
Important
Editing settings in ~/zentrox_store.toml may destroy/brick your installation of Zentrox. Never share the contents of this file with anyone, as it reveals sensitive information.
This only works with physical or remote (i.e. SSH) access to the device
Open the file ~/zentrox_data/zentrox_store.toml on your device. You should see a line containing a base64 encoded username followed by a long (128 character) hash. If one or both of username and password are missing, the installation failed, or an error occured while changing the password/username. In this case, you need to remove Zentrox as described in the section "Removing Zentrox" above.