ngrok terminal commands by nervous user

I am attempting to get remote viewing of my home security camera set up I have downloaded an application called ngroc. While trying to explain the problem in this post, which involved me copying and pasting a couple of terminal commands, some of this text is coming out red. However, I digress. One of the commands is "./ngrok authtoken 1lTGQapgOqKzY1R3koot8OMV56r_5MgvNca8LagRd4aso48pZ" which offers plenty of scope for typing errors. Can I ruin my iMac if I get things wrong? Have I already damaged it because I notice that some of this text is not running properly into the next line


Posted on Dec 10, 2020 8:41 AM

Reply

Similar questions

6 replies

Dec 10, 2020 9:47 AM in response to Ken W

Enter the text of your message. When you want to show terminal commands or code, then use the code insertion tool <> on this editor panel for that purpose, and then after the content is posted, press return to open another space below it, and then click the <> icon again to terminate the code insertion. The inserted code may have bizarre coloration, but the text of your message will not.

Dec 10, 2020 11:01 AM in response to John Galt

Thank you for your input. You echo my own natural caution about proceeding. I have downloaded what appears to be a respected developers application for viewing my camera and detecting motion. The developer is BenSoftware and the application is SecuritySpy. The ngrok application was recommended on the developers own forum pages (http://bensoftware.com/blog/remote-access-via-cellular-internet-connection/) as a way to overcome the problems that the current generation of cell phones have in accessing live camera footage when away from home. I have no idea why my original post came out with coloured text and appeared as one line only without text rollover to the next line. Part of my reason for replying to you is to see whether this post gets sent correctly. As a side comment, the ngrok application seems to operate by terminal command lines only. I have never experienced this before and am really out of my depth with terminal commands.

Dec 10, 2020 11:10 AM in response to VikingOSX

Thank you for your input. Are you saying that the bizarre look of my original post (All in one line and having some coloured text) was because my text contained a line of terminal code? Sorry for appearing so dim but I am really out of my depth here. I suppose that I am having trouble accepting that a line of quoted terminal code can have an effect outside of the terminal application itself.

Dec 10, 2020 1:56 PM in response to Ken W

If I typed this text, and then clicked the <> code tool, it would suffer the same fate as the text in your original post. That code tool doesn't care what text it is, or where it came from, it will spew color on the text.


Here is a proper use of the code tool. Save the following in a text file (e.g. lsd.sh) and run from the Terminal on a file as

./lsd.sh foo.txt


#!/bin/bash
#
# Syntax: http://www.real-world-systems.com/docs/stat.1.html
#    and: man stat
# See: stat(1), strftime(3)

for file in "$@"
do
    stat -t '%Y-%m-%d %X' -f '%n%Sp%T %z %Su %Sg %N %SY %n Last Access:        %Sa %n Last Modify:        %Sm %n Last inode change:  %Sc %n Birth of inode:     %SB%n' "${file}"
done
printf "\n"
exit 0


Dec 10, 2020 11:18 AM in response to Ken W

The ngrok tool and service looks safe. I had been looking for something like this in fact. I have a similar service setup through my AWS account, but this would be much cheaper and I could use it for additional services.


That being said, it is a pretty advanced concept, especially if you aren’t used to Terminal commands. I think it is perfectly safe.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ngrok terminal commands by nervous user

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.