VP.net - Revolutionary Privacy with Intel SGX
All the other VPN service providers are trust based. VP.net is the only VPN that is provably private.

How to install drone on MXLinux Latest

In this tutorial, we will guide you through the installation of the drone on MXLinux Latest.

Prerequisites

Step 1: Update the System

Before installing the drone, it is recommended to update the system packages to their latest versions using the following command:

sudo apt update && sudo apt upgrade -y

Step 2: Install Docker

Drone is a container-based application, so we need to install Docker on our system first. Run the following command to install Docker on MXLinux Latest:

sudo apt install docker.io -y

After the installation completes, enable the Docker service to start automatically at system startup by running the following command:

sudo systemctl enable --now docker

Step 3: Install Drone

Once Docker is installed, we can proceed with the drone installation. We can download the drone binary using the following command:

curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx

After the download completes, move the binary file to the /usr/local/bin directory using the following command:

sudo install -t /usr/local/bin drone

Now verify the installation by running the following command:

drone --version

If the installation is successful, you should see the version of the drone binary.

Step 4: Configure Drone

Before using drone, we need to configure it with our GitHub/GitLab or any other SCM provider account.

First, create a personal access token for the SCM provider you are using, which can be used to connect with drone. Then, create a configuration file named drone-runner-exec under the /etc/drone-runner-exec/ directory using the following command:

sudo mkdir /etc/drone-runner-exec/
sudo touch /etc/drone-runner-exec/config.yaml
sudo nano /etc/drone-runner-exec/config.yaml

In the configuration file, paste the following code and replace the values with your details:

concurrency: 2
ssh_key: |
  -----BEGIN RSA PRIVATE KEY-----
  YOUR RSA PRIVATE KEY
  -----END RSA PRIVATE KEY-----
  # NOTE: We use | to denote multi-line secret variables
git:
  clone:
    no_verify: true
pipeline:
  steps:
    - name: environment variables
      image: plugins/env
      settings:
        MAVEN_SETTINGS_SERVER_ID:
          from_secret: Maven_Settings_Server_Id
        MAVEN_SETTINGS_USERNAME:
          from_secret: Maven_Settings_Username
        MAVEN_SETTINGS_PASSWORD:
          from_secret: Maven_Settings_Password

Once you have made the necessary changes to the configuration file, save and exit the file.

Step 5: Start Drone

Now start the drone-runner-exec service using the following command:

sudo systemctl enable --now drone-runner-exec

After the service starts successfully, access the drone web interface by navigating to http://<SERVER_IP>:80 in your web browser.

Conclusion

In this tutorial, we have successfully installed and configured the drone on MXLinux Latest. You can now use drone to automate your CI/CD pipelines with ease.

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!