I have a raspberry pi which I want to turn into a web server. I have installed everything needed. The problem is I am using ngrok
to get the server online. To do this, all I have to do is run the following command in the terminal:
/home/pi/Downloads/ngrok http -subdomain=asimpledomain 80
As I want this command to be executed on startup, I changed my rc.local
file to this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/pi/Downloads/ngrok http -subdomain=asimpledomain 80 &
exit 0
I have saved the file and rebooted, but after boot up, I found out that it is not working.
Any ideas?