tweak: start moving things to bootstrap file
This commit is contained in:
parent
09dca236b7
commit
04115e8f8b
16
README.md
16
README.md
|
@ -34,6 +34,14 @@
|
||||||
|
|
||||||
Partition > Guided - use entire disk and set up encrypted LVM.
|
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
|
## Preparatory steps
|
||||||
|
|
||||||
### 1. Give sudo permissions to your user
|
### 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:
|
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
|
### 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.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 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
|
git config --global init.defaultBranch master
|
||||||
|
|
||||||
cd ~/Documents
|
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.
|
### Install a few essentials.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install neovim tmux
|
sudo apt install neovim
|
||||||
|
git config --global core.editor "vim"
|
||||||
```
|
```
|
||||||
|
|
17
bootstrap.sh
Normal file
17
bootstrap.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user