Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
ipxe [Le 11/09/2022, 12:16] moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) |
ipxe [Le 29/06/2024, 14:08] (Version actuelle) andykimpe samba solve acces denied sur winpe 7 |
||
---|---|---|---|
Ligne 20: | Ligne 20: | ||
<code> | <code> | ||
sudo apt update && sudo apt install isc-dhcp-server | sudo apt update && sudo apt install isc-dhcp-server | ||
- | sudo nano etc/dhcp/dhcpd.conf | + | sudo nano /etc/default/isc-dhcp-server |
+ | </code> | ||
+ | |||
+ | <file - /etc/default/isc-dhcp-server> | ||
+ | # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). | ||
+ | #DHCPDv4_CONF=/etc/dhcp/dhcpd.conf | ||
+ | #DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf | ||
+ | |||
+ | # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). | ||
+ | #DHCPDv4_PID=/var/run/dhcpd.pid | ||
+ | #DHCPDv6_PID=/var/run/dhcpd6.pid | ||
+ | |||
+ | # Additional options to start dhcpd with. | ||
+ | # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead | ||
+ | #OPTIONS="" | ||
+ | |||
+ | # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? | ||
+ | # Separate multiple interfaces with spaces, e.g. "eth0 eth1". | ||
+ | INTERFACESv4="" | ||
+ | INTERFACESv6="" | ||
+ | </file> | ||
+ | <code> | ||
+ | sudo nano /etc/dhcp/dhcpd.conf | ||
</code> | </code> | ||
<file - /etc/dhcp/dhcpd.conf> | <file - /etc/dhcp/dhcpd.conf> | ||
Ligne 119: | Ligne 141: | ||
Pour plus d’info sur la configuration : [[:isc-dhcp-server|isc-dhcp-server]] | Pour plus d’info sur la configuration : [[:isc-dhcp-server|isc-dhcp-server]] | ||
<code> | <code> | ||
- | sudo service isc-dhcp-server restart | + | sudo systemctl restart isc-dhcp-server |
</code> | </code> | ||
Ligne 147: | Ligne 169: | ||
Ensuite, redémarrer le service : | Ensuite, redémarrer le service : | ||
<code> | <code> | ||
- | sudo service tftpd-hpa restart | + | sudo systemctl restart tftpd-hpa |
</code> | </code> | ||
<note tip> | <note tip> | ||
Ligne 203: | Ligne 225: | ||
make bin-x86_64-efi/ipxe.efi EMBED=chain.ipxe | make bin-x86_64-efi/ipxe.efi EMBED=chain.ipxe | ||
make bin-i386-efi/ipxe.efi EMBED=chain.ipxe | make bin-i386-efi/ipxe.efi EMBED=chain.ipxe | ||
- | make undionly.kpxe EMBED=chain.ipxe | + | make bin/undionly.kpxe EMBED=chain.ipxe |
- | cp bin-x86_64-efi/ipxe.efi undionly.kpxe /var/lib/tftpboot/ | + | cp bin-x86_64-efi/ipxe.efi /var/lib/tftpboot/ |
cp bin-i386-efi/ipxe.efi /var/lib/tftpboot/ipxe32.efi | cp bin-i386-efi/ipxe.efi /var/lib/tftpboot/ipxe32.efi | ||
+ | cp bin/undionly.kpxe /var/lib/tftpboot/ | ||
</code> | </code> | ||
La construction nécessite les paquets suivants : [[apt>gcc]] [[apt>binutils]] [[apt>liblzma-dev]] | La construction nécessite les paquets suivants : [[apt>gcc]] [[apt>binutils]] [[apt>liblzma-dev]] | ||
Ligne 308: | Ligne 331: | ||
<code> | <code> | ||
sudo echo "/var/lib/tftpboot/ubuntuinstall *(async,no_root_squash,no_subtree_check,ro) /etc/exports" >> /etc/exports | sudo echo "/var/lib/tftpboot/ubuntuinstall *(async,no_root_squash,no_subtree_check,ro) /etc/exports" >> /etc/exports | ||
- | sudo service nfs-kernel-server restart | + | sudo systemctl restart nfs-kernel-server |
</code> | </code> | ||
==== Démarrer Windows ==== | ==== Démarrer Windows ==== | ||
Ligne 423: | Ligne 446: | ||
[win10] | [win10] | ||
path = /var/lib/tftpboot/win10 | path = /var/lib/tftpboot/win10 | ||
- | browseable = no | + | browseable = yes |
writable = no | writable = no | ||
guest ok = yes | guest ok = yes | ||
create mask = 0775 | create mask = 0775 | ||
directory mask = 0775 | directory mask = 0775 | ||
+ | acl allow execute always = yes | ||
</file> | </file> | ||