Dual boot - Linux hostname doubt
-
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: pc01LThanks!
-
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!!!
-
Do you have the fog client installed in both sides (win and lin)?
-
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.
-
@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.
-
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.
-
@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?
-
@eliaspereira go to hosts find your host, click your host. Top of edit page is reset encryption data.
-
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.
-
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?
-
@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.
-
@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.
-
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!!!