r/sysadmin • u/Nimda_lel • Sep 18 '16
Administering Windows environment using Linux
Greetings /r/sysadmin,
The past weeks, maybe two months, I have had that insanely overwhelming desire to switch my operating system from Windows to Linux, so I've decided to do it the next week. I have LPI-1, now studying for LPI-2, have some decent experience with managing Linux environments as well as Windows ones and have used Linux for my home laptop for some time now, but I am not sure if it would be sufficent enough, even if I have some more complicated way of dealing things, for managing Windows Environment. So, since I have had so much help from this subreddit I decided to ask you once more for some guidelines. My few concerns are the following:
Management of AD - is there a good tool for doing that from inside Linux. I have found the Apache Directory Studio and one more popular tool called ADtools, eventhough it is command line based.
PowerShell - Has any of you fully tried in a working environment the new open-source powershell? If so, how do you like it?
Azure Command Line management - Has any of you managed Azure resources using Linux?
There's always the way of using Windows virtual machine, but I am trying to think of a way around that option.
Thanks in advance :)
53
u/VA_Network_Nerd Moderator | Infrastructure Architect Sep 18 '16
IMO: The IT dept should be running the same base hardware and OS as the user community.
If you need more RAM or storage than normal, fine.
Patch management and the core load image is just easier to manage when everyone is the same.
31
u/Creshal Embedded DevSecOps 2.0 Techsupport Sysadmin Consultant [Austria] Sep 18 '16
I've given up on it and just use a Windows VM with RSAT and stuff installed.
18
u/[deleted] Sep 18 '16
Windows VM. Either local or on server.
You will most likely find a thing that either takes too much time to research or just impossible to do under linux
4
u/HotKarl_Marx Sep 18 '16
I've been running linux full time on all my computers for many years.
I also happen to admin a rather large windows server farm.
I use KRDC. I RDP into whatever Windows server I want to admin and just do it all from there.
Much better than polluting my linux system with clunky windows tools or wasting 80GB of hard drive running a windows VM.
7
u/systemadamant Senior Systems Engineer Sep 18 '16
Sadly it does not look like Wine works well with the AD tools (ADUC etc).
One option would be to spin up a Windows VM on KVM (not 100% sure if this can be done on desktop Linux).
Looks like Azure has a cli for Linux
https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/
And coming out of left field now that you are using Linux what about looking at tools like Ansible and/or Chef/Puppet to start managing your environment?
3
u/soundtom "that looks right… that looks right… oh for fucks sake!" Sep 18 '16
Coming from a very diverse environment (users get their choice of Win/Mac/Linux), I'd say run what makes you most effective in your daily work and do the rest in a VM. I don't have any specific tools (I run AD Users and Groups in a VM on my Mac), but wanted to throw this out there because you were catching flack in a few of the comments.
8
u/chipsharp0 Sep 18 '16
Look, I love Linux as much of the next three people. I cut my teeth on a stack of floppy disks with A and N packages. But as a windows admin, using Linux is just too much of a hassle for which I get nothing bit to be an eccentric user. It's just not worth it.
1
u/knobbysideup Sep 18 '16 edited Sep 18 '16
Winexe, rdesktop, and LDAP tools will do a lot. Learn some PowerShell, and have a dedicated server or VM to do that work from. Or just wrap it in winexe and never even have to touch windows directly. Personally I run a Linux workstation with Windows in virtualbox for when I need it.
2
u/[deleted] Sep 18 '16
most simple way I can think of is either:
or
3. I don't know how stable it is due to the short time of it's existence but iirc powershell is now open source and available on linux.
2
u/ITbatman Sep 19 '16
As for AD management tools, have a look at Adaxes. It has a Web Interface that can pretty much cover all admin needs and you can access it from a browser, no matter what OS you are on.
It also comes with lost of stuff that can be useful for AD management, like automated provisioning, approvals, self-service for users, etc. However, it comes at a price, and you can't get the web ui separately.
2
u/EraYaN Sep 18 '16
If you are looking for some form of config management (besides PowerShell I guess).
You can try Ansible. These are the Windows modules.
They also have stuff for everything linux and also some Azure/AWS stuff, and it's just python so extending is very easy.
1
u/swatlord Couchadmin Sep 18 '16
You could set up a single RDS instance and use rdesktop on Linux. It's what I experimented doing when I wanted to answer this exact question. It involves a little scripting to get them to open how you want, but it wasn't too terrible.
1
u/faisent Jack of All Trades Sep 18 '16
I'm a former windows admin (NT3.5 days though...) and now Linux being slowly dragged back into windows admin because of Azure; I'll respond to #3.
Azure CLI is ok-ish it is updated pretty regularly and scripts you write for it will often need to be tweaked if you update your CLI. Many tools for Azure work better on Windows (say AzCopy vs the azure storage blob copy start from the CLI). Its easy to set your environment variables with the CLI. I have multiple subscriptions with dozens (soon to be hundreds) of resource groups and custom images that have to be managed along with user access to them.
What I use the CLI for:
RG creation, user perms, SA builds, service principle builds.
I use windows tools (azure powershell stuff) for:
storage manipulation (blob copies, etc); nsg maintenance.
I use a custom API tool for reporting, we'll probably extend the API calls for better end user resource building as needed.
Most of our deploys are template driven through Jenkins anyway.
My advice, if you know powershell pretty well I'd just stick with that; most of the documentation you're going to find is for older versions of the CLI and it can be super frustrating. Of course, LOTS of Azure documentation is woefully out of date...
1
u/spyingwind I am better than a hub because I has a table. Sep 18 '16
PS Remoting from a linux box is not bad. Makes 99% of my work doable.
1
u/[deleted] Sep 19 '16
Honestly I would just use a VM with RSAT.
1
u/[deleted] Sep 19 '16
Get a Windows Box & use the Windows tools.
Don't bother trying to make your life more difficult than it needs to be.
1
u/jr_19 Sep 19 '16
It makes more sense to me to run Windows as my operating system and run some flavor of Linux in a VM on a separate monitor. We're about 95% Windows in our office, and as much as I'd love to use Linux as my primary OS, it just wouldn't work as well for me.
1
u/Fatality Sep 20 '16
"I have too much free time" - op
1
u/[deleted] Sep 18 '16
Just a thought. If you have the infrastructure for it, look into doing something like RemoteApp. Just stream the applications that you need. Then your OS really becomes a non-factor.
0
u/[deleted] Sep 18 '16
[deleted] — view deleted comment
0
u/[deleted] Sep 18 '16
[deleted] — view deleted comment
0
u/[deleted] Sep 18 '16
[deleted] — view deleted comment