This commit is contained in:
Moni Ghaoui 2025-12-10 22:03:38 +01:00
parent a45500b404
commit 353db04e1a

View file

@ -21,15 +21,30 @@ pkg update
Install my favorite packages Install my favorite packages
```sh ```sh
pkg install -y bash sudo tmux htop neovim git ncdu bastille tailscale aria2 pkg install -y bash doas tmux htop neovim git ncdu bastille tailscale aria2
``` ```
Add "wheel" to the suoers file. You need to run `visudo` and uncomment the line that starts with `%wheel`: For doas you need to copy the config file:
```sh ```sh
visudo cp /usr/local/etc/doas.conf.sample /usr/local/etc/doas.conf
nvim /usr/local/etc/doas.conf
``` ```
Remove all the stuff about alice, bob, cindy and david. Keep the wheel.
```
g/\<bob\>\|\<alice\>\|\<cindy\>\|\<david\>/d
```
To switch to root you can do:
```sh
doas -s
```
... which means switch to a shell the default is root's.
Change shell Change shell
```sh ```sh