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

    Diving into CentOS 7

    Scheduled Pinned Locked Moved
    General
    3
    22
    9.3k
    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.
    • sudburrS
      sudburr
      last edited by sudburr

      Looks like this might do it:

      if [ -f /etc/debian_version ]; then
      fi
      
      if [ -f /etc/centos-release ]; then
      fi
      

      [ Standing in between extinction in the cold and explosive radiating growth ]

      1 Reply Last reply Reply Quote 0
      • sudburrS
        sudburr
        last edited by

        Okay, next problem. I can’t get SELINUX to not start.

        sed -i "s/=enforcing/=disabled/g" /etc/sysconfig/selinux
        setenforce 0
        

        … is not doing it. After reboot, sestatus shows SELINUX is still enabled.

        [ Standing in between extinction in the cold and explosive radiating growth ]

        1 Reply Last reply Reply Quote 0
        • sudburrS
          sudburr
          last edited by sudburr

          I see my mistake now. Though there is a /etc/sysconfig/selinux , I wanted to edit /etc/selinux/config .

          To cover my bases I’m editing both. I suspect that the first is generated by the second:

          setenforce 0
          sed -i "s/=enforcing/=disabled/g" /etc/sysconfig/selinux
          sed -i "s/=enforcing/=disabled/g" /etc/selinux/config
          

          … and checking … yep, that did the trick.

          Now for an actual Fog install.

          [ Standing in between extinction in the cold and explosive radiating growth ]

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

            @sudburr lol you’re so hardcore.

            What’s wrong with using Vi and just opening the file and changing the “enforcing” to “disabled” ?? lol

            and for the record, /etc/selinux/config is the only one you need to edit. 🙂

            There is also a “permissive” mode for SELINUX. something to think about.

            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
            • sudburrS
              sudburr
              last edited by

              Manually using VI is slow.

              It’s far easier to simply copy and paste the command code in a single click.

              Considering that disabling SELINUX is from your horses mouth, what’s the point of permissive?

              [ Standing in between extinction in the cold and explosive radiating growth ]

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

                VI can do copy and paste, for what it’s worth.

                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 @sudburr
                  last edited by

                  @sudburr And you can use sed statements in vi as well to change only the lines you need.

                  For example, instead of sed -i, in VI/VIM you would type:

                  :%s/=enforcing/=disabled/g

                  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

                    And to help a bit more in the understanding of SELinux and it’s modes: https://wiki.gentoo.org/wiki/SELinux/Tutorials/Permissive_versus_enforcing

                    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
                    • Wayne WorkmanW
                      Wayne Workman @sudburr
                      last edited by Wayne Workman

                      @sudburr said:

                      Considering that disabling SELINUX is from your horses mouth, what’s the point of permissive?

                      For myself and many other people who have came to the forums in distress, FOG doesn’t fully work with SELinux in “enforcing” mode. However, it’s one of my goals to get fog to work with it turned on fully.

                      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
                      • sudburrS
                        sudburr
                        last edited by

                        Well I have FOG running happily on CentOS 7.1 now.

                        As much as enjoy Debian 8.2 over Ubuntu 14/15 now, I dare say I may prefer CentOS 7.1 now. 😎

                        [ Standing in between extinction in the cold and explosive radiating growth ]

                        1 Reply Last reply Reply Quote 1
                        • sudburrS
                          sudburr
                          last edited by sudburr

                          As I’ve re-edited above, it appears the file system footprint was a result of installing CentOS 7 using the default Partition Scheme LVM and the file system, which happens to be XFS.

                          Switching the install to use Standard Partitions and the ext4 File system for sda1/2/3 results in a fs footprint on par with Debian at 5.5GB. And by footprint I mean .vhdx file size.

                          [ Standing in between extinction in the cold and explosive radiating growth ]

                          1 Reply Last reply Reply Quote 1
                          • sudburrS
                            sudburr
                            last edited by sudburr

                            Success on all fronts.

                            I have successfully created a generalized virtual server running CentOS 7.1 with FOG Build 4820. I can dump an image of it onto any hardware we use, mobile, desktop or virtual and it works exactly as desired.

                            I like it so much I’m making it my new standard.

                            There were some new hoops to jump through, but the CentOS community and online documentation provided solutions using native commands and features.

                            I even succeeded with no issues whatsoever in converting my vm development fog from Debian8.2 to CentOS7.1 in about 15 minutes.

                            I love slaying dragons. 😎

                            [ Standing in between extinction in the cold and explosive radiating growth ]

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

                            161

                            Online

                            12.1k

                            Users

                            17.3k

                            Topics

                            155.3k

                            Posts
                            Copyright © 2012-2024 FOG Project