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

Dual boot - Linux hostname doubt

Scheduled Pinned Locked Moved Solved
Linux Problems
5
12
1.9k
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.
  • E
    eliaspereira
    last edited by Feb 7, 2018, 1:16 PM

    Hello guys,

    At first the hostname change in linux works, but as we have windows in dual boot, the time that enters in the domain, as the hostnames of the two will be the same, only one works. I would like to know if the fog can change the hostname of linux and add only a letter or number so that both enter the domain correctly.

    Eg:
    Windows: pc01
    Linux: pc01L

    Thanks!

    1 Reply Last reply Reply Quote 0
    • E
      eliaspereira @Wayne Workman
      last edited by Feb 9, 2018, 12:34 PM

      @wayne-workman

      That’s exactly what I did. I wrote a shell script and put it in rc.local. It checks through the mac if the computer is in the fogserver database and from there it makes the change of hostname and join in our domain.

      Thanks to all for your help!!!

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator
        last edited by Feb 7, 2018, 1:17 PM

        Do you have the fog client installed in both sides (win and lin)?

        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!

        1 Reply Last reply Reply Quote 1
        • W
          Wayne Workman
          last edited by Feb 7, 2018, 4:04 PM

          Pinging @Joe-Schmitt about this use case. In both OSs, they will have the same MAC. @Developers this might be solved with a simple checkbox to append a user-configurable letter if the OS is Linux, or another letter if the OS is Windows, yet another if it’s OSX.

          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/

          E 1 Reply Last reply Feb 7, 2018, 9:13 PM Reply Quote 0
          • E
            eliaspereira @Wayne Workman
            last edited by Feb 7, 2018, 9:13 PM

            @wayne-workman said in Dual boot - Linux hostname doubt:

            Pinging @Joe-Schmitt about this use case. In both OSs, they will have the same MAC. @Developers this might be solved with a simple checkbox to append a user-configurable letter if the OS is Linux, or another letter if the OS is Windows, yet another if it’s OSX.

            I Agree!!! 😄

            @george1421 said in Dual boot - Linux hostname doubt:

            Do you have the fog client installed in both sides (win and lin)?

            Yes. In both O.S I have installed the fog client.

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Feb 7, 2018, 11:04 PM

              Or just reset encryption data.

              For those with Dual boot and Dual clients on a single machine, when you’re booting into a different OS (you should be aware of when this is occurring) reset the encryption data on the host.

              The other option would be to select the OS that requires the client more than the other. The whole idea of the client is to be running for a single machine.

              We do plan on adding multi-boot support in the future, but it will be a while.

              To be honest, logistically speaking, I have no idea why you would need the FOG Client on a dual boot setup. I can understand wanting the hostname, ad, snapins, and maybe printer support on the “multi-boot” between the two, but at the same time, Windows is neither Linux nor macOS. I know this is “obvious” but the layout of a single host with a client on multiple OS’s, how do we know what printers should go to which OS? How do we know what Snapin needs to go to what OS. The only time, I imagine, that this “could” work would be if you’re dual booting Linux and macOS, though that might be specific to Printers only, as while you can use macOS and Linux to run shell scripts, Linux can’t run and install DMG/PKG files and macOS can’t run and install dep/rpm.

              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

              E 1 Reply Last reply Feb 7, 2018, 11:50 PM Reply Quote 1
              • E
                eliaspereira @Tom Elliott
                last edited by Feb 7, 2018, 11:50 PM

                @tom-elliott said in Dual boot - Linux hostname doubt:

                Or just reset encryption data.
                For those with Dual boot and Dual clients on a single machine, when you’re booting into a different OS (you should be aware of when this is occurring) reset the encryption data on the host.

                How do I do that?

                T 1 Reply Last reply Feb 7, 2018, 11:53 PM Reply Quote 0
                • T
                  Tom Elliott @eliaspereira
                  last edited by Feb 7, 2018, 11:53 PM

                  @eliaspereira go to hosts find your host, click your host. Top of edit page is reset encryption data.

                  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
                  • W
                    Wayne Workman
                    last edited by Wayne Workman Feb 7, 2018, 7:58 PM Feb 8, 2018, 1:57 AM

                    Resetting encryption won’t fix the Active Directory problem with duplicate hostnames though. I do agree with Tom’s earlier post about choosing one or the other. I believe you’re the first person I’ve ever heard of trying to get both OSs on a dualboot box joined to AD via FOG. It would be best to just pick one or the other and just run the FOG Client on that one.

                    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/

                    E 1 Reply Last reply Feb 8, 2018, 1:31 PM Reply Quote 0
                    • E
                      eliaspereira @Wayne Workman
                      last edited by Feb 8, 2018, 1:31 PM

                      @wayne-workman

                      I work in a public educational institution and we have 5 computer labs, where we would like both systems to be in the domain. This is for students to use their AD credentials to log into computers.

                      For us this is the best way to manage it. Besides, providing a different operating system alternative to our students.

                      Is it very complicated to program this new feature in the fog client?

                      1 Reply Last reply Reply Quote 0
                      • J
                        Joe Schmitt Senior Developer
                        last edited by Feb 8, 2018, 3:02 PM

                        @eliaspereira Yeah, this feature is fundamentally different from how the client is meant to operate, and so would take a lot of work. What you could do is include a postscript, or a script in the Linux partition set to run on first boot, to take care of the host renamining and active directory join.

                        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.

                        W 1 Reply Last reply Feb 8, 2018, 3:07 PM Reply Quote 1
                        • W
                          Wayne Workman @Joe Schmitt
                          last edited by Feb 8, 2018, 3:07 PM

                          @joe-schmitt said in Dual boot - Linux hostname doubt:

                          What you could do is include a postscript, or a script in the Linux partition set to run on first boot, to take care of the host renamining and active directory join.

                          That’s not as hard as it sounds either. I automated automatic naming & domain joining with just a bash script at my last job. With the FOG API, you can get the correct hostname and add/change a letter in it. At an even earlier job, our hostname nomenclature included a ‘W’ for windows, ‘M’ for mac, and ‘L’ for Linux.

                          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/

                          E 1 Reply Last reply Feb 9, 2018, 12:34 PM Reply Quote 1
                          • E
                            eliaspereira @Wayne Workman
                            last edited by Feb 9, 2018, 12:34 PM

                            @wayne-workman

                            That’s exactly what I did. I wrote a shell script and put it in rc.local. It checks through the mac if the computer is in the fogserver database and from there it makes the change of hostname and join in our domain.

                            Thanks to all for your help!!!

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

                            259

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project