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

    Install FOG on Arch Linux

    Scheduled Pinned Locked Moved
    Linux Problems
    5
    30
    17.5k
    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
      fripjob
      last edited by

      Hi all. I’d like to know what steps I’d need to take to install FOG on Arch, or more generally to install FOG on any given system for which no install script is provided. Thanks.

      1 Reply Last reply Reply Quote 0
      • K
        Kevin
        last edited by

        I really don’t think it’ll be that easy, but basically FOG is nothing more than a standard LAMP server with DHCP and Partimage. Unfortunately I don’t have instructions to get this working without the script.

        "The quieter you become, the more you are able to hear"

        New to FOG? Check the [URL='http://www.fogproject.org/wiki/index.php/FOGUserGuide']Wiki[/…

        1 Reply Last reply Reply Quote 0
        • F
          fripjob
          last edited by

          [quote=“Kevin, post: 11405, member: 3”]I really don’t think it’ll be that easy, but basically FOG is nothing more than a standard LAMP server with DHCP and Partimage. Unfortunately I don’t have instructions to get this working without the script.[/quote]
          I did figure whatever I did would involve converting functions in the script in some fashion. Though it’s somewhat confusing that there’s a shell script instead of just handling configuration with the package manager. I remember at least dpkg/apt-get could do a good job configuring stuff post install and would give ncurses setups for certain applications.

          1 Reply Last reply Reply Quote 0
          • B
            BryceZ
            last edited by

            The shell scripts actually call the package manager to grab all the packages and then afterward the shell script overwrites the config files with the ones FOG needs.

            Setting up FOG on a distro other than RHEL or Ubuntu is going to take some leg work. Even installing on Debian, which Ubuntu is based on, isn’t perfect with the official FOG installer, and it mostly comes down to two things: file paths and package names.

            The big problem is mostly just finding out what the packages are named in whichever distro you choose; keeping in mind that two packages in Ubuntu might actually be one package in your distro, or one Ubuntu package might be split between multiple packages on your distro.

            Once you have all the package dependencies sorted out, then you need to figure out where they store their files. Example: On Ubuntu the default web directory is /var/www/, but RHEL uses /var/www/html/ (side note: The Ubuntu Apache user is www, while the RHEL Apache user is apache).

            The FOG server needs a LAMP stack, a TFTP server, an FTP server, an NFS server, and optionally a DHCP server. Glancing at the install scripts just now I notice that it also wants an SSH server, but I don’t recall what part of FOG uses SSH…

            The distro dependent scripts, which list all the packages and file paths, are in <FOG installer directory>/lib/.

            1 Reply Last reply Reply Quote 0
            • D
              dfear
              last edited by

              I am attempting to write distro dependent scripts for Arch Linux (more specifically for Arch Linux Arm). If anyone wants to help, let me know.

              1 Reply Last reply Reply Quote 0
              • D
                dfear
                last edited by

                [quote=“BryceZ, post: 11409, member: 2”]The shell scripts actually call the package manager to grab all the packages and then afterward the shell script overwrites the config files with the ones FOG needs.

                Setting up FOG on a distro other than RHEL or Ubuntu is going to take some leg work. Even installing on Debian, which Ubuntu is based on, isn’t perfect with the official FOG installer, and it mostly comes down to two things: file paths and package names.

                The big problem is mostly just finding out what the packages are named in whichever distro you choose; keeping in mind that two packages in Ubuntu might actually be one package in your distro, or one Ubuntu package might be split between multiple packages on your distro.

                Once you have all the package dependencies sorted out, then you need to figure out where they store their files. Example: On Ubuntu the default web directory is /var/www/, but RHEL uses /var/www/html/ (side note: The Ubuntu Apache user is www, while the RHEL Apache user is apache).

                The FOG server needs a LAMP stack, a TFTP server, an FTP server, an NFS server, and optionally a DHCP server. Glancing at the install scripts just now I notice that it also wants an SSH server, but I don’t recall what part of FOG uses SSH…

                The distro dependent scripts, which list all the packages and file paths, are in <FOG installer directory>/lib/.[/quote]

                That is exactly what needs to be done for any distribution that is currently not supported.

                1 Reply Last reply Reply Quote 0
                • D
                  dfear
                  last edited by

                  Here are the result of my labour:

                  I cloned the svn repository ([url]https://svn.code.sf.net/p/freeghost/code/tags/1.2.0[/url]) and uploaded it to a git repo on bitbucket.org.

                  I have created the config.sh, functions.sh scripts for Arch Linux. I have also created the systemd service files (i.e. the initscipts).

                  PLEASE, if you want to run (or to help other run) Fog Project on Arch Linux, clone the git repo below and test on your Arch Linux install.

                  Project URL:
                  [url]https://bitbucket.org/david_fear/fog-project[/url]

                  GIT repo:
                  git clone [url]https://david_fear@bitbucket.org/david_fear/fog-project.git[/url]

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    David,

                    I’m working to include this into SVN so we will, essentially, have support for Redhat/Centos/Mageia/#buntu/Debian etc…

                    However, the only difference I’m seeing is the addition of the folder arch with config.sh and functions.sh inside. I’ve never installed Arch as I’m more of an LFS fan myself if I’m going to do all that work. Anyway, how are these files called?

                    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 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      SVN 2099 now contains the changes.

                      While I don’t have an Arch install to test on, I’m hoping it will work if you’d be willing to test/try?

                      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 0
                      • D
                        dfear
                        last edited by

                        [quote=“Tom Elliott, post: 33935, member: 7271”]David,

                        I’m working to include this into SVN so we will, essentially, have support for Redhat/Centos/Mageia/#buntu/Debian etc…

                        However, the only difference I’m seeing is the addition of the folder arch with config.sh and functions.sh inside. I’ve never installed Arch as I’m more of an LFS fan myself if I’m going to do all that work. Anyway, how are these files called?[/quote]

                        I’ve added the relevant code for Arch Linux to displayOSChoices() and doOSSpecificIncludes() in lib/common/functions.sh

                        The relevant commit is #b596753 in my git repo.

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          [quote=“dfear, post: 33955, member: 666”]I’ve added the relevant code for Arch Linux to displayOSChoices() and doOSSpecificIncludes() in lib/common/functions.sh

                          The relevant commit is #b596753 in my git repo.[/quote]

                          Is it supposed to be 2 or 3?

                          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 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            I already added 3.

                            Can you also get the output of
                            [code]cat /etc/release issue;
                            lsb_release[/code]

                            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 0
                            • D
                              dfear
                              last edited by

                              [quote=“Tom Elliott, post: 33940, member: 7271”]SVN 2099 now contains the changes.

                              While I don’t have an Arch install to test on, I’m hoping it will work if you’d be willing to test/try?[/quote]

                              When I can find the time this week I will test out an install on arch and report back.

                              1 Reply Last reply Reply Quote 0
                              • D
                                dfear
                                last edited by

                                [quote=“Tom Elliott, post: 33958, member: 7271”]I already added 3.

                                Can you also get the output of
                                [code]cat /etc/release issue;
                                lsb_release[/code][/quote]

                                Thanks. I have also made the change in my git repo.

                                Results from: cat /etc/release
                                [CODE]NAME=“Arch Linux ARM”
                                ID=archarm
                                ID_LIKE=arch
                                PRETTY_NAME=“Arch Linux ARM”
                                ANSI_COLOR=“0;36”
                                HOME_URL=“http://archlinuxarm.org/”
                                SUPPORT_URL=“https://archlinuxarm.org/forum”
                                BUG_REPORT_URL=“https://github.com/archlinuxarm/PKGBUILDs/issues”
                                [/CODE]

                                Results from: cat /etc/issue
                                [CODE]Arch Linux \r (\l)[/CODE]

                                Results from: lsb_release
                                [CODE]LSB Version: 1.4[/CODE]

                                1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by

                                  Cool,

                                  I already added that as a “guess” to how it get’s chosen, so hopefully this will mean it will work for us as well on a “default” basis.

                                  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 0
                                  • D
                                    dfear
                                    last edited by

                                    I have tested the install scripts on an Arch Linux Install in Virtualbox. The install script almost got to the end, but failed at: * Starting FOG Multicast Management Server

                                    I think the problem lies somewhere in the systemd service files I wrote.

                                    The install log file is attached.

                                    [url=“/_imported_xf_attachments/1/1218_foginstall.log.txt?:”]foginstall.log.txt[/url]

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dfear
                                      last edited by

                                      I have tested the install scripts on a fresh install of Arch Linux in Virtualbox. The install script completes, yeah; but the apache server is not running php files as php scripts; it is displaying them as txt.

                                      The install log file is attached.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dfear
                                        last edited by

                                        [quote=“dfear, post: 34185, member: 666”]I have tested the install scripts on a fresh install of Arch Linux in Virtualbox. The install script completes, yeah; but the apache server is not running php files as php scripts; it is displaying them as txt.

                                        The install log file is attached.[/quote]

                                        Couple of small fixes needed. apache now runs php scripts properly (using php-fpm). See: [url]https://bitbucket.org/david_fear/fog-project/commits/1a490d4b7bea45a21360461516bd45acc0c0e7fb[/url]

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by

                                          svn 2108 and 2109 have your modified config.sh and functions.sh files in the arch directory. Thanks for reporting and helping.

                                          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 0
                                          • D
                                            dfear
                                            last edited by

                                            Minor fix needed. Mysqli module now enabled in php.ini file. See: [url]https://bitbucket.org/david_fear/fog-project/commits/bb542601d1e13897e06ffd5e1edf6f4f49a49f9e[/url]

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

                                            154

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project