Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
welcome:ubuntu:small_tricks [2021/07/13 18:22] 127.0.0.1 modification externe |
welcome:ubuntu:small_tricks [2023/01/08 15:11] (Version actuelle) arnaud [Attendre la fin du script] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
<color # | <color # | ||
+ | ====== Add a network interface (Ubuntu22) by CLI ====== | ||
+ | * list the interfaces < | ||
+ | * activate the interface < | ||
+ | * set the IP of the interface: < | ||
+ | * apply the settings:< | ||
====== Auto-connect VPN and Wifi ====== | ====== Auto-connect VPN and Wifi ====== | ||
< | < | ||
Ligne 17: | Ligne 22: | ||
[SeatDefaults] | [SeatDefaults] | ||
session-setup-script=/ | session-setup-script=/ | ||
+ | |||
+ | ====== Beep ====== | ||
+ | Pour activer le " | ||
+ | * < | ||
+ | * tester si le beep fonctionne: < | ||
+ | $ beep</ | ||
+ | * Rendre persistant: < | ||
+ | ....</ | ||
Ligne 43: | Ligne 56: | ||
Install and run the script given here: http:// | Install and run the script given here: http:// | ||
See https:// | See https:// | ||
+ | |||
+ | ====== Run a script at startup ====== | ||
+ | https:// | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | / | ||
+ | < | ||
+ | $ sudo cat / | ||
+ | [Unit] | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Service] | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=default.target | ||
+ | </ | ||
+ | < | ||
+ | # chmod 664 / | ||
+ | </ | ||
+ | < | ||
+ | # systemctl enable wol-omv.service</ | ||
+ | |||
+ | ===== Attendre la fin du script ===== | ||
+ | <note important> | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | < | ||
+ | $ sudo cat / | ||
+ | [Unit] | ||
+ | After=network-online.target | ||
+ | Wants=network-online.target | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | TimeoutStartSec=10s | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=default.target | ||
+ | </ | ||
+ | Il faut un " | ||
====== Terminal ====== | ====== Terminal ====== |