{"id":483,"date":"2012-11-07T11:27:27","date_gmt":"2012-11-07T17:27:27","guid":{"rendered":"http:\/\/nodakengineering.com\/?page_id=483"},"modified":"2012-12-23T22:26:05","modified_gmt":"2012-12-24T04:26:05","slug":"linux-from-scratch-build-environment","status":"publish","type":"page","link":"https:\/\/nodakengineering.com\/?page_id=483","title":{"rendered":"LFS Build Environment"},"content":{"rendered":"<p>Would you like to build\u00a0<a href=\"http:\/\/www.linuxfromscratch.org\/lfs\/\" target=\"_blank\"><strong>Linux From Scratch<\/strong><\/a>\u00a0but are unsure of the optimum environment in which to do so? If so, then this\u00a0how-to\u00a0is for you. I\u2019ll be showing you how to install a customized\u00a0<a href=\"http:\/\/www.slackware.com\/\" target=\"_blank\"><strong>Slackware Linux<\/strong><\/a>\u00a0virtual machine that you can utilize in your\u00a0<a href=\"http:\/\/www.linuxfromscratch.org\/lfs\/\" target=\"_blank\"><strong>LFS<\/strong>\u00a0<\/a>adventure. The advantage of doing this in a VM is that you leave your base OS untouched and can easily revert to prior images or even start again from scratch (no pun intended) if needed.\u00a0So roll up your sleeves, grab a cup of Joe or a pint, and get ready to get your geek on.<\/p>\n<p>Prerequisites:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.linuxfromscratch.org\/lfs\/view\/stable\/\" target=\"_blank\">Linux From Scratch Book<\/a><\/li>\n<li><a href=\"http:\/\/www.slackware.com\/\" target=\"_blank\">Slackware Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.virtualbox.org\/\" target=\"_blank\">VirtualBox<\/a><\/li>\n<\/ul>\n<p>First things first of course is to become familiar with the LFS book. If you really want to know what goes on under the hood of Linux, this is where to start. Once you&#8217;re finished building your own Linux From Scratch it&#8217;s a very satisfying feeling to see it boot. (<a href=\"http:\/\/www.linuxfromscratch.org\/hints\/downloads\/files\/essential_prereading.txt\" target=\"_blank\"><strong>Essential Pre-reading<\/strong><\/a>)<\/p>\n<p>Next download the latest <a href=\"http:\/\/www.slackware.com\/torrents\/slackware-14.0-install-d1.torrent\">Slackware Linux ISO<\/a>. All you need is the first DVD. I recommend if this is your first trip down the LFS hole that you go with the 32-bit version.<\/p>\n<p>And finally download and install the VirtualBox binaries.<\/p>\n<p>To facilitate this process, let&#8217;s break it down into the following stages which we&#8217;ll cover sequentially:<\/p>\n<ol>\n<li><a href=\"#VM\">Create VirtualBox host VM<\/a><\/li>\n<li><a title=\"LFS Build Environment (Page 2)\" href=\"http:\/\/nodakengineering.com\/?page_id=501\">Tweak\/Optimize VM<\/a><\/li>\n<li><a title=\"LFS Build Environment (Page 3)\" href=\"http:\/\/nodakengineering.com\/?page_id=503\">Install host OS (Slackware)<\/a><\/li>\n<li><a title=\"LFS Build Environment (Page 6)\" href=\"http:\/\/nodakengineering.com\/?page_id=612\">Connect LFS Drive and Final Setup<\/a><\/li>\n<\/ol>\n<h3>Creating the VirtualBox Host VM<\/h3>\n<p>Now let&#8217;s take a look at how to create an LFS build environment using Slackware as the host in a VirtualBox <a name=\"VM\">VM:<\/a><\/p>\n<figure id=\"attachment_531\" aria-describedby=\"caption-attachment-531\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Create-VM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-531\" title=\"Slackware Create VM\" alt=\"Slackware Create VM\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Create-VM-300x232.jpg\" width=\"300\" height=\"232\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Create-VM-300x232.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Create-VM.jpg 482w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-531\" class=\"wp-caption-text\">Slackware Create VM<\/figcaption><\/figure>\n<p>Select <strong>Linux 2.6<\/strong> as Slackware is not an option&#8230;click <strong>Next<\/strong><\/p>\n<figure id=\"attachment_533\" aria-describedby=\"caption-attachment-533\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Memory.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-533\" title=\"Slackware Memory\" alt=\"Slackware Memory\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Memory-300x232.jpg\" width=\"300\" height=\"232\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Memory-300x232.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Memory.jpg 482w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-533\" class=\"wp-caption-text\">Slackware Memory<\/figcaption><\/figure>\n<p>The default of <strong>256 MB<\/strong>\u00a0of memory is more than sufficient for LFS and Slackware&#8230;click <strong>Next<\/strong><\/p>\n<figure id=\"attachment_535\" aria-describedby=\"caption-attachment-535\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-535\" title=\"Slackware VM HD\" alt=\"Slackware VM HD\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-300x232.jpg\" width=\"300\" height=\"232\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-300x232.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD.jpg 482w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-535\" class=\"wp-caption-text\">Slackware VM HD<\/figcaption><\/figure>\n<p>Select <strong>Create a virtual hard drive now<\/strong> and click <strong>Create<\/strong><\/p>\n<figure id=\"attachment_537\" aria-describedby=\"caption-attachment-537\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-Type.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-537\" title=\"Slackware VM HD Type\" alt=\"Slackware VM HD Type\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-Type-300x221.jpg\" width=\"300\" height=\"221\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-Type-300x221.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-HD-Type.jpg 563w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-537\" class=\"wp-caption-text\">Slackware VM HD Type<\/figcaption><\/figure>\n<p>Select <strong>VDI (VirtualBox Disk Image)<\/strong> as drive type and click <strong>Next<\/strong><\/p>\n<figure id=\"attachment_539\" aria-describedby=\"caption-attachment-539\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Dynamically-allocated.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-539\" title=\"Slackware Dynamically allocated\" alt=\"Slackware Dynamically allocated\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Dynamically-allocated-300x221.jpg\" width=\"300\" height=\"221\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Dynamically-allocated-300x221.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Dynamically-allocated.jpg 563w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-539\" class=\"wp-caption-text\">Slackware Dynamically allocated<\/figcaption><\/figure>\n<p>Select <strong>Dynamically allocated<\/strong> and click <strong>Next<\/strong><\/p>\n<figure id=\"attachment_541\" aria-describedby=\"caption-attachment-541\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-HD-Size.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-541\" title=\"Slackware HD Size\" alt=\"Slackware HD Size\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-HD-Size-300x221.jpg\" width=\"300\" height=\"221\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-HD-Size-300x221.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-HD-Size.jpg 563w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-541\" class=\"wp-caption-text\">Slackware HD Size<\/figcaption><\/figure>\n<p>Up the drive size to <strong>10 GB<\/strong> to give us a little breathing room (don&#8217;t worry it&#8217;s dynamically allocated so this is just the maximum it will grow to) and click <strong>Create<\/strong><\/p>\n<figure id=\"attachment_543\" aria-describedby=\"caption-attachment-543\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-Manager.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-543\" title=\"Slackware VM Manager\" alt=\"Slackware VM Manager\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-Manager-300x283.jpg\" width=\"300\" height=\"283\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-Manager-300x283.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-VM-Manager.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-543\" class=\"wp-caption-text\">Slackware VM Manager<\/figcaption><\/figure>\n<p>And now our basic LFS VM is ready for use&#8230;throttle back though, there&#8217;s more optimization that needs to be done before we install our Slackware LFS host VM.<\/p>\n<p><a title=\"LFS Build Environment (Page 2)\" href=\"http:\/\/nodakengineering.com\/?page_id=501\"><strong>Continue to Tweaking\/Optimizing the VM<\/strong><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>1\u00a0\u00a0<a title=\"LFS Build Environment (Page 2)\" href=\"http:\/\/nodakengineering.com\/?page_id=501\"><strong>2<\/strong><\/a>\u00a0<strong>\u00a0<a title=\"LFS Build Environment (Page 3)\" href=\"http:\/\/nodakengineering.com\/?page_id=503\">3<\/a>\u00a0\u00a0<a title=\"LFS Build Environment (Page 4)\" href=\"http:\/\/nodakengineering.com\/?page_id=556\">4<\/a><\/strong>\u00a0\u00a0<strong><a title=\"LFS Build Environment (Page 5)\" href=\"http:\/\/nodakengineering.com\/?page_id=607\">5<\/a>\u00a0\u00a0<a title=\"LFS Build Environment (Page 6)\" href=\"http:\/\/nodakengineering.com\/?page_id=612\">6<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Would you like to build\u00a0Linux From Scratch\u00a0but are unsure of the optimum environment in which to do so? If so, then this\u00a0how-to\u00a0is for you. I\u2019ll be showing you how to install a customized\u00a0Slackware Linux\u00a0virtual machine that you can utilize in your\u00a0LFS\u00a0adventure. The advantage of doing this in a VM is that you leave your base &#8230; <a title=\"LFS Build Environment\" class=\"read-more\" href=\"https:\/\/nodakengineering.com\/?page_id=483\" aria-label=\"Read more about LFS Build Environment\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":60,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"page-without-sidebar.php","meta":{"footnotes":""},"class_list":["post-483","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=483"}],"version-history":[{"count":34,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/483\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/483\/revisions\/488"}],"up":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/60"}],"wp:attachment":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}