Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf · type...

65
Collect a USB Drive! Open the Readme

Transcript of Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf · type...

Page 1: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Collect a USB Drive! Open the Readme

Page 2: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Imagr

@grahamgilbert

Page 3: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Some Say…

Page 4: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Imaging is Dead

Page 5: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Everyone got the files?

Page 6: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Everyone got an OS X Installer?

Page 7: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Everyone got VMware?

Page 8: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Agenda

Page 9: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Long boring prep work

Background tasks will be here

Page 10: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Autodmg

Page 11: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Never booted image

Page 12: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Never booted image(Stupid easy)

Page 13: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 14: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 15: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Text Editor

AutoDMG Building

Page 16: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Copy everything to your home directory

AutoDMG Building

Page 17: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Install docker toolbox

AutoDMG Building

Page 18: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ cd somewhere/Imagr_Lab $ sh Scripts/machine.sh

Page 19: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ docker-machine env vmwaredocker $ eval "$(docker-machine env vmwaredocker)"

Page 20: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ cd somewhere/Imagr_Lab $ sh Scripts/import.sh

Page 21: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

What is Imagr?

AutoDMG Building

Page 22: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Open Source Imaging tool

AutoDMG Building

Page 23: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Uses a simple Web server

AutoDMG Building

Page 24: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

No OS X Server Required

AutoDMG Building

Page 25: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

No OS X “Server” Required

AutoDMG Building

Page 26: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Can replace DS for most people

AutoDMG Building

Page 27: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Growing community

AutoDMG Building

Page 28: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Uses a Plist

Page 29: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

scripts/genpassword.sh Change yourpasswordhere

Page 30: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ cd somewhere/Imagr_Lab $ sh Scripts/genpassword.sh

Page 31: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Data/web_root/Imagr_config.plist

Page 32: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

imagr_config.plist

Page 33: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Workflows

Page 34: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Components

Page 35: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Back to imagr_config.plist

Page 36: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>password</key> <string>b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b4</string> <key>workflows</key> <array> <dict> <key>name</key> <string>MacTech Workflow</string> <key>description</key> <string>A demo workflow made in the Imagr Lab session.</string> <key>components</key> <array>

</array> </dict> </array> </dict> </plist>

Page 37: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

<dict> <key>type</key> <string>image</string> <key>url</key> <string>http://YOURIPADDRESSHERE/your-autodmg-image-name.hfs.dmg</string> </dict>

Page 38: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

<dict> <key>type</key> <string>package</string> <key>url</key> <string>http://YOURIPADDRESSHERE/packages/clearReg.pkg</string> <key>first_boot</key> <false/> </dict> <dict> <key>type</key> <string>package</string> <key>url</key> <string>http://YOURIPADDRESSHERE/packages/adminUser.pkg</string> </dict>

Page 39: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

<dict> <key>type</key> <string>computer_name</string> </dict>

Page 40: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

<dict> <key>type</key> <string>script</string> <key>content</key> <string>#!/bin/bash /usr/bin/csrutil netboot add 10.10.10.10 /usr/bin/csrutil netboot add 10.10.10.11 </string> <key>first_boot</key> <false/> </dict> <dict> <key>type</key> <string>script</string> <key>content</key> <string>#!/bin/bash /usr/sbin/systemsetup -f -setremotelogin on</string> </dict>

Page 41: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

That’s it!

Page 42: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Has AutoDMG Finished?

Page 43: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

The NBI

Page 44: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Data/web_root

Page 45: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 46: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 47: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 48: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 49: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Copy AutoDMG image to data/web_root

Page 50: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Docker

Page 51: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ cd somewhere/Imagr_Lab $ sh Scripts/start-docker.sh

Page 52: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ docker logs bsdpy

Page 53: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Time to netboot

Page 54: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 55: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 56: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 57: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 58: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 59: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 60: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 61: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ docker logs bsdpy

Page 62: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url
Page 63: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

$ cd somewhere/Imagr_Lab $ sh Scripts/stop-machine.sh

Page 64: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

Questions?

Page 65: Collect a USB Drive! Open the Readme › images › posts › 2015-11-12 › ImagrLab.pdf ·  type image url

github.com/grahamgilbert/imagr grahamgilbert.com