Giter VIP home page Giter VIP logo

homeinfra's Introduction

Automated Ubuntu 16.04

what does this do?

  • makes a installation usb for an unattended installation of ubuntu
  • there is a feature to add files to the system after installation
  • there is some ansible code to configure a system the way i like

in a python script "create_unattended_iso.py"...

  • download ubuntu 16.04 image
  • mount the iso
  • copy all data from iso into a temporary directory
  • using the template directory ./add_to_iso, render jinja2 templates and copy into the install media (the custom iso we are making)
  • jinja2 variables are queried during script run time, using the getpass module if they contain "secret" or "password"
  • in this directory, there is another directory called "add_to_os" ...

in add_to_iso/ks.cfg.j2 ...

in add_to_iso/add_to_os ...

  • this is all the stuff we want to end up on our system.
  • in /opt/ansible, there is an ansible project to set up my system.
  • you should modify this code to work for your stuff. my setup should work for you, less the graphics drivers and screen size specifications located in ansible/roles/nvidia
  • simply delete the line "-nvidia" from ansible/graphicsmachine.yml, and you should be good to go
  • there is also a bootstrap script
  • we execute this script as root after we have installed the OS

how do i use it?

  • read links above
  • read the python script until you trust me
  • set usb=True or usb=False
  • use the script
  • answer the questions
  • copy data to installation media
  • boot from installation media on target system
  • wait a moment
  • log in
  • decide what to do next. execute /bootstrap.sh ?

known issues

  • writes plaintext passwords to disk
  • jinja2 templates in your ansible code will not work as is because the script will try to render them at run time. this has not been an issue for me yet because i didn't use them yet, but after i do i will just change the extension that gets rendered in the python script.
  • the role morning_mix does not work right now

Disclaimer

  • not my fault if you hurt yourself. MIT license
  • deletes all your data by default

homeinfra's People

Contributors

sjmiller609 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.