LogoLogo
  • Getting Started
  • CLI
    • Docker
    • Config.yaml
  • GUI (SOON)
  • Tunnels Types
    • HTTP/s
      • HTTP/s plugins
      • HTTP/s apps
    • TLS
    • TCP
    • UDP
  • Reservations
    • Domain
    • Endpoint
  • Troubleshoot
    • Common errors
  • Tutorials
    • Expose a local web server
    • Expose Apache/Nginx web server
    • Share files from localhost
    • Use LocalXpose with Traefik
    • Expose PocketBase backend
    • Create a custom domain name
    • Make Let's Encrypt certificate
    • Access your IP camera remotely
    • Access your Raspberry Pi remotely
    • Sync your Keepass password manager
    • Expose localhost RASA chatbot for Telegram Integration
    • Expose your local Netdata Instance
    • Testing Stripe webhook
    • Expose localhost Kubernetes
    • Expose database server (PostgreSQL)
    • Exposing local Minecraft server
    • More Tutorials
Powered by GitBook
On this page
  • 1. SSH into the raspberry pi
  • 2. Download LocalXpose
  • 3. Unzip LocalXpose
  • 5. Create a unit file
  • 6. Copy the service file to system directory
  • 7. Reload the systemd manager
  • 8. Login through the CLI
  • 9. Enable the service to be run on boot
  • 10. Run LocalXpose service

Was this helpful?

  1. Tutorials

Access your Raspberry Pi remotely

This tutorial will explain how to install LocalXpose in your raspberry pi and enable it on boot and access your services anytime anywhere.

PreviousAccess your IP camera remotelyNextSync your Keepass password manager

Last updated 2 years ago

Was this helpful?

Suppose we have a custom domain name called pi.xtestgo.xyz, configured and ready to use with LocalXpose (see previous ), now it is time to use it on raspberry pi.

1. SSH into the raspberry pi

ssh pi@192.168.1.11

2. Download LocalXpose

wget https://api.localxpose.io/api/v2/downloads/loclx-linux-arm.zip

3. Unzip LocalXpose

unzip loclx-linux-arm.zip

5. Create a unit file

To keep LocalXpose running in the background and on boot, we need to create a unit file

nano localxpose.service

paste the following and save it

[Unit]
Description=localxpose
After=network-online.target

[Service]
ExecStart=/home/pi/loclx tunnel http --reserved-domain pi.xtestgo.xyz --to 8000
Restart=always
RestartSec=15

[Install]
WantedBy=multi-user.target

Replace the domain and the port with yours.

6. Copy the service file to system directory

sudo cp localxpose.service /etc/systemd/system/

7. Reload the systemd manager

sudo systemctl daemon-reload

8. Login through the CLI

sudo ./loclx account login

9. Enable the service to be run on boot

sudo systemctl enable localxpose.service

10. Run LocalXpose service

sudo systemctl start localxpose.service

will ask you to enter your access token which you can get from your dashboard

create custom domain
https://localxpose.io/dashboard