Skip to content

Instantly share code, notes, and snippets.

@JoshuaCarroll
Created April 22, 2019 16:27
Show Gist options
  • Save JoshuaCarroll/8d096b31105e805853961cee045e0374 to your computer and use it in GitHub Desktop.
Save JoshuaCarroll/8d096b31105e805853961cee045e0374 to your computer and use it in GitHub Desktop.
How to run ngrok as a service on a Raspberry Pi

First install screen sudo apt install screen

Now you could just run it screen -d -m ./ngrok http 80

But you probably want it to automatically run at startup. So edit the bashrc: sudo nano /home/pi/.bashrc

Scroll to the very end of that file and add this: screen -d -m /home/pi/./ngrok http 80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment