How to Install LinkWarden on Kali Linux latest version
In this tutorial, we will go through step-by-step instructions on how to install LinkWarden on Kali Linux latest version.
Prerequisites
Before installing LinkWarden, ensure you have the latest version of Kali Linux and the following prerequisites:
- Git
- Python3
- Pip3
Step 1: Clone the Repository
Open the terminal and run the following command to clone the LinkWarden repository from GitHub:
git clone https://github.com/Daniel31x13/link-warden.git
Step 2: Install Dependencies
Navigate to the link-warden directory by running the following command:
cd link-warden
Run the following command to install the dependencies:
pip3 install -r requirements.txt
Step 3: Create a Database
Create a new PostgreSQL database with the following command:
sudo -u postgres psql -c "CREATE DATABASE link_warden"
Step 4: Set Up Environment Variables
Copy the sample .env file with the following command:
cp .env.example .env
Update the environment variables for your system by opening the .env file with your favorite text editor:
nano .env
Replace the DATABASE_URI variable with the following details:
DATABASE_URI=postgresql://<db_username>:<db_password>@localhost/link_warden
Replace <db_username> and <db_password> with your PostgreSQL database credentials.
Step 5: Run Migrations
Run the following command to apply the database migrations:
python3 manage.py db upgrade
Step 6: Start the Server
Start the LinkWarden server by running the following command:
python3 manage.py runserver
By default, LinkWarden will be running on http://localhost:5000.
And that’s it – you have successfully installed LinkWarden on Kali Linux latest version with PostgreSQL as the database!