How to Install PartKeepr on Elementary OS

Introduction

PartKeepr is an inventory management software that helps you manage your electronic components. This tutorial will guide you through the process of installing PartKeepr on Elementary OS.

Prerequisites

Before we begin, make sure you have the following installed on your system:

Step 1: Install Dependencies

Open the terminal and install the necessary dependencies by running the following commands:

sudo apt-get install curl git unzip
sudo apt-get install apache2 php libapache2-mod-php php-mysql
sudo apt-get install mysql-server

Step 2: Download PartKeepr

Download the latest stable release of PartKeepr from the official website or run the following commands:

cd /var/www/html/
sudo curl -L https://github.com/partkeepr/PartKeepr/archive/refs/tags/2.3.3.tar.gz -o partkeepr-2.3.3.tar.gz
sudo tar -xvzf partkeepr-2.3.3.tar.gz
sudo mv PartKeepr-2.3.3 partkeepr
sudo rm partkeepr-2.3.3.tar.gz

Step 3: Create a MySQL Database

Create a new MySQL database for PartKeepr by running the following commands:

sudo mysql -u root
CREATE DATABASE partkeepr;
GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepruser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Note: Change the username 'partkeepruser' and password 'password' to your preferred values.

Step 4: Configure PartKeepr

Change to the PartKeepr directory and copy the sample configuration file:

cd /var/www/html/partkeepr
sudo cp app/config/parameters.yml.sample app/config/parameters.yml

Open the app/config/parameters.yml file and edit the following lines with your database credentials:

database_name: pkeepr
database_user: pkeepruser
database_password: pkeepassword

Note: Change the database username and password to the values you used in step 3.

Step 5: Set Permissions

Set the appropriate permissions for PartKeepr:

sudo chown -R www-data:www-data /var/www/html/partkeepr
sudo chmod -R 775 /var/www/html/partkeepr
sudo chmod -R g+s /var/www/html/partkeepr

Step 6: Enable Apache Modules

Enable the necessary Apache modules by running the following commands:

sudo a2enmod rewrite
sudo a2enmod headers
sudo service apache2 restart

Step 7: Access PartKeepr in the Browser

Open your web browser and go to http://localhost/partkeepr. You should see the PartKeepr login page.

Enter the username and password you created during the installation process to log in.

Congratulations! You have successfully installed PartKeepr on Elementary OS.

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!