{"id":1677,"date":"2018-10-26T02:02:10","date_gmt":"2018-10-26T02:02:10","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1677"},"modified":"2018-10-26T08:12:40","modified_gmt":"2018-10-26T08:12:40","slug":"how-to-install-and-use-freedos-on-virtualbox","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/26\/how-to-install-and-use-freedos-on-virtualbox\/","title":{"rendered":"How to Install and Use FreeDOS on VirtualBox"},"content":{"rendered":"<p>This step-by-step guide shows you how to install FreeDOS on VirtualBox in Linux.<\/p>\n<h2>Installing FreeDOS on VirtualBox in Linux<\/h2>\n<p>In November of 2017, I <a href=\"https:\/\/itsfoss.com\/interview-freedos-jim-hall\/\">interviewed Jim Hall<\/a> about the history behind the <a href=\"http:\/\/www.freedos.org\/\" target=\"_blank\" rel=\"noopener\">FreeDOS project<\/a>. Today, I\u2019m going to tell you how to install and use FreeDOS. Please note: I will be using <a href=\"https:\/\/www.virtualbox.org\/\" target=\"_blank\" rel=\"noopener\">VirtualBox<\/a> 5.2.14 on <a href=\"https:\/\/solus-project.com\/home\/\" target=\"_blank\" rel=\"noopener\">Solus<\/a>.<\/p>\n<p>Note: I used Solus as the host operating system for this tutorial because it is very easy to setup. One thing you should keep in mind is that Solus\u2019 Software Center contains two versions of VirtualBox: virtualbox and virtualbox-current. Solus gives you the option to use the linux-lts kernel and the linux-current kernel. virtualboxis modified for linux-lts and virtualbox-current is for linux-current.<\/p>\n<h3>Step 1 \u2013 Create New Virtual Machine<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-1.jpg\" alt=\"\" \/><\/p>\n<p>Once you open VirtualBox, press the \u201cNew\u201d button to create a new virtual machine. You can name it whatever you want, I just use \u201cFreeDOS\u201d. You can use the label to specify what version of FreeDOS you are installing. You also need to select the type and version of the operating system you will be installing. Select \u201cOther\u201d and \u201cDOS\u201d.<\/p>\n<h3>Step 2 \u2013 Select Memory Size<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-2.jpg\" alt=\"\" \/><\/p>\n<p>The next dialog box will ask you how much of the host computer\u2019s memory you want to make available to FreeDOS. The default is 32MB. Don\u2019t change it. Back in the day, this would be a huge amount of RAM for a DOS machine. If you need to, you can increase it later by right-clicking on the virtual machine you created for FreeDOS and selecting Settings -&gt; System.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-3.jpg\" alt=\"\" \/><\/p>\n<h3>Step 3 \u2013 Create Virtual Hard Disk<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-4.jpg\" alt=\"\" \/><\/p>\n<p>Next, you will be asked to create a virtual hard drive where FreeDOS and its files will be stored. Since you haven\u2019t created one yet, just click \u201cCreate\u201d.<\/p>\n<p>The next dialog box will ask you what hard disk file type you want to use. This default (VirtualBox Disk Image) works just fine. Click \u201cNext\u201d.<\/p>\n<p>The next question you will encounter is how you want the virtual disk to act. Do you want it to start small and gradually grow to its full size as you create files and install programs? Then choose dynamically allocated. If you prefer that the virtual hard drive (vhd) is created at full size, then choose fixed size. Dynamically allocated is nice if you don\u2019t plan to use the whole vhd or if you don\u2019t have very much free space on your hard drive. (Keep in mind that while the size of a dynamically allocated vhd increases as you add files, it will not drop when you remove files.) I prefer dynamically allocated, but you can choose the option that serves your needs best and click \u201cNext\u201d.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-6.jpg\" alt=\"\" \/><\/p>\n<p>Now, you can choose the size and location of the vhd. 500 MB should be plenty of space. Remember most of the programs you will be using will be text-based, thus fairly small. Once you make your adjustments, click Create,<\/p>\n<h3>Step 4 \u2013 Attach .iso file<\/h3>\n<p>Before we continue, you will need to <a href=\"http:\/\/www.freedos.org\/download\/\" target=\"_blank\" rel=\"noopener\">download<\/a> the FreeDOS .iso file. You will need to choose the CDROM \u201cstandard\u201d installer.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-7.jpg\" alt=\"\" \/><\/p>\n<p>Once the file has been downloaded, return to VirtualBox. Select your virtual machine and open the settings. You can do this by either right-clicking on the virtual machine and selecting \u201cSettings\u201d or highlight the virtual machine and click the \u201cSettings\u201d button.<\/p>\n<p>Now, click the \u201cStorage\u201d tab. Under \u201cStorage Devices\u201d, select the CD icon. (It should say \u201cEmpty\u201d next to it.) In the \u201cAttributes\u201d panel on the right, click on the CD icon and select the location of the .iso file you just downloaded.<\/p>\n<p>Note: Typically, after you install an operating system on VirtualBox you can delete the original .iso file. Not with FreeDOS. You need the .iso file if you want to install applications via the FreeDOS package manager. I generally keep the ,iso file attached the virtual machine in case I want to install something. If you do that, you have to make sure that you tell FreeDOS you want to boot from the hard drive each time you boot it up because it defaults to the attached CD\/iso. If you forget to attach the .iso, don\u2019t worry. You can do so by selecting \u201cDevices\u201d on the top of your FreeDOS virtual machine window. The .iso files are listed under \u201cOptical Drives\u201d.<\/p>\n<h3>Step 5 \u2013 Install FreeDOS<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-8.png\" alt=\"\" \/><\/p>\n<p>Now that we\u2019ve completed all of the preparations, let\u2019s install FreeDOS.<\/p>\n<p>First, you need to be aware of a bug in the most recent version of VirtualBox. If you start the virtual machine that we just created and select \u201cInstall to harddisk\u201d when the FreeDOS welcome screen appears, you will see an unending, scrolling mass of machine code. I\u2019ve only run into this issue recently and it affects both the Linux and Windows versions of VirtualBox. (I know first hand.)<\/p>\n<p>To get around this, you need to make a simple edit. When you see the FreeDOS welcome screen, press Tab. (Make sure that the \u201cInstall to harddrive\u201d option is selected.) Type the word raw after \u201cfdboot.img\u201d and hit Enter. The FreeDOS installer will then start.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-9.png\" alt=\"\" \/><\/p>\n<p>The first part of the installer will handle formatting your virtual drive. Once formatting is completed, the installer will reboot. When the FreeDOS welcome screen appears again, you will have to re-enter the raw comment you used earlier.<\/p>\n<p>Make sure that you select \u201cYes\u201d on all of the questions in the installer. One important question that doesn\u2019t have a \u201cYes\u201d or \u201cNo\u201d answer is: \u201cWhat FreeDOS packages do you want to install?. The two options are \u201cBase packages\u201d or \u201cFull installation\u201d. Base packages are for those who want a DOS experience most like the original MS-DOS. The Full installation includes a bunch of tools and utilities to improve DOS.<\/p>\n<p>At the end of the installation, you will be given the option to reboot or stay on DOS. Select \u201creboot\u201d.<\/p>\n<h3>Step 6 \u2013 Setup Networking<\/h3>\n<p>Unlike the original DOS, FreeDOS can access the internet. You can install new packages and update the ones already you have installed. In order to use networking, you need to install several applications in FreeDOS.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-10.png\" alt=\"\" \/><\/p>\n<p>First, boot into your newly created FreeDOS virtual machine. At the FreeDOS selection screen, select \u201cBoot from System harddrive\u201d.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-11.png\" alt=\"\" \/><\/p>\n<p>Now, to access the FreeDOS package manager, type fdimples. You can navigate around the package manager with the arrow keys and select categories or packages with the space bar. From the \u201cNetworking\u201d category, you need to select fdnet. The FreeDOS Project also recommends installing mtcp and wget. Hit \u201cTab\u201d several times until \u201cOK\u201d is selected and press \u201cEnter\u201d. Once the installation is complete, type reboot and hit enter. After the system reboots, boot to your system drive. If the network installation was successful, you will see several new messages at the terminal listing your network information.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/07\/freedos-tutorial-12.png\" alt=\"\" \/><\/p>\n<h4>Note<\/h4>\n<p>Sometimes the default VirtualBox setup doesn\u2019t work. If that happens, close your FreeDOS VirtualBox window. Right-click your virtual machine from the main VirtualBox screen and select \u201cSettings\u201d. The default VirtualBox network setting is \u201cNAT\u201d. Change it to \u201cBridged Adapter\u201d and retry installing the FreeDOS packages. It should work now.<\/p>\n<h3>Step 7 \u2013 Basic Usage of FreeDOS<\/h3>\n<h4>Commons Commands<\/h4>\n<p>Now that you have installed FreeDOS, let\u2019s look at a few basic commands. If you have ever used the Command Prompt on Windows, you will be familiar with some of these commands.<\/p>\n<ul>\n<li>DIR\u2013 display the contents of the current directory<\/li>\n<li>CD \u2013 change the directory you are currently in<\/li>\n<li>COPY OLD.TXT NEW.TXT\u2013 copy files<\/li>\n<li>TYPE TEST.TXT \u2013 display content of file<\/li>\n<li>DEL TEST.TXT \u2013 delete file<\/li>\n<li>XCOPY DIR NEWDIR \u2013 copy directory and all of its contents<\/li>\n<li>EDIT TEST.TXT\u2013 edit a file<\/li>\n<li>MKDIR NEWDIR \u2013 create a new directory<\/li>\n<li>CLS \u2013 clear the screen<\/li>\n<\/ul>\n<p>You can find more basic DOS commands on the web or the <a href=\"https:\/\/opensource.com\/article\/18\/6\/freedos-commands-cheat-sheet\" target=\"_blank\" rel=\"noopener\">handy cheat sheet<\/a> created by Jim Hall.<\/p>\n<h4>Running a Program<\/h4>\n<p>Running program on FreeDos is fairly easy. When you install an application with the fdimples package manager, be sure to note where the .EXE file of the application is located. This is shown in the application\u2019s details. To run the application, you generally need to navigate to the application folder and type the application\u2019s name.<\/p>\n<p>For example, FreeDOS has an editor named FED that you can install. After installing it, all you need to do is navigate to C:FED and type FED.<\/p>\n<p>Sometimes a program, such as Pico, is stored in the bin folder. These programs can be called up from any folder.<\/p>\n<p>Games usually have an .EXE program or two that you have to run before you can play the game. These setup file usually fix sound, video, or control issues.<\/p>\n<p>If you run into problems that this tutorial didn\u2019t cover, don\u2019t forget to visit the <a href=\"http:\/\/www.freedos.org\/\" target=\"_blank\" rel=\"noopener\">home of FreeDOS<\/a>. They have a wiki and several other support options.<\/p>\n<p>Have you ever used FreeDOS? What tutorials would you like to see in the future? Please let us know in the comments below.<\/p>\n<p>If you found this article interesting, please take a minute to share it on social media, Hacker News or <a href=\"http:\/\/reddit.com\/r\/linuxusersgroup\" target=\"_blank\" rel=\"noopener\">Reddit<\/a>.<\/p>\n<p><a href=\"https:\/\/itsfoss.com\/install-freedos\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This step-by-step guide shows you how to install FreeDOS on VirtualBox in Linux. Installing FreeDOS on VirtualBox in Linux In November of 2017, I interviewed Jim Hall about the history behind the FreeDOS project. Today, I\u2019m going to tell you how to install and use FreeDOS. Please note: I will be using VirtualBox 5.2.14 on &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/26\/how-to-install-and-use-freedos-on-virtualbox\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install and Use FreeDOS on VirtualBox&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1677","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1677"}],"version-history":[{"count":2,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1677\/revisions"}],"predecessor-version":[{"id":1722,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1677\/revisions\/1722"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}