tweak: start moving things to bootstrap file

This commit is contained in:
NunoSempere 2023-11-14 15:16:12 +00:00
parent 09dca236b7
commit 04115e8f8b
2 changed files with 28 additions and 5 deletions

View File

@ -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"
```

17
bootstrap.sh Normal file
View File

@ -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