• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Standalone fog server on a laptop umbutu 18.04

    Scheduled Pinned Locked Moved
    Tutorials
    5
    19
    2.4k
    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.
    • F
      fredlwal @Wayne Workman
      last edited by

      @Wayne-Workman so once i’m connected to the internet I can then keep it on a separate network.

      1 Reply Last reply Reply Quote 0
      • F
        fredlwal @Wayne Workman
        last edited by

        @Wayne-Workman
        https://photos.app.goo.gl/psnhnEwpZHbbVGtM9

        Here is a screenshot of the issue.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @fredlwal Copying the script over is not enough. You need to make the file executable to be able to run it. Just guessing that this is missing here.

          sudo -i
          cd /home/tech
          chmod +x install.sh MainScript.sh
          ./install.sh
          

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          F 1 Reply Last reply Reply Quote 1
          • F
            fredlwal @Sebastian Roth
            last edited by

            @Sebastian-Roth @Wayne-Workman So do I install the latest fog install and then after that run the install.sh file? I’m getting a Syntax error: newline unexpected.

            Thanks

            Q 1 Reply Last reply Reply Quote 0
            • Q
              Quazz Moderator @fredlwal
              last edited by

              @fredlwal I’m guessing the problem is that install.sh has no shebang line, so the system messes up.

              Just a guess, though.

              sudo bash install.sh
              

              might work?

              Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Quazz
                last edited by

                @Quazz et al.

                Where is this install.sh file coming from? We have installfog.sh which has the #! code already.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                Q 1 Reply Last reply Reply Quote 0
                • Q
                  Quazz Moderator @Tom Elliott
                  last edited by

                  @Tom-Elliott https://github.com/FOGProject/fog-community-scripts/tree/master/MakeFogMobile

                  1 Reply Last reply Reply Quote 1
                  • Wayne WorkmanW
                    Wayne Workman @Quazz
                    last edited by

                    @Quazz I think when there is not a shebang, the linux terminal interprets it as a bash script. I looked back in the commit history, there has never been a shebang in that script… it’s worked several times. At any rate, I’m going to add it.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    Q Tom ElliottT 2 Replies Last reply Reply Quote 1
                    • Q
                      Quazz Moderator @Wayne Workman
                      last edited by Quazz

                      @Wayne-Workman Theoretically it will use the current shell to try and execute it, yes.

                      But unexpected newline is typical of a wrong interpretator in my experience.

                      1 Reply Last reply Reply Quote 1
                      • F
                        fredlwal
                        last edited by

                        @Quazz @Wayne-Workman @Sebastian-Roth

                        So I downloaded the updated install.sh and here is what I get.

                        https://photos.app.goo.gl/ZsxvwtsY2AU9AyY67

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by

                          @fredlwal How did you download that script file? See the error means you downloaded a HTML file. Maybe this link will help you: https://github.com/FOGProject/fog-community-scripts/raw/master/MakeFogMobile/install.sh and https://github.com/FOGProject/fog-community-scripts/raw/master/MakeFogMobile/MainScript.sh

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          F 1 Reply Last reply Reply Quote 1
                          • Tom ElliottT
                            Tom Elliott @Wayne Workman
                            last edited by

                            @Wayne-Workman while most distros tend to default the shell to /bin/bash, Ubuntu and Debian default to /bin/ash which is not the same as bash.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 1
                            • F
                              fredlwal @Sebastian Roth
                              last edited by

                              @Sebastian-Roth I just right clicked and did a save as link all files with the .sh ext.

                              1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman
                                last edited by

                                I put in a shebang. It should work now, please re-download the install file.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post

                                157

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project