DEV Community

Discussion on: Set up My Computer with Me!

Collapse
 
dotnetcoreblog profile image
Jamie • Edited

Have you ever looked into automating this?

I've built a .NET Core global tool which allows me to install all of the software that I need on a new computer. Once I've installed the .NET Core runtime, I can issue a single command and everything will be installed and set up for me.

The same thing can be done using shell scripts, obviously, but I'm a bit of a .NET Core maniac.

Collapse
 
equiman profile image
Camilo Martinez

I like .Net Core a lot. Can I see this script?

Collapse
 
dotnetcoreblog profile image
Jamie

It's currently closed source. But essentially it:

  • Uses Nate McMaster's CommandLineUtils as a base
  • Figures out which OS its running on
  • Reads a list of applications from a json file (including any CLI switches for installers)
  • Loops through the applications and installs them

I'll see whether I can produce a limited, open source version over the weekend.

Collapse
 
aspittel profile image
Ali Spittel

The whole set up took around 20 minutes, so I think it might not be time efficient. I did think about writing a shell script, and I may do that. My one issue is that I have switched between Windows/Mac/Linux relatively frequently in my career so I'm not sure if it would be worth writing one.

Definitely a cool idea!

Collapse
 
rhymes profile image
rhymes

I can't argue with automation but is it worth it in this case though?

I have had 3 Macs in 12 years (the last one is at 5/6 years and counting) and I just had to plugin the Time Machine backup disk to have everything ready in a couple of hours from scratch.

Collapse
 
dotnetcoreblog profile image
Jamie

That's a good point for Macs (which also extends to Linux boxes), but for those of us who have to support Windows boxes it's useful to be able to nuke and restore a machine as quickly as possible (without having to use a custom system image).