mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
updated the instructions to ease the installation process
This commit is contained in:
@@ -9,29 +9,23 @@ Laptop configuration for Arch Linux
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### Setup as the `root` user
|
### Setup the variables needed for running the playbook
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install the necessary dependencies
|
touch ansible/roles/user/vars/main.yml
|
||||||
pacman -Syy ansible git which sudo bash
|
|
||||||
|
|
||||||
# Allow the "sudo" group to issue sudo commands
|
|
||||||
sed -i 's/#\s*%sudo/%sudo/g' /etc/sudoers
|
|
||||||
|
|
||||||
# Create a new user
|
|
||||||
useradd --create-home user
|
|
||||||
|
|
||||||
# Add a password for the newly created user
|
|
||||||
passwd user
|
|
||||||
|
|
||||||
# Add the sudo group
|
|
||||||
groupadd sudo
|
|
||||||
|
|
||||||
# Add the "sudo" group for the created user
|
|
||||||
usermod --add --groups sudo user
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setup as the created user
|
```yaml
|
||||||
|
---
|
||||||
|
user:
|
||||||
|
name: "change-me"
|
||||||
|
password: "change-me"
|
||||||
|
groups: sudo
|
||||||
|
uid: 1000
|
||||||
|
shell: /bin/fish
|
||||||
|
root:
|
||||||
|
shell: /bin/fish
|
||||||
|
```
|
||||||
|
|
||||||
#### Installation of the necessary dependencies
|
#### Installation of the necessary dependencies
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user