MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    SSH Tutorial

    Scheduled Pinned Locked Moved General Discussion
    15 Posts 6 Posters 7.4k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      blacter
      last edited by

      Is there a tutorial somewhere that explains how to set up SSH so I can control/modify my MM from my Mac? Thanks.

      S lavolp3L 3 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @blacter
        last edited by sdetweil

        @blacter open the preferences/Raspberry PI configuration/interfaces tab on the pi top. left menu.

        check the ssh box,
        save and extra and restart your pi

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • B Offline
          blacter
          last edited by

          Thanks. I now can see the MM on my terminal. From there, how do I modify the config.js file?

          1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @blacter
            last edited by

            @blacter @sdetweil FYI: you can auto-enable ssh on a raspberry pi when setting it up by putting a blank file with the name “ssh” (no extension) into the boot partition.
            When you start the pi, it will find and remove the file and enable ssh.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @blacter
              last edited by

              @blacter
              also, you are supposed to be able to have a ‘disk view’ over the remote ssh disk with

              https://osxfuse.github.io/

              I can’t get it to work on catalina 15.5 at the moment

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @lavolp3
                last edited by

                @lavolp3 yeh, tricky crap… just click the buttons (unless u are making 100 of these disks)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                lavolp3L 1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @sdetweil
                  last edited by

                  @sdetweil said in SSH Tutorial:

                  @lavolp3 yeh, tricky crap… just click the buttons (unless u are making 100 of these disks)

                  it is the best way to run a pi headlessly. I never use the GUI.

                  How to troubleshoot modules
                  MMM-soccer v2, MMM-AVStock

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @lavolp3
                    last edited by

                    @lavolp3 i don’t use the gui either after initial setup…

                    but u can’t run headless AND have MM on it… (unless in serveronly mode)

                    use ssh ans sftp file system over…
                    winscp and bitvise clients…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    lavolp3L 1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @sdetweil
                      last edited by

                      @sdetweil said in SSH Tutorial:

                      but u can’t run headless AND have MM on it… (unless in serveronly mode)

                      yeah you got me it’s not really headless.
                      I set up the pi on my laptop, start it and install the mirror via ssh already. So I don’t have to attach a keyboard to the pi.

                      How to troubleshoot modules
                      MMM-soccer v2, MMM-AVStock

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @lavolp3
                        last edited by

                        @lavolp3 absolutely!.. I only use the actual pi keyboard/mouse when absolutely neccessary… got one of the little combo keyboard/mouse things. but still a pain

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          blacter
                          last edited by

                          Okay, I’m connected to the MagicMirror on my Mac’s terminal. Is there a way I can now open the config.js file in a text editor on my Mac?

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @blacter
                            last edited by

                            @blacter if u install those other components then you open a sshfs session to have a file browser over the pi disk, then yes,

                            short of that u have to use the editor ON the pi… text mode

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sojourner
                              last edited by

                              @blacter If you have interest/time … the VS Code editor runs on macOS and has a nice ‘remote ssh’ functionality to edit files remotely. While it has a lot of “programmer” functions, it’s not a bad editor to help anyone. (And this, from a guy who prefers a command line.)

                              R 1 Reply Last reply Reply Quote 1
                              • R Offline
                                RoddyJoff @sojourner
                                last edited by

                                @sojourner Thanks for suggesting this, I am now using it and it makes remote code editing a breeze.

                                For those wishing to use it, after installing VS Code read this article to enable remote editing.

                                [https://petri.com/how-to-edit-linux-files-remotely-in-windows-using-visual-studio-code](link url)

                                Thanks again.

                                1 Reply Last reply Reply Quote 0
                                • BKeyportB Offline
                                  BKeyport Module Developer
                                  last edited by

                                  There’s also lots of other ways to get remote access to the Pi so you can edit with normal editors and save there.

                                  SAMBA (easy, IMO), or other tools to create a share… Just search and ye shall find.

                                  The "E" in "Javascript" stands for "Easy"

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1 / 1
                                  • First post
                                    Last post
                                  Enjoying MagicMirror? Please consider a donation!
                                  MagicMirror created by Michael Teeuw.
                                  Forum managed by Sam, technical setup by Karsten.
                                  This forum is using NodeBB as its core | Contributors
                                  Contact | Privacy Policy