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

    Fog client service on fedora

    Scheduled Pinned Locked Moved
    Linux Problems
    fog service linux
    4
    8
    3.7k
    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.
    • J
      jrm
      last edited by jrm

      Hello,

      I found on the internet fog customer service for Linux (the .deb file), however, we use Fedora 20 on our workstations and we would like to operate the service hostname change.

      Would you have a solution.

      Thank you in advance.

      Jerome

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

        https://github.com/FOGProject/fog-client

        @Jbob could give more details on this, but I’ve seen it work. It will change the hostname on Fedora 22, has both GUI and text based installation modes.

        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
        • J
          Joe Schmitt Senior Developer
          last edited by

          @jrm , I am not sure what you are referring to. We have no official linux client released. What you found is probably a debian client made by one of our users. As to what @Wayne-Workman is referring to, we do have a linux and osx client in the works. However, it is not ready for release yet.

          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.

          1 Reply Last reply Reply Quote 1
          • G
            Gilou
            last edited by Gilou

            Hmm, renaming could be done directly after imaging though, either using the postdownload script, or by writing it in the init…
            Before rebooting, I guess /etc/hosts & /etc/hostname are enough.
            Another way I’ve been using is hook the DHCP client on the linux systems to set the hostname to what the DHCP sets it to, but that of course requires that your FOG hosts are properly set in DHCP/DNS.

            As on Windows, waiting for the client is probably not a necessity for that precise feature.

            1 Reply Last reply Reply Quote 0
            • J
              jrm
              last edited by

              @jobob thank you for your reply.
              When do you deploy the client Linux / MacOS? She will be a beta available.

              this seems to me to be an important point in my case particularly because our fleet is mainly composed of Linux

              Regards,
              Jerome

              1 Reply Last reply Reply Quote 0
              • G
                Gilou
                last edited by Gilou

                But again, using a simple script in /images/postdownloadscripts/ you could easily change the hostname (assuming it’s set at the FOG hostname).
                Actually, I’m even considering a patch, but there are a few issues at hand.

                • DNS : if no hostname, or if we want the domain name, can we request it?
                • IP if we want to fill /etc/hosts as well (DNS, again)
                • can we assume $part to hold / on a 50 osID ?
                  => Reply: no, we can’t, so it should be /dev/sda1 forced, not too nice…

                Idea is basically (and assuming DHCP will provide DNS domain and is set up for each host):

                if [ "$osId" == "50" && ! -z $hostname ]; then
                     mount /dev/sda1 /mnt
                     echo $hostname > /etc/hostname
                     sync
                     umount /mnt
                fi
                
                Edited to make it a little bit more realistic ;)
                1 Reply Last reply Reply Quote 0
                • J
                  Joe Schmitt Senior Developer
                  last edited by Joe Schmitt

                  @Gilou there are other files that must be updated to perform a “complete” hostnamechange (network files, and others), otherwise things like sudo can fail on certain machines.

                  @jrm I have begun internal testing of the linux client. If you are just interested in hostnamechanging and taskreboot let me know (via chat) and I can give you my preview build to use. It will perform both those operations just fine.

                  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.

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gilou
                    last edited by

                    yes, /etc/hosts as told in my post indeed, and /etc/resolv.conf as well. All information required to be fetched a way or another. Be it by a custom client or something else.

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

                    183

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project