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.

    I broke something

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 3 Posters 1.4k Views 3 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.
    • BKeyportB Offline
      BKeyport Module Developer
      last edited by

      I moved my personal configs to another directory and symlinked them in their proper places.

      This gives me a guide to get up and running after doing something stupid… Takes reinstall time from several hours to about 30 minutes.

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

      1 Reply Last reply Reply Quote 0
      • K Offline
        killerjoe34
        last edited by

        @BKeyport said in I broke something:

        symlink

        I’m not sure to exactly get what a simlink is, what’s the difference with a simple copy ?

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

          @killerjoe34 linux file systems give you the ability to create a file as a LINK to another file somewhere else…

          so you only have one copy, but multiple instances… changing the root file makes it look like all the linked files changed too

          see the ln command

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • K Offline
            killerjoe34
            last edited by

            Ok, I read the man page but still don’t get it, even in french :D :(
            You’re saying that if the root file is modified, it also modifies the linked one(s) or does it make another copy ?
            Cause it would be perfect in that case, keeping track of every modification to be able to step back.

            Thanks for your explanations :)

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

              @killerjoe34 no, the link makes it look like all the secondary files ARE the root file. so actually changing ANY changes them all, there is ONLY one actual file. but erasing the linked file does NOT erase the root file.

              try this

              mkdir ~/foo
              mv ~/MagicMirror/config/config.js foo
              cd ~/MagicMirror/config
              ln -s ~/foo/config.js config.js
              

              now you have your file in ~/foo
              but it LOOKS like it is also in ~/MagicMirror/config

              edit one, change the date/time format
              restart MM
              voila
              edit the other one and change it back
              restart MM

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                killerjoe34
                last edited by

                @sdetweil said in I broke something:

                try this

                Wow great :)
                Thanks a lot, I’ll use that !

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

                  @killerjoe34 you can also link folders

                  if you do (in the config folder where I just set a link)

                  ls -laF

                  will show u the file is linked, and where to

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Reply Quote 1
                  • K Offline
                    killerjoe34 @sdetweil
                    last edited by

                    @sdetweil said in I broke something:

                    @killerjoe34 you can also link folders

                    if you do (in the config folder where I just set a link)

                    ls -laF

                    will show u the file is linked, and where to

                    Ok, I’ll have a look at that, thx again !

                    1 Reply Last reply Reply Quote 0
                    • 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