{"id":158555,"date":"2019-09-29T10:00:26","date_gmt":"2019-09-29T02:00:26","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=158555"},"modified":"2019-10-09T09:35:53","modified_gmt":"2019-10-09T01:35:53","slug":"ubuntu-installation-system","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-installation-system.html","title":{"rendered":"\u90e8\u7f72ubuntu\u65e0\u4eba\u503c\u5b88\u5b89\u88c5\u7cfb\u7edf"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u65e0\u4eba\u503c\u5b88\u5b89\u88c5(Unattended Setup)\u6307\u8f6f\u4ef6\u5b89\u88c5\u65f6\u65e0\u9700\u4efb\u4f55\u7528\u6237\u5e72\u9884\uff0c\u76f4\u63a5\u6309\u9ed8\u8ba4\u6216\u901a\u8fc7\u5e94\u7b54\u6587\u4ef6\u8bbe\u7f6e\u5b89\u88c5\uff0c\u8fd9\u5bf9\u4e8e\u65e0\u7279\u6b8a\u9700\u6c42\u7684\u7528\u6237\u6216\u4f01\u4e1a\u5927\u6279\u91cf\u90e8\u7f72\u5b89\u88c5\u64cd\u4f5c\u7cfb\u7edf\u53ca\u8f6f\u4ef6\u65f6\u975e\u5e38\u65b9\u4fbf\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u73af\u5883<\/strong><\/span><\/div>\n

Ubuntu-desktop(ip:192.168.56.11)<\/p>\n

\u5b89\u88c5\u8f6f\u4ef6<\/strong><\/span><\/div>\n
\r\napt install dnsmasq apache2 system-config-kickstart\r\n<\/pre>\n
\u914d\u7f6ednsmasq<\/strong><\/span><\/div>\n
\r\nvim \/etc\/dnsmasq.conf\r\n\r\nbogus-priv\r\nfilterwin2k \r\ninterface=eth0\r\ndhcp-range=192.168.5.150,192.168.5.250,12h  \r\ndhcp-boot=pxelinux.0  \r\nenable-tftp  \r\ntftp-root=\/var\/ftpd  \r\ndhcp-authoritative \r\n<\/pre>\n

\u521b\u5efa\u5fc5\u8981\u7684\u76ee\u5f55<\/p>\n

\r\nmkdir \/var\/ftpd\r\nmkdir \/var\/www\/ubuntu\r\n<\/pre>\n

\u6302\u8f7d\u5b89\u88c5\u4ecb\u8d28<\/p>\n

\r\nmount \/dev\/cdroom \/mnt\r\ncp \/mnt\/* \/var\/www\/ubuntu -arf\r\n<\/pre>\n

\u5c06\u7f51\u7edc\u542f\u52a8\u6587\u4ef6\u590d\u5236\u5230\u7f51\u7edc\u5f15\u5bfc\u76ee\u5f55<\/p>\n

\r\ncp \/var\/www\/ubuntu\/install\/netboot\/* \/var\/ftpd -arf\/\r\n<\/pre>\n

\u4fee\u6539apache2\u914d\u7f6e\u6587\u4ef6<\/p>\n

\r\nvim \/etc\/apache2\/sites-enabled\/000-default.conf\r\n\r\nDocumentRoot \/var\/www\r\n#\u8fd9\u91cc\u53ea\u7ed9\u51fa\u4e86\u5173\u952e\u914d\u7f6e\r\n<\/pre>\n

\u8fd0\u884csystem-config-kickstart\u751f\u6210ks.cfg\u6587\u4ef6<\/p>\n

\u7f16\u8f91\u54cd\u5e94\u6587\u4ef6ks.cfg<\/p>\n

\r\nvim \/var\/www\/ks.cfg\r\n\r\n#Generated by Kickstart Configurator\r\n#platform=AMD64 or Intel EM64T\r\n\r\ninstall\r\ntext\r\n#System language\r\nlang en_US\r\n#Language modules to install\r\nlangsupport en_US\r\n#System keyboard\r\nkeyboard us\r\n#System mouse\r\nmouse\r\n#System timezone\r\ntimezone --utc Asia\/Shanghai\r\n#Root password\r\nrootpw --disabled\r\n#Initial user\r\nuser wsfnk --fullname \"wsfnk\" --iscrypted --password $1$Q4SPUaqc$KCsPmeMevJS0zzrqLTeVw0\r\n#Reboot after installation\r\nreboot\r\n#Use text mode install\r\n#text\r\n#Install OS instead of upgrade\r\n#install\r\n#Use Web installation\r\nurl --url http:\/\/192.168.56.11\/ubuntu\r\n#System bootloader configuration\r\nbootloader --location=mbr \r\n#Clear the Master Boot Record\r\nzerombr yes\r\n#Partition clearing information\r\nclearpart --all --initlabel \r\n#Disk partitioning information\r\npart swap --size 512 \r\npart \/boot --fstype ext4 --size 200 \r\npart \/ --fstype ext4 --size 1 --grow \r\n#System authorization infomation\r\nauth  --useshadow  --enablemd5 \r\n#Firewall configuration\r\nfirewall --disabled \r\n#Do not configure the X Window System\r\nskipx\r\n%packages\r\nopenssh-server\r\nopenssh-client\r\ngcc\r\ng++\r\nvim\r\ncurl\r\n<\/pre>\n

\u7f16\u8f91\u5f15\u5bfc\u6587\u4ef6<\/p>\n

\r\nvim \/var\/ftpd\/pxelinux.cfg\/default\r\n\r\npath ubuntu-installer\/amd64\/boot-screens\/\r\ninclude ubuntu-installer\/amd64\/boot-screens\/menu.cfg\r\ndefault ubuntu-installer\/amd64\/boot-screens\/vesamenu.c32\r\ndefault install\r\nlabel install\r\nkernel ubuntu-installer\/amd64\/linux\r\nappend ks=http:\/\/192.168.56.11\/ks.cfg initrd=ubuntu-installer\/amd64\/initrd.gz --\r\nprompt 0\r\ntimeout 0\r\n<\/pre>\n
\u542f\u52a8\u76f8\u5173\u670d\u52a1<\/strong><\/span><\/div>\n
\r\nsystemctl start apache2\r\nsystemctl start dnsmasq\r\n<\/pre>\n

\u82e5\u5b89\u88c5\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff0c<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u8bf7\u5728ubuntu-installer\/amd64\/boot-screens\/txt.cfg\u91cc\uff0cappend\u52a0\u5165\u5982\u4e0b\u914d\u7f6e<\/p>\n

\r\nlive-installer\/net-image=http:\/\/192.168.56.11\/ubuntu\/install\/filesystem.squashfs clock-setup\/ntp=false ip=dhcp ksdevice=bootif\r\n<\/pre>\n

\u89e3\u51b3\u56fe\u7247\u6240\u793a\u7684\u9519\u8bef<\/p>\n

\r\nvim \/var\/ftpd\/ubuntu-installer\/amd64\/boot-screens\/txt.cfg\r\n\r\ndefault install\r\nlabel install\r\nmenu label ^Install\r\nkernel ubuntu-installer\/amd64\/linux\r\nappend ks=http:\/\/192.168.56.11\/ks.cfg vga=788 initrd=ubuntu-installer\/amd64\/initrd.gz live-installer\/net-image=http:\/\/192.168.56.11\/ubuntu\/install\/filesystem.squashfs clock-setup\/ntp=false ip=dhcp ksdevice=bootif --- quit\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Ubuntu-desktop(ip:192.168.56.11) apt install dnsmasq ap […]<\/p>\n","protected":false},"author":668,"featured_media":123692,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-158555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/158555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=158555"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/158555\/revisions"}],"predecessor-version":[{"id":159080,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/158555\/revisions\/159080"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/123692"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=158555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=158555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=158555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}