Skip to content

laur89/dotfiles

Repository files navigation

LA's Debian netinstall base setup

Pre-requisities:

  • Debian testing release netinstall
  • media/data mountpoint mounted at /data

Notes:

  • this setup is heavily dependent on the system configuration found in numerous homeshick castles. Some of them are publicly not accessible, so your milage WILL vary.

Installation

The installation script under .bootstrap provides setup logic intended to be run on fresh Debian netinstall installation. It also offers a possibility to run one of the steps separately apart from the full installation mode.

Full install:

  1. Install Debian testing release netinstall (in reality, any Debian base distro should work fine).

  2. optionally preseed the installation (esc when graphical menu appears):

    auto url=http(s):https://webserver/path/preseed.cfg
    debian-installer/allow_unauthenticated_ssl=true
    hostname=myhostname domain=internal.yourdomain.tld
    passwd/root-password=r00tpass
    passwd/root-password-again=r00tpass
    passwd/user-fullname="Full Name"
    passwd/username=username
    passwd/user-password=userpass
    passwd/user-password-again=userpass
  1. wget https://github.com/laur89/dotfiles/raw/master/.bootstrap/install_system.sh
    • or wget https://github.com/laur89/dotfiles/raw/develop/.bootstrap/install_system.sh for develop branch.
  2. chmod +x install_system.sh
  3. install sudo, if not already installed:
    • su
    • apt-get install sudo
  4. add your user to sudo group:
    • /usr/sbin/adduser YOUR_USERNAME sudo (and logout + login afterwards!)
  5. sudo apt-get update
  6. execute script:
    • ./install_system.sh -F personal|work
    • optionally pass -N option for non-interactive (ie standalone) mode

Single task:

This mode is intended to be used througout the system lifetime post-fullinstall. It provides maintenance/management options, such as

  • generating ssh key
  • switching active jdk versions
  • upgrading kernel
  • installing various drivers
  • installing the base package set
  • build and/or install software (such as vim, copyq, oracle jdk)

Update:

This mode is to be ran periodically to build/install software; note it also includes non-standard sources, such as github releases/ pages, and being directly built from source.

TODO

  1. delay homeshick repos' https->ssh change to later stages; otherwise if we need to restart installation, pull can fail due to missing ssh keys or port 22 being blocked (and relevant git config still not in place);
  2. see other dotfiles: