1
0
Fork 0
dotfiles/readme.md

36 lines
832 B
Markdown
Raw Normal View History

2020-11-14 08:18:07 -05:00
# schrofi's system configuration
2021-01-11 09:38:59 -05:00
My personal system configuration using cdist on a Manjaro system, specifically tailored towards me and nobody else ¯\_(ツ)_/¯
2020-11-14 08:18:07 -05:00
You can use it for inspiration though.
## Getting Started
2021-01-11 09:38:59 -05:00
1. Install cdist
```
git clone https://code.ungleich.ch/ungleich-public/cdist.git
cd cdist
export PATH=$PATH:$(pwd -P)/bin
./bin/cdist-build-helper version
make install
sudo python setup.py install
```
2. Setup SSH root access
2021-01-17 06:28:54 -05:00
Add the following line into your `/etc/ssh/sshd_config`
2021-01-11 09:38:59 -05:00
```
2021-01-17 06:28:54 -05:00
PermitRootLogin without-password
2021-01-11 09:38:59 -05:00
```
2021-01-17 06:28:54 -05:00
Then copy your SSH key to the root user at localhost.
2020-11-14 08:18:07 -05:00
```
2021-01-17 06:28:54 -05:00
ssh-copy-id root@localhost
2020-11-14 08:18:07 -05:00
```
2021-01-17 06:28:54 -05:00
Finally, start the ssh daemon if it is not running
2020-11-14 08:18:07 -05:00
```
2021-01-17 06:28:54 -05:00
sudo systemctl start sshd
2020-11-14 08:18:07 -05:00
```
2021-01-17 06:28:54 -05:00
3. CD into this repository and execute the following command:
2020-11-14 08:18:07 -05:00
```
2021-01-17 06:28:54 -05:00
cdist config -vv -c ./cdist localhost
2020-11-14 08:18:07 -05:00
```