Installation Guide
This guide will walk you through various methods of installing and using Moonbeam.
Prerequisites
Before you begin, ensure that you have:
- Linux operating system
- Nix package manager with Flakes enabled
- Sunshine installed and configured
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:
- Installing the Nix package manager
- Configuring Nix for your system
- 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:
To pass options to Moonbeam when using this method, simply add them after the package name:
This method is perfect for trying out Moonbeam without making any changes to your system.
To install Moonbeam for the current user:
For NixOS users, you can add Moonbeam to your system configuration using Flakes:
-
Edit your
flake.nix
file in your NixOS configuration directory: -
Add Moonbeam to your inputs and include it in your system configuration:
Replace
your-hostname
with your actual hostname. -
Rebuild your NixOS configuration:
To build from source:
-
Clone the Elevate repository:
-
Change to the
elevate
directory: -
Build and install Moonbeam.
-
Verify the installation:
Verifying the Installation
Regardless of the installation method, you can verify Moonbeam is correctly installed by running:
You should see output indicating the version of Moonbeam you’ve installed.
Shell Completion
To enable shell completion for Moonbeam, follow these steps:
-
Locate the Moonbeam completion script. If you installed Moonbeam using
nix profile
, the script should be located at: -
For Bash: Add the following line to your
~/.bashrc
file: -
For Zsh: Add the following lines to your
~/.zshrc
file: -
Restart your shell or run
source ~/.bashrc
(for Bash) orsource ~/.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:
If you installed using nix profile
, upgrade with:
For NixOS users, update your flake inputs and rebuild:
To upgrade a source installation:
Uninstalling Moonbeam
To remove Moonbeam from your system:
No uninstallation is necessary when using nix run
.
If installed with nix profile
, uninstall using:
Remove Moonbeam from your NixOS configuration, then rebuild:
To uninstall a source installation:
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.