{"id":254853,"date":"2014-10-04T19:18:35","date_gmt":"2014-10-04T11:18:35","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=254853"},"modified":"2014-10-07T13:22:06","modified_gmt":"2014-10-07T05:22:06","slug":"setup-pxe-server-through-ddwrt","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=254853","title":{"rendered":"Setup pxe server through ddwrt on debian system"},"content":{"rendered":"<p><a href=\"http:\/\/www.syslinux.org\/wiki\/index.php\/PXELINUX#Options\">http:\/\/www.syslinux.org\/wiki\/index.php\/PXELINUX#Options<\/a><\/p>\n<p><a href=\"https:\/\/help.ubuntu.com\/community\/PXEInstallMultiDistro\">https:\/\/help.ubuntu.com\/community\/PXEInstallMultiDistro<\/a><\/p>\n<p><a href=\"http:\/\/blog.zhenglei.net\/wp-content\/uploads\/2014\/10\/read-only_diskless_debian7.pdf\">read-only_diskless_debian7<\/a><\/p>\n<p><a href=\"http:\/\/www.unixmen.com\/setup-local-repository-with-debian-7\/\">http:\/\/www.unixmen.com\/setup-local-repository-with-debian-7\/<\/a><\/p>\n<p>#\u00a0 Setup tftp server<\/p>\n<p>apt-get install tftpd-hpa<\/p>\n<p>\/etc\/init.d\/tftpd-hpa start<\/p>\n<p>&nbsp;<\/p>\n<p>#\u00a0 Testing tftp server<\/p>\n<p>apt-get install tftp<\/p>\n<p>uname -a &gt;\/srv\/tftp\/test<\/p>\n<p>tftp 127.0.0.1<\/p>\n<p>&gt;get test<\/p>\n<p>&gt;quit<\/p>\n<p>diff test \/srv\/tftp\/test<\/p>\n<p>&nbsp;<\/p>\n<p># Install syslinux<\/p>\n<pre>apt-get install syslinux\r\n\r\n<\/pre>\n<pre>cp \/usr\/lib\/syslinux\/pxelinux.0 \/srv\/tftp\/\r\n\r\n# copy other interested support files<\/pre>\n<pre>cp \/usr\/lib\/syslinux\/menu.c32 \/srv\/tftp\r\ncp \/usr\/lib\/syslinux\/memdisk \/srv\/tftp\r\ncp \/usr\/lib\/syslinux\/mboot.c32 \/srv\/tftp\r\ncp \/usr\/lib\/syslinux\/chain.c32 \/srv\/tftp<\/pre>\n<p>&nbsp;<\/p>\n<pre>mkdir -pv \/srv\/tftp\/pxelinux.cfg<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.syslinux.org\/wiki\/index.php\/P &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=254853\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2,18,1],"tags":[163],"class_list":["post-254853","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux","category-software-download","category-uncategorized","tag-pxe"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254853"}],"version-history":[{"count":8,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254853\/revisions"}],"predecessor-version":[{"id":254862,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/254853\/revisions\/254862"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}