Actualiser Prepare your computer

Mathieu Broillet 2024-08-30 11:23:06 +02:00
parent 3d53e0d8f8
commit f50dad1ff0

@ -3,12 +3,17 @@
### Automatic Configuration ### Automatic Configuration
Run the following command on your Linux-running computer to automatically configure SSH and sudoers: Run the following command on your Linux-running computer to automatically configure SSH and sudoers:
```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/M4TH1EU/HA-EasyComputerManager/main/.github/wiki/script-auto-config-linux.sh)"
```
*Note: If you don't feel comfortable running a script from the internet, you can check it out [here](../../blob/main/.github/wiki/script-auto-config-linux.sh).*
*Warning: If running manually, be sure to run with sudo but not root (except if your user is root).* > [!WARNING]
> The script must be run with sudo (except if your user is root).
```bash
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/M4TH1EU/HA-EasyComputerManager/main/.github/wiki/script-auto-config-linux.sh)"
```
> [!NOTE]
> If you don't feel comfortable running a script from the internet, you can check it out [here](../../blob/main/.github/wiki/script-auto-config-linux.sh) or follow manual instructions below.
*** ***
### Manual Configuration ### Manual Configuration
@ -34,7 +39,7 @@ Allow your user account to run specific sudo commands without a password prompt.
```bash ```bash
# Allow your user to execute specific commands without a password # Allow your user to execute specific commands without a password
username ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/init, /usr/bin/systemctl, /usr/sbin/pm-suspend, /usr/bin/awk, /usr/sbin/grub-reboot, /usr/sbin/grub2-reboot username ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/init, /usr/sbin/pm-suspend, /usr/sbin/grub-reboot, /usr/sbin/grub2-reboot, /usr/bin/cat /etc/grub2.cfg, /usr/bin/cat /etc/grub.cfg
``` ```
**⚠️ Replace `username` with your actual username.** **⚠️ Replace `username` with your actual username.**