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.

    (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    23 Posts 2 Posters 9.6k Views 2 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.
    • S Do not disturb
      sdetweil @bachoo786
      last edited by

      @bachoo786 install script does it for you…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @bachoo786
        last edited by

        @bachoo786 could you do me a favor before u plug in a monitor,

        can you do

        pgrep Xorg 
        

        from the ssh terminal…

        I’m guessing it should return nothing…

        my new run-start.sh script in next release, will detect text mode and start your installation in serveronly automagically.,! (pm2 just starts the script)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bachoo786 @sdetweil
          last edited by bachoo786

          @sdetweil yeah it returned nothing.

          so shall I follow your script i.e. https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer
          and reinstall MagicMirror?

          Do I have to worry about installing pm2? will Magic Mirror run automatically if I was to reboot my raspberry? etc?

          to be fair I want to install and run Magic Mirror on my raspberry. I suppose that is server mode? and not client mode? whats the difference sorry ?

          S 3 Replies Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @bachoo786
            last edited by

            @bachoo786 you don’t need to reinstall… you are ok… just need a display on the 4 or run server only…

            the new code isn’t used on my install except for pi0, which won’t work anymore without some changes

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @bachoo786
              last edited by

              @bachoo786 said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:

              yeah it returned nothing.

              awesome! thanks

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                bachoo786 @sdetweil
                last edited by

                @sdetweil what is server mode and client mode? I dont understand the difference. Can you please explain? thanks.

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @bachoo786
                  last edited by

                  @bachoo786 said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:

                  Do I have to worry about installing pm2? will Magic Mirror run automatically if I was to reboot my raspberry? etc?

                  the current installation only tries to run on the real display… YOU have to figure it out otherwise…
                  (which we are doing here in this topic)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    bachoo786 @sdetweil
                    last edited by

                    @sdetweil I am really confused buddy.

                    lets start again please. I install mm using the script, what do I do next? do I need to worry about pm2? I suppose installing using the script installs MM as the server on the raspberry pi?

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @bachoo786
                      last edited by

                      @bachoo786 sure…

                      MagicMirror is a web application.

                      it can be run in two different models

                      1. the browser and ‘web server’ are the same app, on the same machine
                        other machines can access the ‘web server’ part too

                      2. the mirror is run without a display (server only), and some browser somewhere is used to
                        access the ‘web server’

                      you might do 2 where u want to provide Mirror access to multiple systems but don’t need it where the pi is installed…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        bachoo786 @sdetweil
                        last edited by

                        @sdetweil said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:

                        the mirror is run without a display (server only), and some browser somewhere is used to
                        access the ‘web server’

                        you might do 2 where u want to provide Mirror access to multiple systems but don’t need it where the pi is installed…

                        ok makes sense. I normally access the mirror by port forwarding my raspberry pi on port 8080 and thats how I can access it on different machines or at work. And I like it that way to be fair. Because eventually my raspberry pi 4 will be inside the 2 way mirror running the Magic Mirror software.

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @bachoo786
                          last edited by

                          @bachoo786 there is only one install…

                          but two ways to run…

                          but if u don’t have a display, then u are forced into serveronly mode

                          from the readme

                          https://github.com/MichMich/MagicMirror#server-only

                          from manual installation
                          https://github.com/MichMich/MagicMirror#manual-installation

                          Manual Installation
                          Download and install the latest Node.js version:
                          curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                          sudo apt install -y nodejs
                          Clone the repository and check out the master branch: git clone https://github.com/MichMich/MagicMirror
                          Enter the repository: cd MagicMirror/
                          Install and run the app with: npm install && npm start
                          For Server Only use: npm install && node serveronly .   // < -------
                          

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @bachoo786
                            last edited by sdetweil

                            @bachoo786 said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:

                            Because eventually my raspberry pi 4 will be inside the 2 way mirror running the Magic Mirror software.

                            well, in that model, typically, u have both server and browser running on same machine (pi 4) inside the actual mirror enclosure on the wall), so NOT serveronly mode

                            see the forum section https://forum.magicmirror.builders/category/12/show-your-mirror
                            where people are showing their implementations, with the whole setup

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              bachoo786 @sdetweil
                              last edited by

                              @sdetweil ok so I will install like everyone else i.e. server and browser on the same machine. Thanks for sorting my head on that.

                              Now with regards to the install script I do not need to follow this link (https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror) to autostart magicmirror? as you said thats all taken care in the install script? Am i correct? or?

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @bachoo786
                                last edited by sdetweil

                                @bachoo786 no… u have pm2 which does it all… (oops, the default run-start.sh script ONLY starts in both mode, YOU have to change it to do serveronly like below)

                                u have already installed both… again there is only ONE install process, but two ways to run

                                today

                                issue the following commands (either set)
                                run both

                                cd ~/MagicMirror
                                npm start
                                

                                or
                                run serveronly

                                cd ~/MagicMirror
                                node serveronly
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                B 2 Replies Last reply Reply Quote 0
                                • B Offline
                                  bachoo786 @sdetweil
                                  last edited by

                                  @sdetweil ok I will try it when I get home mate. Thanks.

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bachoo786 @sdetweil
                                    last edited by

                                    @sdetweil hi quick question… so i connected my raspberry pi 4 4gb to hdmi o but there is no display ? do i need to do some settings? my raspberry pi doesnt display anything? is that normal for raspberry pi 4?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @bachoo786
                                      last edited by

                                      @bachoo786 i don’t know what you need to do to enable the display after booting into text mode…

                                      maybe run raspiconfig. and select boot to desktop?

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      B 1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        bachoo786 @sdetweil
                                        last edited by bachoo786

                                        @sdetweil I had to add the following in my config.txt and it works now.

                                        hdmi_force_hotplug=1
                                        hdmi_ignore_edid=0xa5000080
                                        hdmi_group=2
                                        hdmi_mode=81
                                        

                                        do you mind sharing your /boot/config.txt please?

                                        Also after doing these settings the raspberry pi doesnt connect to wifi.

                                        Its a disaster this rpi 4 tbh

                                        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
                                        • 2
                                        • 1 / 2
                                        • 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