sudo dnf install dhcp-server
sudo vim /etc/dhcp/dhcpd.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nordvpn] | |
name=nordvpn | |
enabled=1 | |
gpgcheck=0 | |
baseurl=https://repo.nordvpn.com/yum/nordvpn/centos/x86_64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## setup auto-unlock LUKS2 encrypted root on Fedora/Silverblue/maybe others | |
## This is a backup version from Universal Blue | |
set -eou pipefail | |
[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1;} | |
echo "WARNING: Do NOT use this if your CPU is vulnerable to faulTPM!" | |
echo "All AMD Zen2 and Zen3 Processors are known to be affected!" | |
echo "All AMD Zen1 processors are also likely affected, with Zen4 unknown!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Connecter-Samba { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $true)] | |
[ValidateNotNullOrEmpty()] | |
$nom, $mdp, $location_reseau | |
) | |
$command = "New-SmbMapping -LocalPath 'S:' -RemotePath '$location_reseau' -Username '$nom' -Password '$mdp'" | |
$lancer_msx = "Start-Process explorer.exe S:" |