Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > Chrome shows that the certificate is valid: > Issued On Saturday, 10 December 2022 at 08:42:20 > Expires OnFriday, 10 March 2023 at 08:42:19 > > > Do you have an issue on your end? Thanks a lot for answers! I didn't look deeper into it, but then just downloaded it with the "-no-check-certificate" parameter, which of course worked. Thanks, Kurt kstmuc's Profile: http://forums.slimdevices.com/member.php?userid=73249 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
kstmuc wrote: > After starting *setup.sh* the wget command returns error message about > an expired certificate: > > --2022-12-20 20:07:45-- > -https: // smartskills.tech / downloads / ngrok_updater.sh-- > Resolving smartskills.tech... 185.27.142.89 > Connecting to smartskills.tech|185.27.142.89|:443... connected. > ERROR: cannot verify smartskills.tech's certificate, issued by > CN=R3,O=Let's Encrypt,C=US: > Issued certificate has expired. > To connect to smartskills.tech insecurely, use `--no-check-certificate' > - > Kurt Chrome shows that the certificate is valid: Issued On Saturday, 10 December 2022 at 08:42:20 Expires On Friday, 10 March 2023 at 08:42:19 Do you have an issue on your end? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
That certificate has over 70 days to run (at least when I checked it a few minutes ago). Is the date correct on your system that is running the script? Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
After starting *setup.sh* the wget command returns error message about an expired certificate: --2022-12-20 20:07:45-- -https: // smartskills.tech / downloads / ngrok_updater.sh-- Resolving smartskills.tech... 185.27.142.89 Connecting to smartskills.tech|185.27.142.89|:443... connected. ERROR: cannot verify smartskills.tech's certificate, issued by CN=R3,O=Let's Encrypt,C=US: Issued certificate has expired. To connect to smartskills.tech insecurely, use `--no-check-certificate' - Kurt kstmuc's Profile: http://forums.slimdevices.com/member.php?userid=73249 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Because the ngrok v2 downloads were causing SSL-cert errors in China, I've *updated *the easy-setup procedure to make use of v3 for all platforms. For linux-variants, the .zip format has been dropped in favour of .tgz. The installer handles this change automatically. The .yml file is slightly different so you cannot just swap the binaries between v2 and v3 or it will break. The installer creates the correct .yml format for use with v3. If you already have ngrok running smoothly for years then there's no need to change anything as this is only for new installs. Let me know if there are any issues. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
ncameron wrote: > There's no other 'always on' device unfortunately. > > But - er - what's Bash? > > Neil Think of bash as a programming language the script is written in. It needs your system to have an interpreter installed to run it. If you are comfortable using ssh to access your nas then you could try running the ngrok executable manually / interactively just to see if it works. If it does then we can point you to configuring it. All the script does is download it and then configure it with the required parameters. But if none of this makes sense to you and you only interact with your nas from a browser then this will be a non-starter. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
ncameron wrote: > > But - er - what's Bash? > Yet another shell ... although that would make it Yash. Bourne Again Shell ... to replace the older Bourne Shell. Think of it as the command line interface to many Unix/Unix-like systems. Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > Its an Intel Atom so you could try the Linux 32-bit Intel download. But > that then expects bash to be available so not sure it will succeed. > > Ngrok can run on any machine in your house and point to the NAS IP > address. Is that an option? There's no other 'always on' device unfortunately. But - er - what's Bash? Neil ncameron's Profile: http://forums.slimdevices.com/member.php?userid=19249 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
ncameron wrote: > My LMS is running on my ReadyNAS 314 server. Is there a simple guide to > getting this working on that? > > Neil Its an Intel Atom so you could try the Linux 32-bit Intel download. But that then expects bash to be available so not sure it will succeed. Ngrok can run on any machine in your house and point to the NAS IP address. Is that an option? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
My LMS is running on my ReadyNAS 314 server. Is there a simple guide to getting this working on that? Neil ncameron's Profile: http://forums.slimdevices.com/member.php?userid=19249 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > Thanks for your help with this. > I've tried the recommended changes in the link, but the same errors > cropped up. > I'm gonna give this up I think. If im struggling this much to get it > going, i've got no hope of maintaining it when things go wrong... :) Understandable. If you have any Linux box lying around you can run ngrok on that and point it to your LMS server. Might still allow you to use the skills. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > Those look to be the correct files or are they empty? What happens if > you run that .cmd file? > > Interesting that you couldn't perform https fetches from within your > PowerShell environment but it seems (?) to have grabbed the remote files > despite the warning (maybe a fallback to http). > > p.s. This might help > https://stackoverflow.com/questions/49800534/powershell-could-not-create-ssl-tsl-secure Thanks for your help with this. I've tried the recommended changes in the link, but the same errors cropped up. I'm gonna give this up I think. If im struggling this much to get it going, i've got no hope of maintaining it when things go wrong... :) Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > 35799 > > This is wahts in my C:\ngrok folder: > > 35800 Those look to be the correct files. What happens if you run that .cmd file? Interesting that you couldn't perform https fetches from within your PowerShell environment but it seems to have grabbed the remote files despite the warning (maybe a fallback to http). philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > I'm on 5.1.19041.1237 myself so that might do the trick ! 35799 This is wahts in my C:\ngrok folder: 35800 +---+ |Filename: Attempt3.JPG | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35800| +---+ Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > It was 2.0... :) > > Upgrading to 5.1 now, will have another go after that. I'm on 5.1.19041.1237 myself so that might do the trick ! philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > Looks like the version of PowerShell thats installed on your system is > from the 19th century [emoji102] It was 2.0... :) Upgrading to 5.1 now, will have another go after that. Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > 35788 Looks like the version of PowerShell thats installed on your system is from the 19th century [emoji102] philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > When the setup.ps1 script failed, what error message(s) did it show (in > red)? > > Regarding your YML, the region does not matter so much as it only > affects latency to a small extent. Pick whatever is near you. > > It would be interesting to know what that pop up said when you try to > run ngrok. Are you sure you got the correct 32-bit or 64-bit ngrok > binary for your version of Windows? 35788 +---+ |Filename: Attempt1.JPG | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=35788| +---+ Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > So I attempted the script again, and it failed, so I thought i'd go > through the manual set-up here: > https://smartskills.tech/lmslitesetup/setuphelp-old.html > > All is well, until I get to Part III where i've edited the .yml and I > attempt to run it by typing: start "" ngrok.exe start lmstunnel > A command prompt box pops up, then immediately disappears. > > This is the structure of my .yml file: > > authtoken: MyAuthtoken-Working because the previous test worked. > web_addr: 0.0.0.0:4040 > region: eu (Does this matter? It wasnt specified in the previous section > of the instructioins, so I believe it defaulted to 'us'. I've tried > both. > tunnels: > lmstunnel: > proto: http > bind_tls: true > inspect: false > addr: http://192.168.1.65:9000 > auth: My username:My password > > Any idea where i'm going wrong? When the setup.ps1 script failed, what error message(s) did it show (in red)? Regarding your YML, the region does not matter so much as it only affects latency to a small extent. Pick whatever is near you. It would be interesting to know what that pop up said when you try to run ngrok. Are you sure you got the correct 32-bit or 64-bit ngrok binary for your version of Windows? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
So I attempted the script again, and it failed, so I thought i'd go through the manual set-up here: https://smartskills.tech/lmslitesetup/setuphelp-old.html All is well, until I get to Part III where i've edited the .yml and I attempt to run it by typing: start "" ngrok.exe start lmstunnel A command prompt box pops up, then immediately disappears. This is the structure of my .yml file: authtoken: MyAuthtoken-Working because the previous test worked. web_addr: 0.0.0.0:4040 region: eu (Does this matter? It wasnt specified in the previous section of the instructioins, so I believe it defaulted to 'us'. I've tried both. tunnels: lmstunnel: proto: http bind_tls: true inspect: false addr: http://192.168.1.65:9000 auth: My username:My password Any idea where i'm going wrong? Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > Does it have Powershell? > > 90% of the work is creating the c:\ngrok directory and populating it > (likely working) The final 10% which is probably failing for you is just > making a shortcut to ngrok_autostart.cmd and placing it into whatever > the startup items folder is called on that version of Windows so that it > will run at boot. It does have powershell, yes. I'll reattempt, and let you know what files and folders I end up with. Thanks for your help. Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Budge74 wrote: > Hi, > Any chance of tweaking this (or pointing me in the right direction to > tweak myself) to work on my old Hp MicroServer running Windows Server > 2008R2 (don't laugh). > I tried using the Win10 install, but it looked like the shell script was > trying to copy to non-existent folders.. Does it have Powershell? 90% of the work is creating the c:\ngrok directory and populating it (likely working) The final 10% which is probably failing for you is just making a shortcut to ngrok_autostart.cmd and placing it into whatever the startup items folder is called on that version of Windows so that it will run at boot. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Hi, Any chance of tweaking this (or pointing me in the right direction to tweak myself) to work on my old Hp MicroServer running Windows Server 2008R2 (don't laugh). I tried using the Win10 install, but it looked like the shell script was trying to copy to non-existent folders.. Budge74's Profile: http://forums.slimdevices.com/member.php?userid=37692 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
The easy-installer script now has a pulldown/selector which includes *MacOS* (both Intel and ARM64 variants) to setup ngrok to run as a daemon on a Mac. The setup.sh file that will be downloaded from the configurator needs to be run from a Terminal. Hope that's not too scary for Mac users :rolleyes: The online instructions have been updated accordingly. If you already have ngrok running on some other platform and just want to play with this, select a different ngrok region code to your current install or you'll get an error that you cannot run more than one instance of ngrok while on the free plan. Enjoy! philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
valnar wrote: > Before I blow up my server, does anyone know if this works under Windows > 8.1? My LMS installation is on Win8.1 and that's unlikely to change. Should work just fine. Just watch for any error messages in red when running the script and let me know so I can sort it out for you. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Before I blow up my server, does anyone know if this works under Windows 8.1? My LMS installation is on Win8.1 and that's unlikely to change. valnar's Profile: http://forums.slimdevices.com/member.php?userid=59626 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
paul- wrote: > Just run the 3 sed commands with sudo. But probably not much harm in > running the script as root. Just be aware that tce-load cannot run with > root permissions, so be sure to preface with "sudo -u tc " if you > run the script as root. > > The other thing I would change. Set your working path to > /tmp/$packagename That way an odd problem doesn't leave stuff in the > users home directory to blowup the backup. Download the file into /tmp > too. Thanks Paul. I've put an inline sudo in front of the sed commands and also changed the working path and download path into /tmp. Verified that it all still works on a fresh pCP install :cool: philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Just run the 3 sed commands with sudo. But probably not much harm in running the script as root. Just be aware that tce-load cannot run with root permissions, so be sure to preface with "sudo -u tc " if you run the script as root. The other thing I would change. Set your working path to /tmp/$packagename That way an odd problem doesn't leave stuff in the users home directory to blowup the backup. Download the file into /tmp too. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
paul- wrote: > The /opt directory is supposed to be > > root:staff owned > 775 + suid bit on the group. Thanks @paul-. I'm just wondering if there would be any harm in always running the ngrok setup script with sudo so that it will succeed when people have managed to alter their standard pCP ownerships/permissions? Here's the code: Code: #!/bin/sh uuid=abc123 token=def456 srvip=192.168.1.1:9000 uname=phil pswd=blablabla nickname=pcp region=us packagename=ngrok workingdir=~/$packagename rootpath=$workingdir/usr/local/bin tcz=~/$packagename.tcz echo -e "\n--> Setting up ngrok to enable secure cloud access to LMS for the MediaServer and/or LMS-lite skills\n" mkdir -p $rootpath echo -e "\n--> Fetching 64-bit ngrok tgz\n" archive=$packagename.tgz wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.tgz -O $archive echo -e "\n--> Extracting ngrok from tar archive" tar -x -f $archive -C $rootpath echo -e "\n--> Fetching squashfs-tools\n" tce-load -w squashfs-tools.tcz tce-load -i squashfs-tools.tcz echo -e "\n--> Making ngrok tcz package\n" mksquashfs $workingdir/ $tcz echo -e "\n--> Tidying up:\n" rm $archive rm -Rf $workingdir/ echo -e "--> Moving ngrok tcz package into tce/optional\n" TCEMNT="/mnt/$(readlink /etc/sysconfig/tcedir | cut -d '/' -f3)" mv $tcz $TCEMNT/tce/optional echo -e "--> Loading ngrok.tcz for availability without restart\n" tce-load -i ngrok.tcz echo -e "\n--> Adding ngrok tcz package to tce/onboot.lst so that it is available at boot\n" sed -i "/^$packagename.tcz/d" $TCEMNT/tce/onboot.lst echo $packagename.tcz >> $TCEMNT/tce/onboot.lst echo -e "--> Fetching autostart script from smartskills.tech\n" wget -q https://smartskills.tech/downloads/ngrok_startup.sh -O /home/tc/ngrok_startup.sh sed -i 's/^TUNNELNAME="..."/TUNNELNAME="pcp"/' /home/tc/ngrok_startup.sh sed -i 's/^UUID="..."/UUID="bed26d74d2e47a4c69765e85cc87377cdec999730095458e"/' /home/tc/ngrok_startup.sh chmod +x /home/tc/ngrok_startup.sh echo -e "--> Adding autostart entry to /opt/bootlocal.sh\n" sed -i '/^\/bin\/sh \/home\/tc\/ngrok/d' /opt/bootlocal.sh sed -i '3 a/bin/sh /home/tc/ngrok_startup.sh &' /opt/bootlocal.sh sed -i '4 a' /opt/bootlocal.sh yml=~/.ngrok2/ngrok.yml echo -e "--> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [$nickname]\n" mkdir -p ~/.ngrok2 echo "authtoken: $token" > $yml echo "web_addr: 0.0.0.0:4040" >> $yml echo "region: $region" >> $yml echo "tunnels:" >> $yml echo " $nickname:" >> $yml echo "proto: http" >> $yml echo "bind_tls: true" >> $yml echo "inspect: false" >> $yml echo "addr: $srvip" >> $yml echo "auth: \"$uname:$pswd\"" >> $yml echo -e "--> Backing up changes using pcp bu.\n" pcp bu sh ~/ngrok_startup.sh I tend to only use sudo when it's really necessary but this is the second user who had this script fail due to a permissions error on a 'dirty' pCP install. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
The /opt directory is supposed to be root:staff owned 775 + suid bit on the group. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Bogg wrote: > No change when trying without a reboot - > > Code: > > > tc@pCP:~$ cd /opt > tc@pCP:/opt$ sudo chown tc:staff bootlocal.sh > tc@pCP:/opt$ cd ~ > tc@pCP:~$ sh setup.sh > > > sed: can't create temp file '/opt/bootlocal.sh6tG6uu': Permission denied > sed: can't create temp file '/opt/bootlocal.sh4ag2uy': Permission denied > sed: can't create temp file '/opt/bootlocal.shQgibYE': Permission denied > --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] > > > The issue is then with the /opt directory itself. But as Im not a pCP guru I dont know what the permissions and ownership on that directory normally are. Maybe ask over at the pCP forum. Worst case, start with a clean pCP install and do any other install stuff you recently did without the sudo. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
No change when trying without a reboot - Code: tc@pCP:~$ cd /opt tc@pCP:/opt$ sudo chown tc:staff bootlocal.sh tc@pCP:/opt$ cd ~ tc@pCP:~$ sh setup.sh sed: can't create temp file '/opt/bootlocal.sh6tG6uu': Permission denied sed: can't create temp file '/opt/bootlocal.sh4ag2uy': Permission denied sed: can't create temp file '/opt/bootlocal.shQgibYE': Permission denied --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Bogg wrote: > Hi, I've done the above > > Code: > > > tc@pCP:~$ cd /opt > tc@pCP:/opt$ sudo chown tc:staff bootlocal.sh > tc@pCP:/opt$ > > > > > I then do pcp br, then run the script again. But still get the exact > same problems as before - > > > Code: > > > sed: can't create temp file '/opt/bootlocal.shzizocx': Permission denied > sed: can't create temp file '/opt/bootlocal.shKZBUqA': Permission denied > sed: can't create temp file '/opt/bootlocal.shyZHzKI': Permission denied > --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] > > --> Backing up changes using pcp bu. > > > Sounds like some other startup script you are using has sudoitis and is undoing the chown. Try not doing pcp br after issuing the command and run the setup script immediately while things are still owned by tc:staff. Many people use sudo for just about everything but any files handled when a script is run with sudo wil subsequently be owned by root. Always ask yourself if sudo is really needed. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
philchillbill wrote: > If you do 'cd /opt' and then 'sudo chown tc:staff bootlocal.sh' (both > commands without the quotes) then bootlocal.sh will be editable by tc. > The script should then run fine. Hi, I've done the above Code: tc@pCP:~$ cd /opt tc@pCP:/opt$ sudo chown tc:staff bootlocal.sh tc@pCP:/opt$ I then do pcp br, then run the script again. But still get the exact same problems as before - Code: sed: can't create temp file '/opt/bootlocal.shzizocx': Permission denied sed: can't create temp file '/opt/bootlocal.shKZBUqA': Permission denied sed: can't create temp file '/opt/bootlocal.shyZHzKI': Permission denied --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] --> Backing up changes using pcp bu. Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Bogg wrote: > > I think it is a permissions issue. I don't recall changing the > permissions for /opt/bootlocal.sh, but I do recall having permissions > issues for the display control script, and maybe the sqlite control > script too. I started with a standard pcp installation, so I'm unsure > why I seem to get permission issues. > > Unfortunately I'm too stupid to work them out myself, so if you could > help me with the actual code to copy and paste it would be most helpful. > > > Here's the likely problem from the script rerun - > > > Code: > > > --> Adding autostart entry to /opt/bootlocal.sh > > sed: can't create temp file '/opt/bootlocal.shfdHyWV': Permission denied > sed: can't create temp file '/opt/bootlocal.shnvI1x3': Permission denied > sed: can't create temp file '/opt/bootlocal.shlgWw98': Permission denied > --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] > > --> Backing up changes using pcp bu. > > > If you do 'cd /opt' and the 'sudo chown tc:staff bootlocal.sh' (both commands without the quotes) then bootlocal.sh will be editable by tc. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Hi, Thanks for your swift reply. I think it is a permissions issue. I don't recall changing the permissions for /opt/bootlocal.sh, but I do recall having permissions issues for the display control script, and maybe the sqlite control script too. I started with a standard pcp installation, so I'm unsure why I seem to get permission issues. Unfortunately I'm too stupid to work them out myself, so if you could help me with the actual code to copy and paste it would be most helpful. Here's the likely problem from the script rerun - Code: --> Adding autostart entry to /opt/bootlocal.sh sed: can't create temp file '/opt/bootlocal.shfdHyWV': Permission denied sed: can't create temp file '/opt/bootlocal.shnvI1x3': Permission denied sed: can't create temp file '/opt/bootlocal.shlgWw98': Permission denied --> Creating ngrok.yml in /home/tc/.ngrok2/ for tunnel [SqDisplayLMSTunnel] --> Backing up changes using pcp bu. Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Bogg wrote: > Hi, I've installed this today on pcp v7.0.1 running on wifi, the same > pcp is running lms. > The first time the script runs everything works as expected. Alexa > discovers and can control devices, I can use the tunnel link and see my > lms from the internet. > Unfortunately it doesn't survive a reboot. The tunnel link says > Tunnel {MYTUNNEL}.eu.ngrok.io not found > > This is my /opt/bootlocal.sh > > Code: > > > #!/bin/sh > # put other system startup commands here > > echo "Starting SQLITE-control.sh from /opt/bootlocal.sh..." | tee -a /var/log/pcp_b> > /home/tc/SQLITE-control.sh find M6 & > GREEN="$(echo -e '\033[1;32m')" > > echo > echo "${GREEN}Running bootlocal.sh..." > #pCPstart-- > /usr/local/etc/init.d/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log > #pCPstop-- > > ### BH1750 start -- > # Enabling kernel module i2c-dev > /sbin/modprobe i2c-dev > # starting shell script to control display brightness > /home/tc/lux/display-control.py > ### BH1750 stop -- > > > > > I expected something about ngrok in here, but I don't know what. setup.sh should have added a single line to bootlocal.sh - maybe it did but the final pcp bu step failed? Run setup.sh again and watch for any error messages. When it completes, do a pcp bu yourself. Any error? If that fails, the correct entry is /bin/sh /home/tc/ngrok_startup.sh But you should try to understand why the setup process failed. Did you change permissions or ownership in the past? philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Hi, I've installed this today on pcp v7.0.1 running on wifi, the same pcp is running lms. The first time the script runs everything works as expected. Alexa discovers and can control devices, I can use the tunnel link and see my lms from the internet. Unfortunately it doesn't survive a reboot. The tunnel link says Tunnel {MYTUNNEL}.eu.ngrok.io not found This is my /opt/bootlocal.sh Code: #!/bin/sh # put other system startup commands here echo "Starting SQLITE-control.sh from /opt/bootlocal.sh..." | tee -a /var/log/pcp_b> /home/tc/SQLITE-control.sh find M6 & GREEN="$(echo -e '\033[1;32m')" echo echo "${GREEN}Running bootlocal.sh..." #pCPstart-- /usr/local/etc/init.d/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log #pCPstop-- ### BH1750 start -- # Enabling kernel module i2c-dev /sbin/modprobe i2c-dev # starting shell script to control display brightness /home/tc/lux/display-control.py ### BH1750 stop -- I expected something about ngrok in here, but I don't know what. Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Amazon is trying to make skill setup and account-linking easier, and a while back they introduced so-called *app-to-app* account linking. The idea is that you don't have to visit the Alexa app or web-portal to perform account-linking, but instead can do it from the app or website of the skill author. I now have it live for both skills and links are available in the online setup-help pages that will automatically perform account-linking for you. There's no more need to paste your ngrok URL and chosen credentials into the landing page at the Alexa portal. Instead you will log in to your regular Amazon account (if you still have a valid cookie from the last time you logged in then you won't even need to do this) and authorize Amazon to link the skill(s) in question by just clicking on a pop-up. It's a complicated flow under the hood with 3 different bouts of oauth2 to-and-fro-ing but it's very secure and worked well in my testing. MediaServer has now been upgraded to use full authorization code grant instead of implicit tokens (LMS-lite already had that). If you encounter any problems, please report them here as I will not see anything in the skill logs to indicate failed attempts. This is as easy as skill setup will ever get until Amazon releases the promised capability to use an Echo as a native proxy device inside your LAN (announced last Sept as 'coming soon') :cool: 34110 +---+ |Filename: apptoapp.png | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=34110| +---+ philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
The requirement to manually run the updater script AFTER linking the skills has now been relaxed, as your uuid is already in the setup script when you download it. This means that setup is now a *single-pass* process and no restart of e.g. pCP is required (thanks @chill !). On Windows 10, the desktop shortcut is no longer created or necessary. All this magic will only work in modern browsers with -localStorage- enabled and functioning. If you're still on Netscape Navigator, a popup will remind you it's 2021 :rolleyes: philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Thankyou for the information. https://travelwels.com Travelling gives you the opportunity to step away from the daily grind. The new events and experiences help rewire your brain, hence boosting your mood and self-confidence. For travelling or exploring the world please go through. travelwels's Profile: http://forums.slimdevices.com/member.php?userid=71432 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
Just installed and it works like a charm. Much easier set up! Thanks very much. FYI - I had to do it twice. The 1st time, I didn't start the install from pi/home and when I restarted Max2Play it didn't work anymore. Cheers! Transporter, Touch, SB3, SB2, Duet, Booms, Radios, piCorePlayer --- iPeng & Material --- LMS 8.0.1 - 1606928904 on Pi4 4GB - Max2Play --- Qobuz didjean's Profile: http://forums.slimdevices.com/member.php?userid=2900 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
raglencross wrote: > This setup is a great improvement over the original one. Just one > thing, could you please provide a link to the previous instructions to > jog the memories of us who already have ngrok installed so that we can > clean up the previous files and changes to files before doing the new > setup, if and when required. Thanks... Good idea. I've placed them at https://smartskills.tech/lmslitesetup/setuphelp-old.html That said, if you're already set up then there's no need to change a working installation just for the sake of it. The new procedure does not do anything 'better' than the old way, it's just scripted instead of manual. But for a new install, do it the new way for sure. philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
This setup is a great improvement over the original one. Just one thing, could you please provide a link to the previous instructions to jog the memories of us who already have ngrok installed so that we can clean up the previous files and changes to files before doing the new setup, if and when required. Thanks... raglencross's Profile: http://forums.slimdevices.com/member.php?userid=7239 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
[SlimDevices: Plugins] [Announce] Easy ngrok-setup for MediaServer & LMS-lite Alexa skills
33418 There's a new ::*completely-automated*:: setup procedure for deploying ngrok for use with the MediaServer and LMS-lite skills. It automatically downloads/configures ngrok and also sets it up to autostart at boot on the target system. Your account-linking UUID is automagically deployed to update the skill(s) when tunnel details change (i.e. upon ngrok restart or system reboot). There's no more manually creating systemd services or tweaking Python/Perl updaters because the installer handles -everything- :cool: To make it as easy to use as possible, the user visits a web form (see above) and enters details which are then pre-populated into a downloaded installer script. Your choice of *platform/OS* in the form not only determines what version of the ngrok binary to download for you, it also results in a script that matches the *native capabilities* of the target platform/OS so there are no dependencies to install. The process is currently available for: * *pCP*: with a -sh- script as installer that builds a tcz package and adds an entry to /opt/bootlocal.sh for autostart. * *Debian-Linuxes*: with a -bash- script as installer for distros like Raspberry Pi OS, Max2Play, Ubuntu - it uses systemd to daemonize ngrok. * *Windows10*: with a -PowerShell- script as installer that runs ngrok as a hidden background process at boot. The old Python/Perl script for updating tunnel details to the skills has been superseded by a native sh/bash/pwsh script that the installer creates on your system. The process is fully documented in the new *instructions* at https://smartskills.tech/lmslitesetup (one installer handles both skills). When filled out, the form might look as follows: 33419 For noobs evaluating the skills, the recommended platform is probably now Windows 10. There's no need to use ssh to transfer the installer to a headless machine - it's just right-click and run. Remember, ngrok on a PC will happily proxy for a NAS or pi elsewhere in your LAN. Many thanks to @chill for the pioneering work on the pCP platform script ! p.s. A MacOS version is being worked on... +---+ |Filename: 2.png| |Download: http://forums.slimdevices.com/attachment.php?attachmentid=33419| +---+ philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920 View this thread: http://forums.slimdevices.com/showthread.php?t=113966 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins