-
Notifications
You must be signed in to change notification settings - Fork 13
Tutorial: ngrok
Jacob Roeland edited this page Aug 6, 2013
·
4 revisions
- Begin by signing up for a free account at the ngrok homepage. If you have a Github account you can use it instead of signing up for another username and such.
- Download and unzip the ARM based version of ngrok. It's not available (yet) at the ngrok homepage so use this link. Make the executable writable using
chmod +x ngrok. - After navigating to your ngrok dashboard, copy your auth token. You'll need this to get a setable subdomain.
- Choose your subdomain and then run
./ngrok -authtoken abcdefg123 -subdomain YourSubdomain 8080. This forms a tunnel between your Pidora installation and the outside world, allowing you to access it even when on a different network. This makes using the QR code much more powerful. - After making sure you can access Pidora on a different network, quit the service using
Ctrl+C. - Edit your
/etc/xdg/lxsession/LXDE/autostartto show something like this:
rm /home/pi/pidora/curSong.json
@python /home/pi/pidora/hello.py
/home/pi/ngrok -authtoken abcdefg123 -subdomain YourSubdomain 8080
@midori -a "http://YourSubdomain.ngrok.com/" -e Fullscreen- Restart your Pi and you can now view and control your Pidora installation from anywhere!