How to Install SysPass on Manjaro

SysPass is a password manager with a web interface that allows you to store your passwords securely. It is a great tool for managing passwords for many users. In this tutorial, we will guide you on how to install SysPass on Manjaro.

Prerequisites

Before proceeding with this tutorial, ensure that you have the following:

Step 1 – Update Pacman Package Manager

Ensure that your Pacman package manager is up-to-date by running the following command:

sudo pacman -Syu

This command will update your package list and upgrade any outdated packages on your Manjaro system.

Step 2 – Install Apache Web Server

SysPass requires a web server to operate, and Apache is the best-known web server. To install Apache, run the following command in your terminal:

sudo pacman -S apache

Once installed, enable and start the Apache web server with the following commands:

sudo systemctl enable httpd.service
sudo systemctl start httpd.service

Step 3 – Install MariaDB Database Server

SysPass requires a database to store its data, and MariaDB is a popular relational database server. To install MariaDB, run the following command:

sudo pacman -S mariadb

After installation, enable and start MariaDB with the following commands:

sudo systemctl enable mariadb.service
sudo systemctl start mariadb.service

You will have to configure the MariaDB installation, which includes implementing a root password.

sudo mysql_secure_installation

Follow the prompts that will guide you to configure MariaDB. Once successful, you can proceed to create a SysPass database and a dedicated user for the application.

sudo mysql -u root -p

Once you log in to MariaDB, create a database named syspass_db.

CREATE DATABASE syspass_db;

Create a dedicated database user account named syspass_user with a password of your choice.

CREATE USER 'syspass_user'@'localhost' IDENTIFIED BY 'password';

Finally, grant this new user account full privileges on the SysPass database.

GRANT ALL PRIVILEGES ON syspass_db.* TO 'syspass_user'@'localhost';

Step 4 – Install SysPass

To install SysPass, download the latest version from their website https://www.syspass.org/download.html and extract the contents to the web server’s document root directory.

sudo mkdir /srv/http/syspass
sudo wget https://github.com/nuxsmin/sysPass/archive/refs/tags/v3.2.0.tar.gz -P /srv/http/syspass
sudo tar -xvzf /srv/http/syspass/v3.2.0.tar.gz -C /srv/http/syspass
sudo mv /srv/http/syspass/sysPass-3.2.0/* /srv/http/syspass/

Next, set the correct permissions on the installation files.

sudo chown -R http:http /srv/http/syspass/
sudo find /srv/http/syspass/ -type d -exec chmod 750 {} \;
sudo find /srv/http/syspass/ -type f -exec chmod 640 {} \;

Step 5 – Configure Apache for SysPass

To configure Apache for SysPass, create a new virtual host configuration for syspass.

sudo nano /etc/httpd/conf/extra/syspass.conf

Paste the following configuration in the file:

<VirtualHost *:80>
        ServerAdmin your-email@example.com
        DocumentRoot /srv/http/syspass/
        <Directory /srv/http/syspass>
            Options FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog /var/log/httpd/syspass_error.log
        CustomLog /var/log/httpd/syspass_access.log combined
</VirtualHost>

Save the file and exit.

Step 6 - Test Your Configuration

Before accessing SysPass, restart the Apache service to apply the new configurations.

sudo systemctl restart httpd.service

In your web browser, visit http://localhost/syspass. You should see the SysPass login page.

Conclusion

Your SysPass installation should now be up and running securely on your Manjaro installation. You can now store your passwords securely using the web interface. You can further secure the installation by enabling SSL for encryption.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!