From 04115e8f8b39251d2e75ea08721fcbf1d15ff036 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 14 Nov 2023 15:16:12 +0000 Subject: [PATCH] tweak: start moving things to bootstrap file --- README.md | 16 +++++++++++----- bootstrap.sh | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 bootstrap.sh diff --git a/README.md b/README.md index 0c7485d..29cb18b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ Partition > Guided - use entire disk and set up encrypted LVM. +## How to get this distribution + +``` +wget ... +chmod +x bootstrap.sh +bash bootstrap.sh +``` + ## Preparatory steps ### 1. Give sudo permissions to your user @@ -41,9 +49,6 @@ Partition > Guided - use entire disk and set up encrypted LVM. Give sudo permissions to your user: ``` -su - --command "adduser $(whoami) sudo" -newgrp sudo -sudo echo "Hello world!" ``` ### 2. Install git and download the rest of this distribution @@ -53,7 +58,7 @@ sudo apt install git git config --global user.email "nuno.semperelh@protonmail.com" # to do: add part of a script that asks you for this, or lets you configure it git config --global user.name "NunoSempere" -git config --global credential.helper 'store --file ~/.^C +git config --global credential.helper 'store --file ~/.git-credentials' git config --global init.defaultBranch master cd ~/Documents @@ -65,5 +70,6 @@ N.B.: Could also just provide a bash script to fetch with wget. The script could ### Install a few essentials. ``` -sudo apt install neovim tmux +sudo apt install neovim +git config --global core.editor "vim" ``` diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..aea76cc --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Give sudo permissions to this user +su - --command "adduser $(whoami) sudo" +newgrp sudo +sudo echo "Hello world!" + +# Install git +sudo apt install git + +# git config --global user.email "nuno.semperelh@protonmail.com" # to do: add part of a script that asks you for this, or lets you configure it +# git config --global user.name "NunoSempere" +# git config --global init.defaultBranch master + +cd ~/Documents +git clone https://git.nunosempere.com/open.source/nunOS.git +cd nunOS