How to Install myDrive on Kali Linux

myDrive is an open-source project that allows users to create their own cloud storage system. In this tutorial, we will show you how to install myDrive on Kali Linux.

Prerequisites

Before we begin with the installation of myDrive on Kali Linux, you must have the following requirements:

  • Latest version of Kali Linux
  • Python3 and pip3
  • Git

Installation

Follow the below mentioned steps to install myDrive on Kali Linux:

Step 1 - Clone the repository

Open up the terminal on Kali Linux and clone the repository from Github.com

$ git clone https://github.com/subnub/myDrive.git

Step 2 - Install the dependencies

$ cd myDrive
$ pip3 install -r requirements.txt

Step 3 - Configure the settings

$ mv settings_sample.json settings.json
$ nano settings.json

Sample settings:

{
    "debug": true,
    "enable_registration": true,
    "storage_path": "./storage",
    "sqlite_database_file": "myDrive.sqlite",
    "client_id": "myDrive",
    "client_secret": "myDriveSecretKey",
    "redirect_uris": [
        "http://localhost:5555/api/authorize"
    ],
    "jwt_secret": "myDriveJwtSecretKey",
    "max_file_size": 10485760
}
  • debug: Enables debug mode to show extra logs.
  • enable_registration: Set it to false if you don’t want to allow new people to register.
  • storage_path: Path for storing all the uploaded files.
  • sqlite_database_file: File name of the SQLite DB file.
  • client_id: Client ID for registration.
  • client_secret: Secret key for OAuth2 registration.
  • redirect_uris: URIs to redirect after authentication.
  • jwt_secret: Secret key for JWT token creation.
  • max_file_size: Maximum allowed file size.

Save the changes by pressing CTRL+X and then press Y

Step 4 - Run the server

$ python3 run.py

The server should now be running and you can access it through your browser at http://localhost:5555.

Conclusion

That’s it! You have successfully installed myDrive on Kali Linux. Now you can use it as your own cloud storage system.