{"id":60,"date":"2012-10-21T02:44:39","date_gmt":"2012-10-21T07:44:39","guid":{"rendered":"http:\/\/nodakengineering.com\/?page_id=60"},"modified":"2014-07-09T13:11:11","modified_gmt":"2014-07-09T18:11:11","slug":"linux","status":"publish","type":"page","link":"https:\/\/nodakengineering.com\/?page_id=60","title":{"rendered":"Linux"},"content":{"rendered":"<p>Thank you Linus Torvalds!<\/p>\n<figure id=\"attachment_319\" aria-describedby=\"caption-attachment-319\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/10\/Linux-Logo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-319\" title=\"Linux-Logo\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/10\/Linux-Logo-300x178.jpg\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/10\/Linux-Logo-300x178.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/10\/Linux-Logo.jpg 468w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-319\" class=\"wp-caption-text\">Linux<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h2><a title=\"Linux From Scratch Build Environment\" href=\"http:\/\/nodakengineering.com\/?page_id=483\">Linux From Scratch Build Environment<\/a><\/h2>\n<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 how-to is 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<h2><a name=\"PKG\"><\/a>LFS Slackware VirtualBox Appliance<\/h2>\n<p>I&#8217;ve created an optimized Linux From Scratch build environment using Slackware 14.0 and exported it as an Oracle VirtualBox Appliance to ease installation. The size was kept to minimum (less than 200 MB) and the packages included are as follows:<\/p>\n<pre><strong>a packages:<\/strong>\r\naaa_base\r\naaa_elflibs\r\naaa_terminfo\r\nbash\r\nbin\r\nbzip2\r\ncoreutils\r\ndevs\r\ndialog\r\ne2fsprogs\r\nelvis\r\netc\r\nfindutils\r\ngawk\r\nglibc-solibs\r\ngrep\r\ngzip\r\nkernel-firmware\r\nkernel-huge\r\nkernel-modules\r\nkmod\r\nlilo\r\nlogrotate\r\nopenssl-solibs\r\npatch\r\npkgtools\r\nprocps\r\nsed\r\nshadow\r\nsharutils\r\nsysklogd\r\nsysvinit\r\nsysvinit-functions\r\nsysvinit-scripts\r\ntar\r\nudev\r\nutil-linux\r\nwhich\r\nxz\r\n\r\n<strong>ap packages:<\/strong>\r\ndiffutils\r\nscreen\r\nslackpkg\r\ntexinfo\r\n\r\n<strong>d packages:<\/strong>\r\nbinutils\r\nbison\r\ngcc\r\nm4\r\nmake\r\nperl\r\n\r\n<strong>l packages:<\/strong>\r\nglibc\r\ngmp\r\nlibmpc\r\nmpfr\r\n\r\n<strong>n packages:<\/strong>\r\ndhcpcd\r\ngnupg\r\niputils\r\nnet-tools\r\nnetwork-scripts\r\nopenssh\r\nwget<\/pre>\n<p>You can get the appliance <a title=\"Oracle VirtualBox Appliance\" href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/12\/LFS.ova\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n<p>You can get the tagfiles to modify your Slackware ISO and as well as a floppy image with the tagfiles included <a title=\"Slackware Minimal\" href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/12\/Slackware_minimal.zip\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n<p><strong>NOTE:<\/strong> Login as <em>root<\/em> with password <em>slack<\/em><\/p>\n<h2 class=\"title\"><a title=\"Permalink to Recovering from a Botched CrunchBang Upgrade\" href=\"http:\/\/nodakengineering.com\/?p=1105\">Recovering from a Botched CrunchBang Upgrade<\/a><\/h2>\n<p>I recently botched an upgrade of the kernel in my CrunchBang VM and it broke the X window system leaving me staring at a black screen after boot. Thankfully it wasn&#8217;t terribly difficult to fix. See below for the steps to take to re-apply the upgrades and make the system bootable once again.<\/p>\n<p>When initially booting, CrunchBang shows a Grub menu with the kernel to boot and another option with the same kernel in <strong>recovery mode<\/strong>. Choose this second kernel option to log in as root and then run these commands in single-user mode.<\/p>\n<p>First we need to get the network interface up:<\/p>\n<pre># ip link set eth0 up<\/pre>\n<p>Next we need to get an IP address using DHCP:<\/p>\n<pre># dhclient eth0<\/pre>\n<p>Let&#8217;s see how the interface looks now:<\/p>\n<pre># ifconfig eth0<\/pre>\n<p>And now we can run the update process again:<\/p>\n<pre># apt-get update\r\n# apt-get dist-upgrade<\/pre>\n<p>Reboot and it should all just work now:<\/p>\n<pre># shutdown -r now<\/pre>\n<p>This is not a cure-all for all booting problems, but for a botched kernel upgrade this did the trick for me!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thank you Linus Torvalds! &nbsp; Linux From Scratch Build Environment Would you like to build\u00a0Linux From Scratch\u00a0but are unsure of the optimum environment in which to do so? If so, then this how-to is 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 &#8230; <a title=\"Linux\" class=\"read-more\" href=\"https:\/\/nodakengineering.com\/?page_id=60\" aria-label=\"Read more about Linux\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":451,"menu_order":1,"comment_status":"closed","ping_status":"open","template":"page-without-sidebar.php","meta":{"footnotes":""},"class_list":["post-60","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/60","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=60"}],"version-history":[{"count":15,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/60\/revisions"}],"predecessor-version":[{"id":1114,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/60\/revisions\/1114"}],"up":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/451"}],"wp:attachment":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}