How to Install PartKeepr on Kali Linux Latest

PartKeepr is an open-source inventory management system that helps you keep track of electronic components and other inventory items. In this tutorial, we will show you how to install PartKeepr on Kali Linux Latest.

Prerequisites

Before getting started, ensure that you have:

Step 1: Install Dependencies

Before installing PartKeepr, we need to install some dependencies required for its operation. To install these dependencies, use the following command:

sudo apt-get update && sudo apt-get install -y php7.4 php7.4-mysql php7.4-curl php7.4-gd php7.4-xml php7.4-zip mariadb-server-10.3 mariadb-client-10.3 composer

Step 2: Download PartKeepr

To download PartKeepr, use the following command:

wget https://github.com/partkeepr/PartKeepr/releases/download/1.5.0/partkeepr_1.5.0_all.deb

Step 3: Install PartKeepr

To install PartKeepr, use the following command:

sudo dpkg -i partkeepr_1.5.0_all.deb

After installing, you can start the PartKeepr service with the following command:

sudo systemctl start partkeepr

If you want to start PartKeepr on system startup, use the following command:

sudo systemctl enable partkeepr

Step 4: Configure PartKeepr

Now that PartKeepr is installed, we need to configure it. To configure PartKeepr, we need to perform the following steps:

Step 4.1: Create PartKeepr Database

To create a new database for PartKeepr, use the following command:

sudo mysql -u root -p

This command logs you into the MariaDB shell. To create the PartKeepr database, use the following commands:

CREATE DATABASE partkeepr;
CREATE USER 'partkeepr'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON partkeepr.* TO 'partkeepr'@'localhost';
FLUSH PRIVILEGES;

Replace "password" with the desired password for the PartKeepr user.

Step 4.2: Create PartKeepr Configuration File

To create a configuration file for PartKeepr, use the following command:

sudo nano /etc/partkeepr/config.yml

Enter the following configuration information in the file:

parameters:
    database_driver: pdo_mysql
    database_host: 127.0.0.1  
    database_port: 3306
    database_name: partkeepr
    database_user: partkeepr
    database_password: password
    secret: SECRET_KEY_GENERATED_FROM_GENERATOR
    mailer_transport: smtp
    mailer_host: smtp.gmail.com
    mailer_user: EMAIL_ADDRESS
    mailer_password: EMAIL_PASSWORD
    mailer_port: 587
    mailer_encryption: tls

Replace "password" with the password for the PartKeepr user you created earlier. Also, replace "SECRET_KEY_GENERATED_FROM_GENERATOR" with a randomly generated secret key by using the PartKeepr secret generator at https://docs.partkeepr.org/en/development/installation.html.

Replace "EMAIL_ADDRESS" and "EMAIL_PASSWORD" with your Gmail email address and password respectively.

Step 4.3: Import PartKeepr Database Schema

To import the PartKeepr database schema, use the following command:

sudo mysql -u partkeepr -p partkeepr < /usr/share/partkeepr/PartKeepr/sql/PartKeepr-MariaDB-10.3.sql

Enter the PartKeepr user password when prompted.

Step 5: Test PartKeepr

To test if PartKeepr is working properly, open a web browser and go to http://localhost:8080. You should see the PartKeepr log in page. Enter the username "admin" and password "admin" to log into the PartKeepr dashboard.

Conclusion

In conclusion, we have outlined the steps needed to successfully install, configure and test PartKeepr on Kali Linux Latest. With PartKeepr, you can easily manage your inventory and keep track of electronic components in your workshop.

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!