Line 11: |
Line 11: |
| | | |
| === Requires === | | === Requires === |
− | *smeserver >= 7.0 | + | *smeserver >= 10.0 |
− | *tftp-server >= 0.39 | + | *tftp-server >= 0.49 |
| + | |
| + | For a lot of linux distros you will need nfs support |
| + | |
| + | https://wiki.koozali.org/NFS |
| + | |
| + | You will a /etc/exports line similar to this: |
| + | |
| + | /tftpboot/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure) |
| + | <syntaxhighlight lang="bash"> |
| + | mkdir -p /etc/e-smith/templates-custom/etc/exports/ |
| + | echo "/tftpboot/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)" > /etc/e-smith/templates-custom/etc/exports/30tftp |
| + | expand-template /etc/exports |
| + | </syntaxhighlight> |
| + | /tftpboot/images/ubunturescue_1104/ *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure) |
| + | if you have installed smeserver-nfs |
| | | |
| === Installation === | | === Installation === |
Line 23: |
Line 38: |
| yum --enablerepo=smecontribs --enablerepo=base install smeserver-tftp-server | | yum --enablerepo=smecontribs --enablerepo=base install smeserver-tftp-server |
| | | |
− | Officially you should then need to apply the database changes etc. Whilst this is not required to be able to run the tftp server straight away, it will be required at some stage, and the server manager will remind you to, until you do.
| + | The tftp status can be controlled via the Thin Clients server-manager panel if you have installed my [[Thinclient|smeserver-thinclient]] contrib. |
− | | |
− | signal-event post-upgrade
| |
− | signal-event reboot
| |
− | | |
− | The tftpd status is controlled via the Thin Clients server-manager panel if you have installed my [[Thinclient|smeserver-thinclient]] contrib.
| |
| | | |
− | If you haven't, you'll need to enable the tftp server | + | If you haven't, you'll need to enable the tftp server manually from the shell (logged in as root) |
− | config setprop tftpd status enabled | + | config setprop tftp status enabled |
− | signal-event tftpd-conf | + | signal-event smeserver-tftp-server-update |
| | | |
| If for any reason the tftp server isn't running, try: | | If for any reason the tftp server isn't running, try: |
− | service tftpd restart | + | systemctl restart tftp |
| | | |
| === Defaults === | | === Defaults === |
Line 94: |
Line 104: |
| | | |
| These settings can be set/changed via | | These settings can be set/changed via |
− | config setprop tftpd <prop> <value> | + | config setprop tftp <prop> <value> |
− | signal-event tftpd-conf | + | signal-event smeserver-tftp-server-update |
| | | |
| <nowiki>*1</nowiki> blksize does not have a default entry in the configuration database. It can be added as above or removed via | | <nowiki>*1</nowiki> blksize does not have a default entry in the configuration database. It can be added as above or removed via |
| | | |
| see Bug 10646 for updated tftp contrib with addition of default setting | | see Bug 10646 for updated tftp contrib with addition of default setting |
− | config delprop tftpd blksize | + | config delprop tftp blksize |
− | signal-event tftpd-conf | + | signal-event smeserver-tftp-server-update |
| | | |
| <nowiki>*2</nowiki> refuse does not have a default entry in the configuration database. It can be added as above or removed via | | <nowiki>*2</nowiki> refuse does not have a default entry in the configuration database. It can be added as above or removed via |
− | config delprop tftpd refuse | + | config delprop tftp refuse |
− | signal-event tftpd-conf | + | signal-event smeserver-tftp-server-update |
| | | |
| ===Setup PXE Booting=== | | ===Setup PXE Booting=== |
Line 121: |
Line 131: |
| Finally, create the directory "/tftpboot/pxelinux.cfg". The configuration file (equivalent of syslinux.cfg -- see the SYSLINUX FAQ for the options here) will live in this directory. | | Finally, create the directory "/tftpboot/pxelinux.cfg". The configuration file (equivalent of syslinux.cfg -- see the SYSLINUX FAQ for the options here) will live in this directory. |
| | | |
− | The actual linux image needs to be extracted here: | + | The actual linux image and any associated files need to be extracted from a source distribution ISO here: |
| + | |
| /tftpboot/images/{name_of_distro} | | /tftpboot/images/{name_of_distro} |
| + | |
| | | |
| ====Menus==== | | ====Menus==== |
Line 266: |
Line 278: |
| append initrd=initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=http://192.168.10.1/computer/filesystem.squashfs | | append initrd=initrd.img boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch=http://192.168.10.1/computer/filesystem.squashfs |
| </pre> | | </pre> |
− |
| |
| | | |
| ===Voip Phones=== | | ===Voip Phones=== |
Line 279: |
Line 290: |
| | | |
| Most Voip phone scan read a config file based on their MAC address to configure themselves during boot. | | Most Voip phone scan read a config file based on their MAC address to configure themselves during boot. |
− | This can takea while to set up but is a massive time saver. | + | This can take a while to set up but is a massive time saver. |
| | | |
| ===Related Contribs=== | | ===Related Contribs=== |
| | | |
− | https://wiki.koozali.org/Thinclient
| + | [[Thinclient|smeserver-thinclient]] |
− | | |
− | This can aid with basic tftpd setup.
| |
| | | |
− | There is also a distro called [https://sourceforge.net/projects/thinstation/ Thinstation] This PXE it's own Linux distro that can be used a thin client.
| + | This can aid with basic tftp setup. |
| | | |
| === Uninstall === | | === Uninstall === |
Line 294: |
Line 303: |
| | | |
| If you want to fully clean up, by removing the entries from the configuration database | | If you want to fully clean up, by removing the entries from the configuration database |
− | config delete tftpd | + | config delete tftp |
| | | |
| === Source === | | === Source === |