Getting Started
Install XEarthLayer and start flying with photoreal scenery in X-Plane 12.
This guide will help you install XEarthLayer and get flying with photoreal scenery in minutes.
Prerequisites
- X-Plane 12.4.0 or later. XEarthLayer reads your position from X-Plane’s Web API, which reached the version it needs in 12.4.0
- Linux (amd64) with FUSE 3 and glibc 2.34 or newer for the prebuilt packages (Ubuntu 22.04 LTS, Debian 12 and RHEL 9 onwards; check with
ldd --version), or macOS 12 or later on Apple Silicon with macFUSE 5.x - An 8 core CPU and 16GB of system memory (12 cores and 32GB recommended)
- A GPU with 8GB of video memory. 16GB if you also run SimHeaven X-World Pro, and 24GB or more with everything on at 4K
- 100GB of free disk space for the tile cache and scenery packages. Night lighting takes 5% of the cache budget
- A 100Mbit internet connection for streaming imagery
These are the minimum figures. See System Requirements for the recommended and ultimate tiers.
XEarthLayer reads aircraft position, heading and speed from X-Plane’s built-in Web API, which powers adaptive prefetching so tiles are ready before you need them. No plugin or manual setup is required.
X-Plane has shipped the Web API since 12.1.1, but it is versioned, and XEarthLayer uses v3, which X-Plane added in 12.4.0. On an earlier sim the connection is never established: scenery still streams when X-Plane asks for it, but nothing is fetched ahead of the aircraft, so 12.4.0 is the version to be on.
Installation
Install the package for your system. Building from source is only necessary on a Linux distribution older than the glibc requirement above, or if you want to run unreleased code.
wget https://github.com/samsoir/xearthlayer/releases/download/v0.5.0/xearthlayer_0.5.0-1_amd64.deb && sudo dpkg -i xearthlayer_0.5.0-1_amd64.debwget https://github.com/samsoir/xearthlayer/releases/download/v0.5.0/xearthlayer-0.5.0-1.fc44.x86_64.rpm && sudo rpm -i xearthlayer-0.5.0-1.fc44.x86_64.rpmcurl -sL https://github.com/samsoir/xearthlayer/releases/download/v0.5.0/aur-package.zip | bsdtar -xf- -C /tmp && cd /tmp && makepkg -siXEarthLayer needs macFUSE, which ships as a kernel extension that macOS asks you to approve once. Follow XEarthLayer on macOS for that step first, then install XEarthLayer with Homebrew:
brew install --cask xearthlayer/tap/xearthlayerbrew upgrade keeps it current. To follow pre-releases instead, install xearthlayer/tap/xearthlayer@prerelease; the two casks conflict, so a Mac is on one channel at a time.
Or download the Apple Silicon tarball. The binary is signed and notarized, so it runs as downloaded:
curl -LO https://github.com/samsoir/xearthlayer/releases/download/v0.5.0/xearthlayer-v0.5.0-arm64-macos.tar.gz && tar xzf xearthlayer-v0.5.0-arm64-macos.tar.gz && mkdir -p ~/.local/bin && mv xearthlayer ~/.local/bin/If xearthlayer is then not found, add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc and open a new terminal.
Building needs Rust 1.97.1 or newer and the FUSE 3 development headers.
1. Install Rust. Use rustup rather than your distribution’s package manager. Several dependencies require a recent compiler, and most distributions ship one too old to build XEarthLayer at all. rustup also reads the repository’s toolchain file and selects the right version for you.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shOpen a new shell once it finishes, so that cargo is on your PATH.
2. Install the FUSE 3 headers. The package is libfuse3-dev on Debian and
Ubuntu, fuse3-devel on Fedora and RHEL, and fuse3 on Arch, which ships the
headers alongside the library rather than splitting them into a separate
package.
Debian/Ubuntu
sudo apt install libfuse3-devRHEL/Fedora
sudo dnf install fuse3-develArch
sudo pacman -S fuse3macOS: install macFUSE instead of the headers (see XEarthLayer on macOS). The build itself is the same.
3. Build and install to ~/.local/bin. No sudo required.
git clone https://github.com/samsoir/xearthlayer.git && cd xearthlayer && make installIf the build stops with rustc <version> is not supported by the following packages, your Rust is too old. Install rustup as above, then open a new
shell so it takes precedence over the system compiler.
Upgrading from an earlier release
If this is a fresh install, skip ahead to Initial Setup.
Your files move. 0.5.0 keeps configuration, cache, packages and logs where the system expects them instead of in ~/.xearthlayer. The first start after upgrading copies config.ini to its new home and moves nothing else: anything still at an old location is pinned there in the new configuration, so a working installation keeps working. Run xearthlayer migrate to review the choices, or xearthlayer migrate status to see where everything resolves. See Where XEarthLayer Keeps Its Files.
Your scenery packages are replaced. The world was rebuilt for 0.5.0: seventeen regional packages, each about a third smaller and each carrying night lighting, replace the old continental ones, which are not in the 0.5.0 library. Remove the old packages first, then install the new regions:
xearthlayer packages remove --all
xearthlayer packages remove --all --type overlay
xearthlayer packages install --allOr install only the regions you fly, from the package manager (xearthlayer packages) or by code (xearthlayer packages install NA). See Package Management.
Your configuration is tidied. Some settings were removed in 0.5.0. The first start says how many your file still holds; xearthlayer config upgrade removes them, after writing a timestamped backup. Use --dry-run to preview.
Your first flight afterwards refills the tile cache for the new packages, so it downloads more than usual. There is no need to run xearthlayer cache clear.
Initial Setup
Run the setup wizard (recommended for first-time users):
xearthlayer setupThe wizard walks through six steps:
- Your X-Plane Custom Scenery folder, auto-detected where it can be
- Where to keep scenery packages
- Which imagery provider to stream. The five that need no account are offered first; a key or token is asked for only with Google Maps or Mapbox
- Where to keep the tile cache, and how much memory and disk to give it, sized from your hardware
- How to encode textures. GPU encoding is offered only when there are at least two GPUs
- Whether to give SimHeaven X-World Pro priority over XEarthLayer’s overlays, if it is installed
It offers to open the package manager when it finishes.
Install a regional scenery package:
Open the package manager, choose a region on the Library tab, and press
i:xearthlayer packagesOr install by code. The start of a code selects every package beneath it, so
NAis all of North America andNA-CANADAboth halves of Canada:xearthlayer packages install EU-WESTxearthlayer packages install NA-CANADAThe Package Management page lists every region with its size.
Start XEarthLayer:
xearthlayerThis defaults to the
runcommand. You can also usexearthlayer runexplicitly. Leave this terminal running while you fly in X-Plane.Launch X-Plane and fly! You should see satellite imagery streaming in as you move around.
Stopping the Service
When you are done flying, close X-Plane first. Then stop XEarthLayer cleanly by pressing the q key in the terminal and following the prompt to confirm.
q, Ctrl+C, a kill or closing the terminal all shut XEarthLayer down cleanly; the order is what matters.Verifying It Works
When XEarthLayer is running, you’ll see a real-time dashboard showing:
- Cache statistics (memory and disk usage)
- Download activity (tiles being fetched)
- Aircraft position and prefetch state (when connected to X-Plane via the Web API)
- Pipeline health (download, assembly, encode stages, and how long X-Plane waited for tiles)
- Status (X-Plane’s frame rate, which engine is encoding textures, whether night lighting is working, and whether X-World Pro was detected)
If you see tiles being downloaded and cache hits increasing, XEarthLayer is working correctly.