Install Glance on Linux and Access It with Localtonet
Install the Glance binary on Linux, configure and verify its web dashboard, then provide remote HTTP access through Localtonet.
In this article 11 sections
Build a lightweight Linux dashboard, validate every local layer, and publish it behind access controls you have actually tested
Glance is a self-hosted dashboard that combines feeds, status information, releases, videos, weather, markets, and other widgets in a configurable web interface. This guide installs the v0.8.8 precompiled Linux binary, pairs it with configuration from the same release tag, verifies the service locally, and creates a persistent systemd service. After Glance works, we connect its HTTP endpoint to Localtonet as a separate remote-access layer, protect it with Basic Authentication, IP Restriction, and HTTPS-only access, and keep the Localtonet client running at boot. Every layer is tested on its own so that problems are easy to locate.
📋 What's in this guide
What Glance is and how this deployment works
Glance is an open-source, self-hosted dashboard designed to display multiple information sources in a streamlined browser interface. Its available widgets include RSS feeds, subreddit posts, Hacker News, weather forecasts, YouTube uploads, Twitch channels, market prices, Docker container status, server statistics, software releases, and custom data. Pages, columns, themes, and widget-specific options are defined through YAML configuration.
The project offers several installation paths. Docker Compose is its recommended method, but it also publishes precompiled binaries for Linux, Windows, and macOS across x86, x86_64, ARM, and ARM64 architectures. This tutorial deliberately uses a Linux binary. That approach is suitable when you already manage native host services, want to avoid adding a container runtime solely for a dashboard, or need direct control over the executable and its service definition.
This walkthrough is pinned to Glance v0.8.8, the release shown on the project's latest-release page at the time of this revision. Its release notes list a set of fixed vulnerabilities together with bug fixes for the releases, search, markets, change-detection, and docker-containers widgets. Pinning still matters because the repository's main branch can advance after any release and may contain configuration intended for newer code. We avoid that mismatch by downloading both the executable and the starting configuration from the v0.8.8 tag.
The v0.8.8 release notes state that a number of vulnerabilities were fixed in that release. If you followed an earlier version of this guide and installed v0.8.5 or another older binary, follow the upgrade procedure in the operations section before exposing the dashboard through any public address.
There are three operational layers:
- Glance process: the Linux executable reads the YAML configuration and starts its web service.
- Local HTTP endpoint: the dashboard must respond at the verified local address and port. The default is port
8080, so local testing useshttp://127.0.0.1:8080. - Localtonet HTTP tunnel: after local verification, our client creates an outbound connection to a Localtonet relay and forwards a public HTTPS address to the local Glance endpoint.
Keeping these layers separate is essential. A tunnel cannot repair an architecture mismatch, invalid YAML, unavailable widget source, or stopped Glance process. Conversely, a working local dashboard does not prove that the Localtonet client is connected or that the tunnel has been started.
127.0.0.1:8080.
Keep Glance local during installation. Verify the binary, configuration, HTTP response, browser rendering, and service restart behavior before creating a public tunnel. Configure access control on the tunnel before sharing its address.
Prerequisites and deployment decisions
Use a Linux account that can download files and run commands. Installing under /opt, creating a service account, and registering systemd units normally require sudo or equivalent administrative access. The machine must remain online whenever you expect the dashboard to be available.
The extraction examples use tar for .tar.gz or .tgz files and unzip for .zip files. Install the corresponding standard utility through your distribution if it is absent. You will also need curl or wget, the file utility, and a browser or HTTP client for verification.
For remote access you need a Localtonet account and the Localtonet client installed on the Glance host, or on another device that can reach Glance over the local network. Running both processes on the same host is the simplest arrangement because the tunnel can target loopback without exposing port 8080 to the LAN. Client installation is covered in the Localtonet section as a prerequisite to the tunnel steps.
Identify the processor architecture
Run this command on the Linux machine where Glance will execute:
uname -m
Use the result to select the corresponding Linux asset on the v0.8.8 release page. The following mapping explains the common kernel names without pretending that every release uses one permanent filename:
uname -m result |
Release architecture to select | Important note |
|---|---|---|
x86_64 |
x86_64 or AMD64 | This is the usual 64-bit Intel and AMD Linux architecture. |
aarch64 or arm64 |
ARM64 | Do not substitute a 32-bit ARM build. |
armv7l or another 32-bit ARM result |
ARM | Confirm that the release asset supports the exact ARM generation used by the host. |
i386, i486, i586, or i686 |
x86 | Use the 32-bit x86 build rather than x86_64. |
If the output does not clearly match an asset listed by Glance, stop rather than selecting the nearest-looking archive. The project supports the architecture families listed above, but a release asset still has to match the operating system and processor on the target machine.
Use one consistent filesystem layout
This guide places both the executable and its release-matched configuration in /opt/glance:
/opt/glance/
├── glance
└── glance.yml
Glance normally looks for glance.yml in the directory containing its binary. We still pass an absolute configuration path to systemd. That removes uncertainty about the service's working directory and makes the active configuration visible in the unit definition.
This tutorial uses Glance v0.8.8 and the configuration template stored under the v0.8.8 Git tag. If you intentionally install another release, obtain its binary and configuration documentation from that same tag, then review its release notes before continuing.
Select, extract, and install the Glance Linux binary
Open the v0.8.8 release page, expand its Assets list, and download the Linux archive whose architecture matches the mapping above. The release contains multiple assets, so confirm both the operating system and architecture before downloading.
To check whether a newer release has appeared since this revision, use the project's latest-release page. Do not silently substitute a newer binary into the commands below. A different release should be paired with its own tagged template and reviewed for configuration changes.
Record the host architecture
Run uname -m on the target host and map the result to x86, x86_64, ARM, or ARM64. Select only a Linux asset that matches that architecture.
Download the v0.8.8 release archive
Download the selected asset from the v0.8.8 Assets list into ~/Downloads or another known directory. Keep the filename assigned by the release page so that its archive extension remains visible.
Set the exact downloaded path
List the download directory, copy the exact filename shown there, and assign it to ARCHIVE. This avoids guessing a release asset name in a command.
Extract according to the real format
Inspect the file and use the matching extraction branch below. The command handles .tar.gz, .tgz, and .zip archives without assuming which packaging format your selected asset uses.
Locate and inspect the executable
Find the extracted file named glance, inspect it with file, and compare the reported executable architecture with uname -m.
Install it under /opt/glance
Create the installation directory and copy the verified executable to /opt/glance/glance with executable permissions.
First list your downloads and identify the exact archive:
ls -lh "$HOME/Downloads"
Assign the complete path you actually downloaded. Replace the placeholder below with the filename displayed by ls:
ARCHIVE="$HOME/Downloads/PASTE-THE-EXACT-DOWNLOADED-FILENAME-HERE"
test -f "$ARCHIVE" || { echo "Archive not found: $ARCHIVE"; exit 1; }
file "$ARCHIVE"
Create a clean extraction directory and extract based on the real filename:
EXTRACT_DIR="$HOME/glance-v0.8.8-extract"
rm -rf "$EXTRACT_DIR"
mkdir -p "$EXTRACT_DIR"
case "$ARCHIVE" in
*.tar.gz|*.tgz)
tar -xzf "$ARCHIVE" -C "$EXTRACT_DIR"
;;
*.zip)
unzip "$ARCHIVE" -d "$EXTRACT_DIR"
;;
*)
echo "Unsupported or unrecognized archive extension."
echo "Inspect the file output and the release asset before continuing."
exit 1
;;
esac
Locate the executable:
find "$EXTRACT_DIR" -type f -name glance -print
If exactly one path is returned, assign that exact path to GLANCE_EXTRACTED. Replace the placeholder rather than copying a guessed directory structure:
GLANCE_EXTRACTED="PASTE-THE-EXACT-PATH-RETURNED-BY-FIND"
test -f "$GLANCE_EXTRACTED" || { echo "Glance executable not found"; exit 1; }
chmod u+x "$GLANCE_EXTRACTED"
file "$GLANCE_EXTRACTED"
uname -m
The file output should identify a Linux executable whose architecture corresponds to the host. If it reports a different architecture, delete the extraction directory and download the correct asset. Do not install an incompatible file merely because its name contains linux.
Install the verified executable:
sudo mkdir -p /opt/glance
sudo install -o root -g root -m 0755 "$GLANCE_EXTRACTED" /opt/glance/glance
ls -l /opt/glance/glance
file /opt/glance/glance
You can also record a local SHA-256 digest for later comparison:
sha256sum "$ARCHIVE"
sha256sum /opt/glance/glance
A locally calculated digest detects later changes to the same file, but it is not publisher verification by itself. Compare it with an official checksum only if the selected release supplies one. Do not treat a checksum copied from an unrelated site as authoritative.
An Exec format error normally means the executable does not match the processor or operating system. Return to the v0.8.8 Assets list and select the correct Linux architecture instead of changing permissions repeatedly.
Install a release-matched glance.yml
The Glance repository includes a starting configuration under docs/glance.yml. For this v0.8.8 installation, use the template from the v0.8.8 tag, not the mutable copy on main. Open that link first and confirm the file is present at the tag. The command below is written to fail rather than save an error page if it is not.
curl -fL \
https://raw.githubusercontent.com/glanceapp/glance/v0.8.8/docs/glance.yml \
-o /tmp/glance-v0.8.8.yml
test -s /tmp/glance-v0.8.8.yml
sudo install -o root -g root -m 0644 \
/tmp/glance-v0.8.8.yml \
/opt/glance/glance.yml
If curl reports a non-success status or the file is empty, do not substitute the main URL. Open the tagged template link, confirm which file exists under v0.8.8, and save that exact revision manually.
Edit the installed file with your preferred text editor:
sudo nano /opt/glance/glance.yml
YAML is indentation-sensitive. Use spaces, avoid tabs, and preserve the hierarchy between pages, columns, and widgets. The following small example reflects the documented Glance structure and is useful when you want to reduce the initial configuration to a few easy-to-check widgets:
pages:
- name: Home
columns:
- size: small
widgets:
- type: calendar
first-day-of-week: monday
- size: full
widgets:
- type: hacker-news
- size: small
widgets:
- type: weather
location: London, United Kingdom
units: metric
hour-format: 12h
Replace the example location and widget choices with information appropriate for your dashboard. Begin with a small configuration. After the service starts reliably, add feeds and integrations in small groups so that a syntax error or unavailable upstream service is easier to identify.
Server settings: listen address and port
Glance's configuration documentation at the v0.8.8 tag describes a top-level server section with host and port keys. The port defaults to 8080, and leaving host empty listens on all interfaces. When the Localtonet client runs on the same machine, binding to loopback keeps the dashboard off the LAN entirely:
server:
host: 127.0.0.1
port: 8080
pages:
- name: Home
# columns and widgets as above
If 8080 is already used by another application, change port to a free value and use that same value everywhere this guide mentions 8080, including the Localtonet tunnel's Local port. If the Localtonet client runs on a different device, do not bind to 127.0.0.1, because the client would be unable to reach Glance. In that case leave host empty or set it to the host's LAN address, and restrict port access with the host firewall.
The server, auth, environment-variable, reload, and validation behavior described in this section and the next reflects Glance's configuration documentation. Option names occasionally change between releases, so check the v0.8.8 configuration.md before relying on a key, and treat any startup error naming an unknown key as a sign that the documentation and binary do not match.
Optional Glance login
The 0.8.x series added built-in authentication. The configuration documentation describes an auth section containing a secret-key and a list of users, where each user has either a plain password or a password-hash. The documentation also describes helper subcommands for generating these values: secret:make creates a secret key, and password:hash produces a hash so that the plain password does not need to sit in the file. Run them with the installed binary:
/opt/glance/glance secret:make
/opt/glance/glance password:hash 'choose-a-long-unique-password'
Then reference the results in the configuration. Prefer the hash form, and keep the secret key out of version control:
auth:
secret-key: ${GLANCE_SECRET_KEY}
users:
admin:
password-hash: ${GLANCE_ADMIN_HASH}
Be aware that typing a password on the command line can leave it in shell history. Clear that history entry or use a method your shell provides for omitting a command from history. Glance login protects the application itself, which is useful even on the LAN. It complements, rather than replaces, the Localtonet edge controls described in the security section.
Keep secrets out of the file with environment variables
The configuration documentation describes ${VARIABLE_NAME} substitution, which replaces the placeholder with an environment variable's value when the configuration is loaded. That lets the YAML remain shareable while secrets live elsewhere. Under systemd, a root-owned environment file is a straightforward place for them:
sudo mkdir -p /etc/glance
sudo touch /etc/glance/glance.env
sudo chown root:root /etc/glance/glance.env
sudo chmod 0600 /etc/glance/glance.env
sudo nano /etc/glance/glance.env
GLANCE_SECRET_KEY=paste-the-generated-secret-key
GLANCE_ADMIN_HASH=paste-the-generated-password-hash
systemd reads this file as root before starting the service, so the glance account does not need read access to it. The unit in the systemd section references it with EnvironmentFile=-/etc/glance/glance.env; the leading dash means the service still starts if you do not use the file. When testing in the foreground, export the same variables in your shell first, or Glance will see empty values.
Configuration and external network activity
Many widgets retrieve data from external services. Glance can therefore serve its page successfully while an individual feed, DNS lookup, or upstream API fails. During verification, separate basic dashboard availability from widget availability. First confirm that the web page responds. Then investigate any widget-specific message.
The Glance project identifies low DNS rate limits in Pi-hole, AdGuard Home, and similar filtering resolvers as a common cause of request timeouts. A dashboard containing many widgets can generate enough DNS lookups to exceed a restrictive limit. If the interface opens but multiple data-backed widgets time out, inspect the resolver used by the Glance host.
Protect sensitive configuration values
Review the YAML before storing it in version control or sharing it for troubleshooting. Custom widgets and external integrations can involve credentials, private URLs, or other sensitive values. The tagged template's releases widget, for example, notes that an optional GitHub token raises the unauthenticated API limit of 60 requests per hour; such a token belongs in the environment file, not the YAML. Do not place a Localtonet device token in glance.yml. Glance configuration and Localtonet client authentication are separate concerns.
Rendered widget content is visible to anyone who gets past your access controls. Remove credentials, private endpoints, internal hostnames, personal feeds, and operational details that should not be visible to the people who will use the public address.
Start Glance in the foreground and verify it locally
Validate the configuration before starting
The configuration documentation describes config:validate and config:print subcommands. The first checks the file without starting the server; the second prints the configuration as Glance parses it, which is helpful for confirming indentation and environment-variable substitution. Pass the same explicit path the service will use:
cd /opt/glance
./glance --config /opt/glance/glance.yml config:validate
./glance --config /opt/glance/glance.yml config:print
config:print shows substituted values, so do not paste its output into a public issue or chat if your configuration uses secrets. If your binary rejects these subcommands, compare the syntax with the tagged configuration documentation and continue with the foreground test, which also surfaces configuration errors.
Run the foreground test
Foreground execution verifies that the kernel can execute the file, the application can read the selected configuration, and the local service can start. Run the exact command that the systemd service will later use:
cd /opt/glance
./glance --config /opt/glance/glance.yml
Leave that terminal open. If Glance exits, read the displayed error before changing anything. A startup failure at this stage is local and should be resolved before systemd or Localtonet is introduced.
From another terminal on the same host, request the local endpoint:
curl -I http://127.0.0.1:8080
Then open the full interface in a browser:
http://localhost:8080
An HTTP response confirms that something is listening at the endpoint, but browser inspection confirms more. Check that the expected page name appears, columns render correctly, and the configured widgets are present. If you enabled Glance login, confirm that the login page appears and that your credentials work. Return to the foreground terminal and look for configuration or upstream request errors.
You can inspect the listener with:
ss -ltn | grep ':8080'
A matching line confirms that a process is listening, and its local address column shows whether it is bound to 127.0.0.1 or to all interfaces. It does not identify Glance by itself, so combine this check with the foreground process and browser result.
| Layer | Expected result | If it fails |
|---|---|---|
| Executable | Glance starts without an execution-format or permission error. | Recheck the release architecture, file type, and executable permissions. |
| Configuration | config:validate succeeds and the process accepts /opt/glance/glance.yml. |
Inspect YAML indentation and confirm that the template and keys match v0.8.8. |
| Local HTTP | 127.0.0.1:8080 returns an HTTP response. |
Confirm that Glance is still running and that the configured port is free. |
| Browser rendering | The configured page, columns, and widgets appear, after login if enabled. | Review the browser result and foreground process output. |
| Widget data | External data loads where its upstream source is available. | Check outbound access, DNS, resolver rate limits, and upstream availability. |
Stop the foreground process with Ctrl+C only after these checks pass. Foreground execution is not a persistent deployment. Closing the terminal or rebooting the host stops the dashboard, which is why the next section creates a supervised service.
When the Localtonet client will run on this same Linux host, the verified target for this setup is 127.0.0.1 and port 8080, or the port you set under server. If the client will run elsewhere, test the appropriate LAN address from that other device before creating the tunnel.
Run Glance persistently with systemd
The Glance project states that the binary can be placed in /opt/glance and started with the server through systemd, but it does not publish an authoritative unit file that we rely on here. The following is a clearly labeled, distribution-neutral example for this exact filesystem layout. Review it against your distribution's service policy before production use.
Create a dedicated service account
A dashboard does not need to run as root merely because its binary is installed under /opt. Create a system account with no interactive login. The command locates the host's nologin program and falls back to /bin/false if necessary:
NOLOGIN="$(command -v nologin || true)"
[ -n "$NOLOGIN" ] || NOLOGIN=/bin/false
sudo useradd \
--system \
--home-dir /opt/glance \
--shell "$NOLOGIN" \
glance
If your distribution reports that the user already exists, confirm that it is the intended service account before continuing. Some distributions provide a different account-management command, so follow local administrative policy if useradd is unavailable.
Keep the executable owned by root and allow the glance group to read the configuration:
sudo chown root:root /opt/glance/glance
sudo chmod 0755 /opt/glance/glance
sudo chown root:glance /opt/glance/glance.yml
sudo chmod 0640 /opt/glance/glance.yml
sudo chown root:glance /opt/glance
sudo chmod 0750 /opt/glance
Create the service unit
Write the following unit to /etc/systemd/system/glance.service. The EnvironmentFile line is optional and only matters if you use environment-variable substitution:
sudo tee /etc/systemd/system/glance.service >/dev/null <<'EOF'
[Unit]
Description=Glance self-hosted dashboard
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=glance
Group=glance
WorkingDirectory=/opt/glance
EnvironmentFile=-/etc/glance/glance.env
ExecStart=/opt/glance/glance --config /opt/glance/glance.yml
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
UMask=0027
[Install]
WantedBy=multi-user.target
EOF
Validate the unit syntax, reload systemd, enable startup at boot, and start Glance:
sudo systemd-analyze verify /etc/systemd/system/glance.service
sudo systemctl daemon-reload
sudo systemctl enable --now glance.service
Verify startup and inspect logs
sudo systemctl status glance.service --no-pager
sudo systemctl is-enabled glance.service
sudo systemctl is-active glance.service
sudo journalctl -u glance.service -n 100 --no-pager
Follow new log messages while testing the dashboard:
sudo journalctl -u glance.service -f
In another terminal, repeat the local request:
curl -I http://127.0.0.1:8080
This repeated check proves that the systemd-managed process, rather than the earlier foreground process, is serving the endpoint.
How configuration changes take effect
Glance's configuration documentation describes automatic reloading: when the configuration file changes, Glance reloads it without a restart. In practice, that means most widget and page edits appear after saving glance.yml and refreshing the browser. Watch the journal while you save, so you see immediately whether the new configuration was accepted:
sudo nano /opt/glance/glance.yml
sudo journalctl -u glance.service -n 50 --no-pager
curl -I http://127.0.0.1:8080
A restart remains the dependable option when a change does not appear to apply, when you edit settings that affect how the server starts (such as the listen address or port), or when you change the environment file, because systemd only reads EnvironmentFile at service start:
sudo systemctl restart glance.service
sudo systemctl status glance.service --no-pager
Running config:validate before saving into the live path is a good habit: edit a copy, validate it, then install it over /opt/glance/glance.yml. Do not use systemctl reload; the unit defines no ExecReload action, and file-based reload makes one unnecessary.
Routine service commands
# Stop Glance
sudo systemctl stop glance.service
# Start Glance
sudo systemctl start glance.service
# Restart after a binary, port, or environment file change
sudo systemctl restart glance.service
# Disable automatic startup and stop it now
sudo systemctl disable --now glance.service
Starting Glance does not start the Localtonet client or a tunnel, and starting a tunnel does not start Glance. The next section covers keeping the Localtonet client running at boot as a separate service.
Connect the working dashboard through Localtonet
Once the systemd-managed service responds locally, an HTTP tunnel can make it reachable outside the LAN. The Localtonet client establishes an outbound connection to our relay infrastructure, so this workflow does not require inbound router port forwarding, firewall changes, a public IP address, or VPN setup. It also works behind NAT and CGNAT. Visitors reach the tunnel over HTTPS with a certificate that Localtonet provides and renews, while Glance itself stays on plain HTTP locally. TLS ends at the Localtonet server, and the request then travels through the tunnel to the client, which passes it to Glance.
Before you start
Our HTTP tunnel documentation lists two conditions that must already be true before you create the tunnel. They are prerequisites, not tunnel steps:
- The Localtonet client is installed on the device and connected with an AuthToken. Create an account, then copy the token from My Tokens. Create a separate token for each device and keep every token private.
- Your web service is running and you know its port. For this guide, that is
glance.serviceon port 8080, already verified in the previous sections.
Additional requirements depend on the URL type you choose: a Custom subdomain needs Balance on your account, and a Custom domain needs Balance plus a domain that you have added in DNS Manager.
Install the client on Linux
Our documentation lists several Linux installation options in its Install section: an install script, archives for glibc and musl systems, a systemd service, and DEB and RPM packages with ready-made tunnel and VPN services. Choose the option that matches your distribution. Use the musl archive on musl-based systems such as Alpine and the glibc archive on most other distributions, and match the processor architecture you identified with uname -m. Follow the commands shown on the current Linux and DEB and RPM package pages rather than copying a client command from an older tutorial.
Once installed, start the client with your token. The documentation shows this form, with a placeholder in place of the real value:
localtonet --authtoken <YOUR_TOKEN>
Replace <YOUR_TOKEN> with the token from My Tokens. Never paste a real token into screenshots, documentation, shared shell history, or support messages. If your install method placed the executable somewhere that is not on your PATH, run it by its full path.
Keep the Localtonet client running at boot
At this point only Glance is persisted. If the client runs only in an interactive terminal, a reboot or logout takes the tunnel offline even though Glance comes back automatically. Run the client as a service too. The Linux installation documentation describes a systemd service, and the DEB and RPM packages include ready-made services. Our documentation also lists a "Start Localtonet on Boot" guide among its tutorials. Use one of those documented methods rather than writing your own unit around a token on the command line, and confirm the result after a reboot:
sudo reboot
# after reconnecting:
sudo systemctl is-active glance.service
curl -I http://127.0.0.1:8080
Then confirm in the dashboard that the device token shows as connected and that the tunnel is reachable. Whatever method you use, make sure any file holding the token is readable only by root or the service account.
Create the HTTP tunnel
With the client connected and Glance verified, follow the five documented steps:
Open the HTTP page
Open My Tunnels › HTTP and select Create HTTP Tunnel to open the form.
Choose the URL type
Select Random subdomain for a generated name on the selected domain (nothing extra required), Custom subdomain for a name you type (letters, digits, and hyphens; requires Balance), or Custom domain for a domain of your own (requires Balance and a domain in DNS Manager).
Choose the device and the region
In Device token, select the token used by the Localtonet app on the Glance host. In Server region, choose a region close to that device for lower latency.
Enter the local address
Select the Domain, enter a Subdomain if you chose Custom subdomain, set Local IP address to 127.0.0.1 and Local port to 8080, then select Create tunnel. The tunnel appears under Your tunnels as Tunnel # followed by its ID.
Start the tunnel
Select the start button in the Actions column. When the tunnel runs, its address in the URL column becomes a link. If the Localtonet app for that token is offline, a dialog tells you so; start the app, or select Start anyway and the tunnel goes live when the app connects.
Before sharing the link, configure access control as described in the next section. Basic Authentication and IP Restriction take only a minute and should be in place before anyone else has the address.
Test the public address
Open the link from the URL column on a device outside your local network, such as a phone using mobile data. The address is https:// followed by the host name shown in the URL column and has no port number. Confirm that the same Glance page loads as it did locally, and that any access controls you enabled prompt as expected. An HTTP tunnel keeps its subdomain until you delete the tunnel; stopping and starting it does not change the address, so bookmarks remain valid between sessions.
On the Free plan, our documentation describes a warning page that visitors may see when opening an HTTP tunnel. Its exact behavior depends on your plan, so see "The warning page on the Free plan" section of the HTTP tunnel documentation if you encounter it during testing.
When the client runs on another device
If the Localtonet client runs on another computer, 127.0.0.1 points to that other computer, not to the Glance host. Before creating the tunnel, open Glance through its LAN address from the client device. That requires Glance to listen on a non-loopback address (see the server.host setting) and the host firewall to permit the connection. Then use the Glance host's LAN address as the Local IP address; the form accepts an IPv4 or IPv6 address or localhost.
Glance should not need the documented Host header rewrite; that setting exists for local servers that choose a site by host name, and Glance serves its dashboard regardless of the host name used.
Access control, exposure boundaries, and safe publication
A public URL changes the dashboard's exposure boundary. Glance can reveal server names, container status, feed titles, watched software, market lists, custom API output, and other operational information. Decide who should see it and enforce that decision with real authentication, not with obscurity.
Subdomains can be shared, logged, bookmarked, or discovered. Anyone who obtains an unprotected tunnel address can open the dashboard. Enable at least one of the access controls below, and preferably more than one, before sharing the link.
Open the Tunnel settings panel
Select the settings button in the Actions column of the Glance tunnel to open the Tunnel settings panel. Under Tunnel Details you can rename the tunnel and change the local IP address and port. The panel also contains the access, HTTPS, limit, and logging settings described in our HTTP tunnel documentation. The username, password, and address-list details for each control are explained on the Access control page of our documentation.
Turn on Is Only Https?
Under Settings, enable Is Only Https? so a request to http:// is redirected to the same address on https://. While it is off, the address answers on both. Our documentation recommends turning it on for anything that carries logins or private data, which includes a protected dashboard.
Enable Basic Authentication?
Turn on Basic Authentication? and set the username and password visitors must enter before the request reaches Glance. Use a long, unique password that is not reused from Glance's own login or any other account.
Restrict client IP addresses
Use IP Restriction to control which client IP addresses can access the tunnel. This works well when you open the dashboard from a known office or home connection with a stable public address.
Set an Expiration Date for temporary access
If you only need remote access for a limited period, set an Expiration Date so the tunnel stops on that date even if you forget to stop it. Speed Limits and Bandwidth Limit can also cap usage.
After changing these settings, retest from an outside network: confirm that plain http:// redirects, that the Basic Authentication prompt appears, and that a connection from a non-allowed IP address is refused when IP Restriction is active. Check the Activity Log in the same panel to confirm that your setting changes were recorded.
Other documented edge controls
Two further options are available for teams with stricter requirements. SSO Providers lets visitors sign in with one of your identity providers before they can open the tunnel; the SSO button at the top of the page manages the providers, and the Single Sign-On section of our documentation covers Google, GitHub, Microsoft, GitLab, and username-and-password providers. The WAF button in the Actions column opens WAF Setting for the Web Application Firewall and shows whether it is not configured, active, or inactive. Availability of individual options can vary by plan, so check the panel for your account.
Layering Localtonet and Glance authentication
| Control | Where it is enforced | Best for |
|---|---|---|
| Basic Authentication? on the tunnel | Localtonet edge, before traffic reaches the host | Blocking unauthenticated internet traffic from ever reaching Glance |
| IP Restriction on the tunnel | Localtonet edge, by client IP address | Users who connect from known, stable addresses |
| SSO Providers on the tunnel | Localtonet edge, through your identity provider | Teams that already manage identities centrally |
Glance auth users |
Glance application, on the host | Protecting the dashboard on the LAN as well as through the tunnel |
Edge controls and Glance login are complementary. Edge controls stop unwanted requests before they consume resources on your machine; Glance login protects the dashboard even from devices on your own network. Using both means visitors authenticate twice, which some users find acceptable for an operations dashboard and others do not. At minimum, enable one edge control plus Is Only Https? for any public tunnel.
Keep client identity separate from dashboard configuration
A Localtonet AuthToken connects a specific device to your account. Never store it in glance.yml, publish it in a repository, or include it in screenshots. Restrict access to any local file or service configuration that contains the token.
Prefer loopback when both processes share a host
When the Localtonet client and Glance run on the same Linux machine, setting server.host to 127.0.0.1 and targeting 127.0.0.1:8080 keeps the local HTTP hop on loopback and off the LAN. If the client runs on another device, traffic crosses the LAN and the Glance listener must be reachable there. Account for that additional exposure and the security of the local network.
Stop temporary access explicitly
A configured tunnel and a running tunnel are different states. Start it only when remote access is intended. Stop it when access is complete, or delete it if the configuration will not be reused. Remember that with both services persisted, a reboot restores dashboard availability behind any tunnel that was left running.
http:// on the public address.
Updates, backups, and routine operation
Back up configuration before editing
Because Glance reloads its configuration automatically, saving a broken edit to the live file takes effect immediately. Create a dated copy before significant changes:
sudo cp \
/opt/glance/glance.yml \
"/opt/glance/glance.yml.backup.$(date +%Y%m%d-%H%M%S)"
Make a small group of edits, validate them, inspect the journal, and verify the page. If the dashboard breaks, restore the known-good file:
sudo cp /opt/glance/glance.yml.backup.YYYYMMDD-HHMMSS /opt/glance/glance.yml
sudo chown root:glance /opt/glance/glance.yml
sudo chmod 0640 /opt/glance/glance.yml
sudo systemctl restart glance.service
Back up /etc/glance/glance.env separately and store it with the same care as any other secret.
What v0.8.8 changed
The v0.8.8 release notes list fixes for the releases widget when repositories are specified with include-prereleases, the search widget preventing keyboard shortcuts that include the S key, markets chart rendering when all history values are 0, the "SHOW MORE" arrow icon with custom fonts, the URL opened by entries in the change detection widget, IPv6 addresses in sock-path for the docker-containers widget, and docker container children being filtered when no category is specified. The notes also state that a number of vulnerabilities were fixed, credited to several contributors. That last item is the main reason to treat this upgrade as a priority rather than an optional refresh.
Update the binary as a controlled change
Before upgrading, read the target release notes and confirm whether configuration behavior changed. Download the correct Linux architecture, pair it with documentation from that release, retain the old executable and YAML, stop the service, install the replacement, and test it in the foreground. Only then return it to systemd:
sudo systemctl stop glance.service
sudo cp /opt/glance/glance /opt/glance/glance.previous
sudo cp /opt/glance/glance.yml /opt/glance/glance.yml.previous
# Install the already extracted and architecture-verified replacement:
sudo install -o root -g root -m 0755 \
/path/to/verified/new/glance \
/opt/glance/glance
cd /opt/glance
sudo -u glance ./glance --config /opt/glance/glance.yml config:validate
sudo -u glance ./glance --config /opt/glance/glance.yml
If your configuration uses ${...} substitution, export the same variables for that foreground test, because the systemd environment file is not loaded outside the service. After verification, stop it with Ctrl+C, start the service, inspect logs, and repeat the local HTTP test:
sudo systemctl start glance.service
sudo systemctl status glance.service --no-pager
sudo journalctl -u glance.service -n 100 --no-pager
curl -I http://127.0.0.1:8080
To roll back, stop the service, copy glance.previous and glance.yml.previous back into place, and start it again. The Localtonet tunnel needs no change during a Glance upgrade as long as the listen address and port stay the same.
Understand combined availability
| Glance | Localtonet client | Tunnel | Remote result |
|---|---|---|---|
| Running | Connected | Running | The public address forwards authorized requests to Glance. |
| Stopped | Connected | Running | The public endpoint cannot obtain a working response from Glance. |
| Running | Disconnected | Started | Remote forwarding is unavailable until the selected client reconnects. |
| Running | Connected | Stopped or expired | Glance remains locally available, but the public tunnel is unavailable. |
Troubleshooting Glance and Localtonet access
The binary does not execute
ls -l /opt/glance/glance
file /opt/glance/glance
uname -m
A permission error can indicate a missing executable bit or filesystem execution restriction. An Exec format error normally indicates an operating-system or architecture mismatch. Download the matching Linux asset rather than attempting to modify an incompatible binary.
Glance cannot read the configuration
sudo ls -l /opt/glance/glance.yml
sudo -u glance test -r /opt/glance/glance.yml && echo readable
The systemd unit passes --config /opt/glance/glance.yml, so it does not depend on implicit configuration discovery. If the service account cannot read the file, restore ownership and mode:
sudo chown root:glance /opt/glance/glance.yml
sudo chmod 0640 /opt/glance/glance.yml
Glance reports a YAML error
Run config:validate against the file, then check indentation and the hierarchy of pages, columns, and widgets. Tabs and inconsistent spacing can change YAML structure. Compare the file with the v0.8.8 tagged template and the tagged configuration documentation, remove the latest edits, or restore a known-good backup:
/opt/glance/glance --config /opt/glance/glance.yml config:validate
sudo journalctl -u glance.service -n 100 --no-pager
Environment variables appear empty
If login fails or a widget reports a missing token under systemd but works in your shell, confirm that the unit contains EnvironmentFile=-/etc/glance/glance.env, that variable names match exactly, and that you restarted the service after editing the environment file. When testing in the foreground, the environment file is not loaded automatically.
The service fails under systemd but works in the foreground
Compare the commands and identities. The unit runs as the glance user with an explicit configuration path. Test that same combination manually after stopping the service:
sudo systemctl stop glance.service
cd /opt/glance
sudo -u glance ./glance --config /opt/glance/glance.yml
If this fails, inspect file and directory permissions. If it succeeds, validate the unit again and inspect its journal:
sudo systemd-analyze verify /etc/systemd/system/glance.service
sudo systemctl daemon-reload
sudo systemctl start glance.service
sudo journalctl -u glance.service -n 100 --no-pager
Port 8080 does not respond
sudo systemctl status glance.service --no-pager
sudo journalctl -u glance.service -n 100 --no-pager
ss -ltn | grep ':8080'
curl -I http://127.0.0.1:8080
Another application may already occupy the port. A matching listener does not prove that Glance owns it. If the port is taken, set a different value under server.port, restart the service, and update the tunnel's Local port in the Tunnel settings panel under Tunnel Details. Also check server.host: if it is set to a LAN address, requests to 127.0.0.1 will not reach Glance.
The page opens but widgets time out
Treat this as a data-source problem rather than a basic web-service failure. Test DNS and outbound connectivity from the Linux host. If you use Pi-hole, AdGuard Home, or another filtering resolver, inspect its request-rate limits. Also consider upstream outages, API restrictions such as the GitHub limit for unauthenticated release checks, and service-specific configuration.
Glance works locally but the public URL fails
Check each layer in order:
- Run
curl -I http://127.0.0.1:8080on the Glance host. - Confirm that
glance.serviceis active. - Confirm that the Localtonet client is running and its token shows as connected. If you saw the offline-app dialog when starting the tunnel and chose Start anyway, the tunnel only goes live once the app connects.
- Confirm that the tunnel's Device token is the one used by the client on this host.
- Verify the tunnel's Local IP address and Local port under Tunnel Details.
- Confirm that the tunnel was started, not merely created, and that an Expiration Date or Bandwidth Limit has not stopped it.
- Open Request Log in the Tunnel settings panel to see whether requests arrive, and Tunnel Health to see the health checks.
- Test the link shown in the URL column.
If requests do not arrive at all and the client cannot connect with the normal method, our documentation lists Legacy Connect? under Settings as a fallback. Changing it on a running tunnel restarts the tunnel, so the Localtonet app must be connected when you switch it. For networks with strict outbound firewalls, the Outbound Port setting lets the app use fixed outbound ports for its server connection.
If the client is on another computer, do not use 127.0.0.1. Test the Glance host's LAN address from the client device first. If that local test fails, resolve server.host, LAN routing, or the host firewall before troubleshooting the public tunnel.
Visitors are refused or prompted unexpectedly
An IP Restriction rule refuses any address it does not allow, including your phone on mobile data, whose public address changes. Basic Authentication prompts before Glance's own login page if you enabled both. Review the access settings in the Tunnel settings panel and the Activity Log to confirm which rules are active.
The public page opens but looks incomplete
Compare it directly with the local page. If the same widgets fail locally, investigate Glance, DNS, or the upstream source. If the problem appears only remotely, confirm that the browser is using the current link from the URL column and inspect the Request Log for failed requests. Avoid changing several tunnel and dashboard settings at once.
Test in this order: downloaded asset, executable architecture, YAML validation, foreground startup, local HTTP response, browser rendering, individual widgets, systemd service, Localtonet client connection, tunnel state, access-control settings, Request Log, and external browser access.
Frequently asked questions
Does Glance require Docker on Linux?
No. Docker Compose is the project's recommended installation method, but Glance also publishes precompiled Linux binaries for x86, x86_64, ARM, and ARM64. This guide installs a native v0.8.8 binary under /opt/glance.
Why does this guide use the v0.8.8 configuration instead of main?
The repository's main branch can contain configuration intended for code newer than the installed release. Pairing the v0.8.8 binary with docs/glance.yml from the v0.8.8 Git tag reduces that compatibility risk.
I installed v0.8.5 from an earlier version of this guide. Should I upgrade?
Yes. The v0.8.8 release notes state that a number of vulnerabilities were fixed, alongside several widget bug fixes. Follow the controlled upgrade procedure in the operations section, keep your previous binary and configuration for rollback, and validate the configuration before restarting the service.
How do I choose the correct release asset?
Run uname -m on the target host and select the Linux asset for the corresponding architecture. Typical mappings are x86_64 to x86_64 or AMD64, aarch64 to ARM64, and armv7l to ARM. Verify the extracted executable with file before installing it.
How do I change Glance's port or bind it to localhost?
Glance's configuration documentation describes a server section with host and port keys. Set host: 127.0.0.1 when the Localtonet client runs on the same machine, and change port if 8080 is taken. Restart the service afterward and update the tunnel's Local port to match.
Does Glance reload configuration automatically?
Glance's configuration documentation describes automatic reloading when the configuration file changes, so most widget and page edits apply after saving. Watch the journal to confirm the new file was accepted. Restart the service for changes to server settings, for environment file changes, or whenever an edit does not seem to apply.
Which Localtonet tunnel type should I use?
Use an HTTP tunnel because Glance provides a browser-based HTTP service. When Glance and the Localtonet client run on the same host, enter Local IP address 127.0.0.1 and Local port 8080. Localtonet provides the HTTPS certificate, so Glance can stay on plain HTTP locally.
Does this setup provide authentication for Glance?
Yes, if you enable it. In the tunnel's Tunnel settings panel you can turn on Basic Authentication? to require a username and password, use IP Restriction to limit which client IP addresses can connect, or configure SSO Providers. Turn on Is Only Https? as well. Glance's own auth section adds an application-level login. A hard-to-guess URL alone is not authentication.
Will the tunnel come back after a reboot?
Only if the Localtonet client starts at boot. The Glance unit in this guide restarts the dashboard, but the client needs its own service. Our Linux installation options include a systemd service and DEB and RPM packages with ready-made services, and our documentation lists a Start Localtonet on Boot guide. The tunnel keeps its subdomain across stops and starts until you delete it.
Do I need router port forwarding or a public IP address?
No. The Localtonet client establishes an outbound connection to our relay infrastructure, which also works behind NAT and CGNAT. The HTTP tunnel provides a public HTTPS address without inbound router port forwarding, firewall changes, VPN setup, or a public IP address.
Why does 127.0.0.1 fail when the Localtonet client runs elsewhere?
Loopback always points to the computer using it. If the Localtonet client runs on another device, 127.0.0.1 refers to that device rather than the Glance server. Make Glance listen on a reachable address, then use the Glance host's verified LAN address as the tunnel's Local IP address.
Does creating a Localtonet tunnel start it automatically?
No. After Create tunnel, select the start button in the Actions column. The address in the URL column becomes a link once the tunnel runs. If the app for that token is offline, a dialog appears; you can start the app or choose Start anyway, and the tunnel goes live when the app connects.
Publish your verified Glance dashboard with Localtonet
Install Glance v0.8.8 from a matching release asset, verify the systemd-managed service locally, and keep the Localtonet client running at boot. Then create an HTTP tunnel, enable Basic Authentication or IP Restriction with HTTPS-only access, and reach your dashboard from anywhere without opening an inbound router port.
Get Started Free →Corrections & updates
Substantive changes approved by the Localtonet editorial team are listed transparently below.
Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.