mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
updated instructions
This commit is contained in:
@@ -9,26 +9,26 @@ Laptop configuration for Arch Linux
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### Setup the variables needed for running the playbook
|
### Create the user as administrator
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir --parent ansible/roles/user/vars
|
# Install the necessary dependencies
|
||||||
touch ansible/roles/user/vars/main.yml
|
pacman -S sudo fish git
|
||||||
|
|
||||||
|
# Allow members of the group "sudo" to issue sudo commands
|
||||||
|
sed -i 's/# %sudo/%sudo/g' /etc/sudoers
|
||||||
|
|
||||||
|
# Add the "sudo" group
|
||||||
|
groupadd sudo
|
||||||
|
|
||||||
|
# Add the unprivileged user
|
||||||
|
useradd --create-home --shell --groups sudo --uid 1000 /bin/fish user
|
||||||
|
|
||||||
|
# Setup the password for the unprivileged user
|
||||||
|
passwd user
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
### Laptop installation as user
|
||||||
---
|
|
||||||
user:
|
|
||||||
name: "change-me"
|
|
||||||
password: "change-me"
|
|
||||||
groups: sudo
|
|
||||||
uid: 1000
|
|
||||||
shell: /bin/fish
|
|
||||||
root:
|
|
||||||
shell: /bin/fish
|
|
||||||
```
|
|
||||||
|
|
||||||
### Laptop installation
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
|
|||||||
Reference in New Issue
Block a user