{"id":180,"date":"2010-03-04T20:43:53","date_gmt":"2010-03-04T19:43:53","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=180"},"modified":"2010-03-04T20:44:24","modified_gmt":"2010-03-04T19:44:24","slug":"install-debian-etch-as-guest-in-virtualbox","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2010\/03\/04\/install-debian-etch-as-guest-in-virtualbox\/","title":{"rendered":"Install Debian Etch as guest in Virtualbox"},"content":{"rendered":"<p>In order to prepare Linux executables for distribution, it&#8217;s a good idea to compile the executable in an old Linux distribution. Thus it depends only on &#8220;old&#8221; versions of libraries and the executable should work on most distributions out there (which provide newer but backward compatible libraries). E.g. <a href=\"http:\/\/www.dialogblocks.com\" target=\"_blank\">Dialogblocks<\/a>, a RAD for wxWidgets, is built in Debian Etch. If you don&#8217;t have a spare computer lying around it&#8217;s a good idea to install Debian Etch in a virtual machine like <a href=\"http:\/\/www.virtualbox.org\/\" target=\"_blank\">VirtualBox<\/a>.<!--more--><\/p>\n<p>The following instructions are mainly taken from <a href=\"http:\/\/virtualboxes.org\/doc\/installing-guest-additions-on-debian\/\" target=\"_blank\">this site<\/a>, but \u00c2\u00a0I want to keep them on my site for reference. So<\/p>\n<ul>\n<li> first download <a href=\"http:\/\/www.debian.org\/releases\/etch\/debian-installer\/\" target=\"_blank\">Debian Etch<\/a>. The netinst CD image will suffice.<\/li>\n<li>Create a new virtual machine, Linux\/Debian, 1GB, create a new 20GB harddisc. Attach the downloaded iso image as cdrom.<\/li>\n<li>Start the machine and install Debian Etch as usual.<\/li>\n<li>After the installation process, update the system with &#8220;apt-get update&#8221; and &#8220;apt-get upgrade&#8221; as root.<\/li>\n<li>Prepare system for kernel module build with &#8220;apt-get install build-essential module-assistant&#8221; as root.<\/li>\n<li>As root run &#8220;m-a prepare&#8221; so that modules can be build.<\/li>\n<li>Now mount the guest additions image, run &#8220;cd \/cdrom&#8221; and &#8220;\u00ef\u00bb\u00bf sh .\/VBoxLinuxAdditions-x86.run&#8221; as root.<\/li>\n<\/ul>\n<p>In fact Debian Etch doesn&#8217;t run perfectly, e.g. you can&#8217;t change the screen size to any arbitrary value. And Debian crashes during a reboot. But it&#8217;s good enough to just compile your executable. The main development should still be done on your favorite OS\/Linux distribution.<\/p>\n<ul>\n<li>reboot<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In order to prepare Linux executables for distribution, it&#8217;s a good idea to compile the executable in an old Linux distribution. Thus it depends only on &#8220;old&#8221; versions of libraries and the executable should work on most distributions out there (which provide newer but backward compatible libraries). E.g. Dialogblocks, a RAD for wxWidgets, is built &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2010\/03\/04\/install-debian-etch-as-guest-in-virtualbox\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Debian Etch as guest in Virtualbox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[30,9],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-development","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-2U","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/180"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":3,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":183,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions\/183"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}