Giter VIP home page Giter VIP logo

pacstrapit's Introduction

PacstrapIt!

Features

  • Btrfs on LUKS

Instructions

  1. Burn LiveCD/LiveUSB with latest Arch ISO
  2. Boot from LiveCD/LiveUSB
  3. Download pacstrapit: curl -k https://codeload.github.com/atweiden/{pacstrapit}/{tar.gz}/{0.0.21} -o "#1-#3.#2"
  4. Extract: tar xvzf pacstrapit-0.0.21.tar.gz
  5. Customize variables

WARNING: failure to give appropriate values could cause catastrophic data loss and system instability.

Defaults:

Target partition/dev/sda
Type of processorother
Type of graphics cardIntel
Type of hard driveHDD
Localeen_US
Keymapus
TimezoneAmerica/Los_Angeles (PST)
Root passwordsecret
User namelive
User passwordsecret
LUKS nameluksroot
LUKS passwordsecret
Hostnameluksiso

cd pacstrapit-0.0.21 && $EDITOR pacstrapit

Done. Ready to run pacstrapit:

./pacstrapit

With logging:

./pacstrapit 2>&1 | tee pacstrapit.log

If the script exits with an error, it's best to reboot and start fresh.

Optional: sshify

Before setting _ssh to 1...

On the control machine:

Make keys directory.

$ mkdir -p ~/keys

Generate ssh keys.

$ ssh-keygen -t ed25519 -b 521 -f ~/keys/id_ed25519

Get Electrum.

$ cd && curl -k https://codeload.github.com/spesmilo/{electrum}/{tar.gz}/{${_electrum_version}} -o "#1-#3.#2"
$ tar xvzf electrum-${_electrum_version}.tar.gz
$ cd electrum-${_electrum_version}
$ find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g'
$ find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g'

Pick an Electrum address for signing.

$ address_for_signing=$(./electrum listaddresses | sed -n '2p' | tr -d '[:punct:]' | awk '{print $1}')
$ echo ${address_for_signing} > ~/keys/electrum.pub
$ ./electrum signmessage ${address_for_signing} "$(cat ~/keys/id_ed25519.pub)" > ~/keys/id_ed25519.pub.sig

Upload id_ed25519.pub, id_ed25519.pub.sig and electrum.pub to GitHub, or any other file hosting service reachable via curl.

Record the exact URL for each keyfile inside the variables section of pacstrapit.

Licensing

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

pacstrapit's People

Stargazers

Eris Blastar avatar

Watchers

James Cloos avatar Norman King avatar Orion Blastar avatar Eris Blastar avatar  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.