Back to postsBack to posts
new

new

Himalaya Pal / November 12, 2024

To install NetBird on Ubuntu, open a terminal and enter the following commands:

sudo apt-get update
curl -fsSL https://pkgs.netbird.io/install.sh | sh

After the installation is complete, Run NetBird and log in the browser

netbird up

Install manually on Ubuntu

1 . Add Repository

sudo apt-get update
sudo apt install ca-certificates curl gnupg -y
curl -sSL https://pkgs.netbird.io/debian/public.key | sudo gpg --dearmor --output /usr/share/keyrings/netbird-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/netbird-archive-keyring.gpg] https://pkgs.netbird.io/debian stable main' | sudo tee /etc/apt/sources.list.d/netbird.list
  1. Install NetBird
sudo apt-get update
sudo apt-get install netbird
sudo apt-get install netbird-ui
  1. Run NetBird and log in the browser
netbird up

If you want to use setup keys to run automated deployments and add machines to your network at scale

Setup key is a pre-authentication key that allows to register new machines in your network. It simply associates a machine with an account on a first run.

The setup key can be provided as a parameter to the netbird up command. This makes it possible to run automated deployments with infrastructure-as-code software like Ansible, Cloudformation or Terraform.

Starting NetBird Client

sudo netbird up --setup-key <SETUP KEY>

Types of setup keys

There are 2 types of setup keys:

  • One-off key. This type of key can be used only once to authenticate a machine.
  • Reusable key. This type of key can be used multiple times to authenticate machines.

Ephemeral peers

You can create a setup key with the ephemeral peers option enabled. Peers that are offline for over 10 minutes will be removed automatically.

Using setup keys

Setup keys are available in the NetBird Management Dashboard under the Setup Keys tab https://app.netbird.io/setup-keys. You can easily add new or revoke keys.

Untitled