Skip to content

Installation Guide

This guide will walk you through various methods of installing and using Moonbeam.

Prerequisites

Before you begin, ensure that you have:

Installing Nix and Setting Up Flakes

If you haven’t installed Nix or set up Flakes yet, follow the Nix Installation and Flakes Setup Guide. This guide will walk you through:

  1. Installing the Nix package manager
  2. Configuring Nix for your system
  3. Enabling and setting up Nix Flakes

Once you’ve completed these steps, return here to continue with Moonbeam installation or usage.

Installation Options

You can run Moonbeam directly without installing it using:

Terminal window
nix run github:simonwjackson/elevate/stable/moonbeam#moonbeam

To pass options to Moonbeam when using this method, simply add them after the package name:

Terminal window
nix run github:simonwjackson/elevate/stable/moonbeam#moonbeam -- --help

This method is perfect for trying out Moonbeam without making any changes to your system.

Verifying the Installation

Regardless of the installation method, you can verify Moonbeam is correctly installed by running:

Terminal window
moonbeam --version

You should see output indicating the version of Moonbeam you’ve installed.

Shell Completion

To enable shell completion for Moonbeam, follow these steps:

  1. Locate the Moonbeam completion script. If you installed Moonbeam using nix profile, the script should be located at:

    ~/.nix-profile/share/bash-completion/completions/moonbeam
  2. For Bash: Add the following line to your ~/.bashrc file:

    Terminal window
    source ~/.nix-profile/share/bash-completion/completions/moonbeam
  3. For Zsh: Add the following lines to your ~/.zshrc file:

    Terminal window
    autoload -U +X bashcompinit && bashcompinit
    source ~/.nix-profile/share/bash-completion/completions/moonbeam
  4. Restart your shell or run source ~/.bashrc (for Bash) or source ~/.zshrc (for Zsh) to apply the changes.

Now you can use tab completion with Moonbeam commands and options.

Upgrading Moonbeam

To upgrade Moonbeam to the latest version, follow the method you used for installation:

When using nix run, you might need to refresh the cache to obtain the latest version:

Terminal window
nix run --refresh github:simonwjackson/elevate/stable/moonbeam#moonbeam

Uninstalling Moonbeam

To remove Moonbeam from your system:

No uninstallation is necessary when using nix run.

Congratulations! You have successfully installed or set up Moonbeam on your Linux system. You’re now ready to start optimizing your Moonlight game streaming experience.

Next Steps Proceed to the Core Settings section to learn how to use Moonbeam for streaming games and applications.