DragonFly BSD

varialus

et

Anisoptera

The following is an unpaid personal wiki page about my experiences, issues, and workarounds related to DragonFly BSD.

Table of Contents

  1. Featured

  2. Tidbits

    • Shell/Console/Command-Line-Prompt: tcsh/bash, ctrl-d/tab-tab, partial-previous-command-up-key/ctrl-r-partial-previous-command, rehash
    • Package-Management: pkgng/apt-get
    • Text-Editor: ee/nano, vi :q!
    • Manual: man man
    • Power-Down: shutdown -p now
    • Find File: grep, find / -name fileName
    • Process Management: top, ps, pkill, kill
    • File-System: Hammer
    • Operating System: DragonFly BSD
  3. Issues

    • Disclaimer
    • Installer Supported Desktops: dfly 3.8.1
    • Early Keyboard Selection: dfly 3.8.1
    • Encryption Keyboard Selection: dfly 3.0.2
    • Random Key for Encrypted Swap: dfly 3.0.2
    • Stay Decrypted for Configuration: dfly 3.0.2
    • No Confirmation for Decryption: dfly 3.0.2
    • Plain Text Password in Install Log: dfly 3.8.1
    • USB Installation Media Named Uniquely: dfly 3.0.2
    • 3TB+ HD Install: dfly 3.0.2, fixed in snapshot on 8/14/2012
    • Overwrite 3TB+ Partition Table: snapshot 8/14/2012
    • Wiki Centered Text: 8/25/2012
    • XOrg Quit Errors: dfly 3.0.2, VirtualBox 4.1.20
  4. Workarounds

    • Install Non-GUI on 3TB+ Hard Drive
  5. Contribute

    • Port VirtualBox to DragonFly BSD
    • Update and Fix Bugs of Desktop Environments in DPorts
    • DragonFly BSD Network Shares Walkthrough

Featured

Long Walkthrough of DragonFly BSD Installation and Configuration

This walkthrough describes how I install and configure DragonFly BSD. You should customize your installation as you see fit. The walkthrough is being run on VirtualBox which in turn is running on a recent MacBook with plenty of memory.

  1. Create a virtual machine in VirtualBox using the FreeBSD (64 bit) template with 4 GB memory, 128 GB dynamically allocated VDI virtual disk image

  2. Set the the virtual hardware clock set to UTC time.

  3. Download and extract the x86_64 CD installation media and then add it to the virtual machine, but remember to remove it before taking VirtualBox snapshots.

  4. Start the virtual machine. Before it finishes booting, the will be greeted with the following boot menu.

    DragonFly/i386 bootstrap loader, Revision 1.1
    (justin@pkgbox64.dragonflybsd.org, Mon Jun 16 21:33:12 PDT 2014)
                                               |
    1. Boot DragonFly [kernel]                 |   ,--,           |           ,--,
    2. Boot DragonFly in Safe Mode             |   |   `-,       ,^,       ,-'   |
    3. Boot DragonFly without AHCI driver      |    `,    `-,   (/ \)   ,-'    ,'
    4. Boot DragonFly without ACPI driver      |      `-,    `-,/   \,-'    ,-'
    9. Escape to loader prompt (also ESC)      |         `------(   )------'
    r. Boot DragonFly to a rescue ramdisk      |     ,----------(   )----------,
    s. Boot DragonFly in single user mode      |    |        _,-(   )-,_        |
    v. Boot DragonFly with verbose logging     |     `-,__,-'   \   /   `-,__,-'
    R. Reboot                                  |                 | |
                                               |                 | |
                                               |                 | |
                                               |                 | |
                                               |                 | |
                                               |                 | |
                                               |                 `|'
                                               |
    Booting in 10 seconds... _
    
  5. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.

    Welcome to DragonFly!
    
    
    To start the installer, login as 'installer'.  To just get a shell prompt,
    login as 'root'.
    
    
    DragonFly/x86_64 (Amnesiac) (ttyv0)
    
    
    login: _
    
  6. Type 'installer' without quotes and press enter.

  7. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
     ------------------------| Welcome to DragonFly BSD |------------------------- .
    |                                                                             |.
    | Welcome to the DragonFly BSD Live CD.                                       |.
    |                                                                             |.
    | DragonFly BSD is an efficient and elegant BSD Unix-derived operating        |.
    | system.  For more information, see http://www.dragonflybsd.org              |.
    |                                                                             |.
    | From this CD, you can boot into DragonFly BSD ``live'' (without installing  |.
    | it) to evaluate it, to install it manually, or to troubleshoot problems     |.
    | with an existing installation, using either a command prompt or menu-driven |.
    | utilities.                                                                  |.
    |                                                                             |.
    | Also, you can use this automated application to assist you in installing    |.
    | DragonFly BSD on this computer and configuring it once it is installed.     |.
    |                                                                             |.
    |        < Install DragonFly BSD >_ < Configure an Installed System >         |.
    |    < Live CD Utilities >  < Exit to Live CD >  < Reboot this Computer >     |.
    |                     < Setup NetBoot Install Services >                      |.
     ----------------------------------------------------------------------------- .
                                                                                   .
                                                                                   .
    Install DragonFly BSD on a HDD or HDD partition on this computer               .
    
  8. The bottom line changes depending on which option is selected.

  9. Highlight the option < Install DragonFly BSD > and press enter.

  10. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
     --------------------------| Begin Installation |----------------------------- .
    |                                                                             |.
    | This application will install DragonFly BSD on one of the hard disk drives  |.
    | attached to this computer. It has been designed to make it easy to install  |.
    | DragonFly BSD in the typical case. If you have special requirements that    |.
    | are not addressed by this installer, or if you have problems using it, you  |.
    | are welcome to install DragonFly BSD manually. To do so select Exit to Live |.
    | CD, login as root, and follow the instructions given in the file /README .  |.
    |                                                                             |.
    | NOTE! As with any installation process, YOU ARE STRONGLY ENCOURAGED TO BACK |.
    | UP ANY IMPORTANT DATA ON THIS COMPUTER BEFORE PROCEEDING!                   |.
    |                                                                             |.
    | < Install DragonFly BSD >_ < Return to Welcome Menu >  < Exit to Live CD >  |.
     ----------------------------| Press F1 for Help |---------------------------- .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  11. Highlight the option < Install DragonFly BSD > and press enter.

  12. The following menu, specific to your hardware, will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
             -----------------------| Select Disk |----------------------- ---,    .
            |                                                             |    |   .
            | Select a disk on which to install DragonFly BSD             |_,-'    .
            |                                                             |        .
            | < ad0: 131072MB <VBOX HARDDISK 1.0> at ata0-master UDMA33 >_|        .
            | < vn0 >                                                     |        .
            | < vn1 >                                                     |        .
            | < vn2 >                                                     |        .
            | < vn3 >                                                     |        .
            | < Return to Begin Installation >                            |        .
             -------------------------------------------------------------         .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  13. Highlight the disk on which to install DragonFly BSD, in this case ad0, and press Enter.

  14. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
           ------------------------| How Much Disk? |------------------------  |   .
          |                                                                  |'    .
          | Select how much of this disk you want to use for DragonFly BSD.  |     .
          |                                                                  |     .
          | ad0: 131072MB <VBOX HARDDISK 1.0> at ata0-master UDMA33          |     .
          |                                                                  |     .
          |            < Use Entire Disk >_ < Use Part of Disk >             |     .
          |                    < Return to Select Disk >                     |     .
           ------------------------------------------------------------------      .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  15. If you would like to use your entire disk, then highlight < Use Entire Disk > and press enter.

  16. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                        ------| Are you absolutely sure? |------  \)   ,-'    ,'   .
                       |                                        |  \,-'    ,-'     .
                       | WARNING! ALL data in ALL partitions on |  )------'        .
                       | the disk                               |  )----------,    .
                       |                                        |  )-,_        |   .
                       | ad0: 131072MB <VBOX HARDDISK 1.0> at   |  /   `-,__,-'    .
                       | ata0-master UDMA33                     | |                .
                       |                                        | |                .
                       | will be IRREVOCABLY ERASED!            | |                .
                       |                                        | |                .
                       | Are you ABSOLUTELY SURE you wish to    | |                .
                       | take this action? This is your LAST    | |                .
                       | CHANCE to cancel!                      ||'                .
                       |                                        |                  .
                       |           < OK >_ < Cancel >           |                  .
                        ----------------------------------------                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  17. If you are absolutely sure, highlight < OK > and press enter.

  18. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                         -----------| Information |------------    )----------,    .
                        |                                      |   )-,_        |   .
                        | The disk                             |   /   `-,__,-'    .
                        |                                      || |                .
                        | ad0: 131072MB <VBOX HARDDISK 1.0> at || |                .
                        | ata0-master UDMA33                   || |                .
                        |                                      || |                .
                        | was formatted.                       || |                .
                        |                                      || |                .
                        |                < OK >                |`|'                .
                         --------------------------------------                    .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  19. Press enter.

  20. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
               -----------------| Select file system |------------------ -----,    .
              |                                                         |      |   .
              | Please select the file system you want to use with      |,__,-'    .
              | DragonFly BSD.                                          |          .
              |                                                         |          .
              | HAMMER is the new DragonFly BSD file system. UFS is the |          .
              | traditional BSD file system.                            |          .
              |                                                         |          .
              | < Use HAMMER >_ < Use UFS >  < Return to Select Disk >  |          .
               ---------------------------------------------------------           .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  21. If you want to use HAMMER, and honestly why wouldn't you, then highlight HAMMER and press enter.

  22. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
           --------------------| Create Subpartitions |---------------------    |  .
          |                                                                 | ,'   .
          | Set up the subpartitions (also knows as just `partitions' in    |'     .
          | BSD tradition) you want to have on this primary partition. In   |      .
          | most cases you should be fine with the default settings.        |-,    .
          |                                                                 |  |   .
          | For Capacity, use 'M' to indicate megabytes, 'G' to indicate    |-'    .
          | gigabytes, and so on (up to 'E'.) A single '*' indicates 'use   |      .
          | the remaining space on the primary partition'.                  |      .
          |                                                                 |      .
          | Mountpoint  Capacity  Encrypted                                 |      .
          | [/boot_   ] [768M   ] [ ]     < Ins > < Del >                   |      .
          | [swap     ] [8192M  ] [ ]     < Ins > < Del >                   |      .
          | [/        ] [*      ] [ ]     < Ins > < Del >                   |      .
          |                               < Add >                           |      .
          |                                                                 |      .
          |     < Accept and Create >  < Return to Select Disk >            |      .
           -------------------| Press F1 for Help |-------------------------       .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  23. Highlight < Accept and Create > and press enter.

  24. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
           -------------------------| Install OS |--------------------------       .
          |                                                                 |-,    .
          | Everything is now ready to install the actual files which       |  |   .
          | comprise the DragonFly BSD operating system on the selected     |-'    .
          | partition of the selected disk.                                 |      .
          |                                                                 |      .
          | Note that this process will take quite a while to finish. You   |      .
          | may wish to take a break now and come back to the computer in a |      .
          | short while.                                                    |      .
          |                                                                 |      .
          | < Begin Installing Files >_ < Return to Create Subpartitions >  |      .
           -----------------------------------------------------------------       .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  25. Highlight < Begin Installing Files > and press enter.

  26. The following progress bar will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
              -------------------| Executing Commands |-------------------     |   .
             |                                                            |_,-'    .
             | /bin/cpdup -o -vvv -u /usr/share /mnt/usr/share            |        .
             |                                                            |        .
             |          [*#################65%###              ]          |        .
             |                                                            |        .
             |                         < Cancel >_                        |        .
              ------------------------------------------------------------         .
                                                                `|'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  27. When it finishes, the following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                ---------------| Install Bootblock(s) |----------------,-'    ,'   .
               |                                                       |   ,-'     .
               | You may now wish to install bootblocks on one or more |--'        .
               | disks. If you already have a boot manager installed,  |------,    .
               | you can skip this step (but you may have to configure |       |   .
               | your boot manager separately.)  If you installed      |-,__,-'    .
               | DragonFly BSD on a disk other than your first disk,   |           .
               | you will need to put the bootblock on at least your   |           .
               | first disk and the DragonFly BSD disk.                |           .
               |                                                       |           .
               | Disk Drive  Install Bootblock?  Packet Mode?          |           .
               | [ad0_     ] [X]                 [X]                   |           .
               |                                                       |           .
               |           < Accept and Install Bootblocks >           |           .
               |                  < Skip this Step >                   |           .
                -----------------| Press F1 for Help |-----------------            .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    The disk on which you wish to install a bootblock                              .
    
  28. Highlight < Accept and Install Bootblocks > and press enter.

  29. The following dialog box will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
                                                   |        _,-(   )-,_        |   .
                       -------------| Information |-------------   /   `-,__,-'    .
                      |                                         | |                .
                      | Bootblocks were successfully installed! | |                .
                      |                                         | |                .
                      |                 < OK >                  | |                .
                       -----------------------------------------  |                .
                                                                | |                .
                                                                `|'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  30. Press enter.

  31. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
           -----------------| DragonFly BSD is Installed! |-----------------       .
          |                                                                 |-,    .
          | Congratulations!                                                |  |   .
          |                                                                 |-'    .
          | DragonFly BSD has successfully been installed on this computer. |      .
          | You may now proceed to configure the installation. Alternately, |      .
          | you may wish to reboot the computer and boot into the installed |      .
          | system to confirm that it works.                                |      .
          |                                                                 |      .
          |              < Configure this System >_ < Reboot >              |      .
          |                   < Return to Welcome Menu >                    |      .
           -----------------------------------------------------------------       .
    
  32. Highlight < Configure this System > and press enter.

  33. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                        ---| Configure an Installed System |---- ^,       ,-'   |  .
                       |                                        | \)   ,-'    ,'   .
                       | The options on this menu allow you to  |  \,-'    ,-'     .
                       | configure a DragonFly BSD system after |  )------'        .
                       | it has already been installed.         |  )----------,    .
                       |                                        |  )-,_        |   .
                       | < Select timezone >_                   |  /   `-,__,-'    .
                       | < Set date and time >                  | |                .
                       | < Set keyboard map >                   | |                .
                       | < Set root password >                  | |                .
                       | < Add a user >                         | |                .
                       | < Configure network interfaces >       | |                .
                       | < Configure hostname and domain >      | |                .
                       | < Set console font >                   ||'                .
                       | < Set screen map >                     |                  .
                       | < Remove software packages >           |                  .
                       | < Return to Welcome Menu >             |                  .
                        ----------------------------------------                   .
                                                                                   .
                                                                                   .
                                                                                   .
    Set the Time Zone of your physical location                                    .
    
  34. Highlight < Select timezone > and press enter.

  35. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
                      | Local or UTC (Greenwich Mean Time) clock | )-,_        |   .
                     |                                            |/   `-,__,-'    .
                     | Is this machine's CMOS clock set to        |                .
                     | UTC?                                       |                .
                     |                                            |                .
                     | If it is set to local time, or you         |                .
                     | don't know, please choose NO here!         |                .
                     |                                            |                .
                     |              < Yes >_ < No >               |                .
                      --------------------------------------------                 .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  36. Highlight < Yes > and press enter.

  37. The following menu will be displayed.

    F10=Refresh Display ----------| Select Time Zone |----------                   .
                       |                                        #                  .
                       | Select a Time Zone appropriate to your #|           ,--,  .
                       | physical location.                     #^,       ,-'   |  .
                       |                                        # \)   ,-'    ,'   .
                       | < Africa >_                            #  \,-'    ,-'     .
                       | < America >                            #  )------'        .
                       | < Antarctica >                         #  )----------,    .
                       | < Arctic >                             #  )-,_        |   .
                       | < Asia >                               #  /   `-,__,-'    .
                       | < Atlantic >                           # |                .
                       | < Australia >                          # |                .
                       | < CET >                                # |                .
                       | < CST6CDT >                            # |                .
                       | < EET >                                # |                .
                       | < EST >                                # |                .
                       | < EST5EDT >                            #|'                .
                       | < Etc >                                #                  .
                       | < Europe >                             *                  .
                       | < GMT >                                *                  .
                       | < HST >                                *                  .
                       | < Indian >                             *                  .
                       | < MET >                                *                  .
                       | < MST >                                *                  .
                        ----------------------------------------                   .
    
  38. Highlight < GMT > and press enter.

  39. The following dialog box will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
                                                   |        _,-(   )-,_        |   .
                            --------| Information |--------    \   /   `-,__,-'    .
                           |                               |    | |                .
                           | The Time Zone has been set to |    | |                .
                           | /mnt/usr/share/zoneinfo/GMT.  |    | |                .
                           |                               |    | |                .
                           |            < OK >_            |    | |                .
                            -------------------------------     | |                .
                                                                `|'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  40. Press enter.

  41. The menu from step 33 will be displayed.

  42. If you use the Dvorak keyboard layout instead of the QWERTY keyboard layout, highlight < Set keyboard map > and press enter. Otherwise skip to step 46.

  43. The following menu will be displayed.

    F10=Refresh Display  -------| Select Keyboard Map |--------                    .
                        |                                      #                   .
                        | Select a keyboard map appropriate to # |           ,--,  .
                        | your keyboard layout.                #,^,       ,-'   |  .
                        |                                      #/ \)   ,-'    ,'   .
                        | < be.iso.acc.kbd >_                  #   \,-'    ,-'     .
                        | < be.iso.kbd >                       #   )------'        .
                        | < bg.bds.ctrlcaps.kbd >              *   )----------,    .
                        | < bg.phonetic.ctrlcaps.kbd >         *   )-,_        |   .
                        | < br275.cp850.kbd >                  *   /   `-,__,-'    .
                        | < br275.iso.acc.kbd >                *| |                .
                        | < br275.iso.kbd >                    *| |                .
                        | < by.cp1131.kbd >                    *| |                .
                        | < by.cp1251.kbd >                    *| |                .
                        | < by.iso5.kbd >                      *| |                .
                        | < ce.iso2.kbd >                      *| |                .
                        | < colemak.iso15.acc.kbd >            *'|'                .
                        | < cs.latin2.qwertz.kbd >             *                   .
                        | < cz.iso2.kbd >                      *                   .
                        | < danish.cp865.kbd >                 *                   .
                        | < danish.iso.kbd >                   *                   .
                        | < el.iso07.kbd >                     *                   .
                        | < estonian.cp850.kbd >               *                   .
                        | < estonian.iso.kbd >                 *                   .
                         --------------------------------------                    .
    
  44. Highlight < us.dvorak.kbd > and press enter.

  45. The menu from step 33 will be displayed.

  46. Highlight < Add a user > and press enter.

  47. The following menu will be displayed.

    F10=Refresh D -------------------| Add user |--------------------              .
                 |                                                   |             .
                 | Here you can add a user to an installed system.   |       ,--,  .
                 |                                                   |    ,-'   |  .
                 | You can leave the Home Directory, User ID, and    | ,-'    ,'   .
                 | Login Group fields empty if you want these items  |'    ,-'     .
                 | to be automatically allocated by the system.      |----'        .
                 |                                                   |--------,    .
                 | Note: this user's password will appear in the     |_        |   .
                 | install log. If this is a problem, please add the | `-,__,-'    .
                 | user manually after rebooting into the installed  |             .
                 | system instead.                                   |             .
                 |                                                   |             .
                 | Username                 [_                 ]     |             .
                 | Real Name                [                  ]     |             .
                 | Password                 [                  ]     |             .
                 | Password (Again)         [                  ]     |             .
                 | Shell                    [/bin/tcsh         ]     |             .
                 | Home Directory           [                  ]     |             .
                 | User ID                  [                  ]     |             .
                 | Login Group              [                  ]     |             .
                 | Other Group Memberships  [                  ]     |             .
                 |                                                   |             .
                 | < Accept and Add >  < Return to Configure Menu >  |             .
    Enter the use ---------------------------------------------------              .
    
  48. In the following fields type the following values without quotes and then highlight < Accept and Add > and press enter.

    • Username: 'user'
    • Real Name: 'User'
    • Password: 'ChangeMe'
    • Password (Again): 'ChangeMe'
  49. The following dialog box will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
                                                   |        _,-(   )-,_        |   .
                               -----| Information |----  ,-'   \   /   `-,__,-'    .
                              |                        |        | |                .
                              | User `user' was added. |        | |                .
                              |                        |        | |                .
                              |         < OK >_        |        | |                .
                               ------------------------         | |                .
                                                                | |                .
                                                                `|'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  50. Press enter.

  51. The menu from step 33 will be displayed.

  52. Highlight < Set root password > and press enter.

  53. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
              -------------------| Set Root Password |-------------------  ,-'     .
             |                                                           |'        .
             | Here you can set the super-user (root) password.          |----,    .
             |                                                           |     |   .
             | Note: root's new password will appear in the install log. |__,-'    .
             | If this is a problem, please set root's password manually |         .
             | after rebooting into the installed system instead.        |         .
             |                                                           |         .
             | Root password        [_                 ]                 |         .
             | Root password again  [                  ]                 |         .
             |                                                           |         .
             |                < Accept and Set Password >                |         .
             |               < Return to Configure Menu >                |         .
              -----------------------------------------------------------          .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    Enter the root password you would like to use                                  .
    
  54. In the following fields type the following values without quotes and then highlight < Accept and Set Password > and press enter.

    • Root password: 'ChangeMe'
    • Root password again: 'ChangeMe'
  55. The following dialog box will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                                                    ,----------(   )----------,    .
                                                   |        _,-(   )-,_        |   .
                        ------------| Information |----------- \   /   `-,__,-'    .
                       |                                      | | |                .
                       | The root password has been changed.  | | |                .
                       |                                      | | |                .
                       |                < OK >_               | | |                .
                        --------------------------------------  | |                .
                                                                | |                .
                                                                `|'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  56. Press enter.

  57. The menu from step 33 will be displayed.

  58. Highlight < Configure network interfaces > and press enter.

  59. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                       ----------| Assign IP Address |----------   )------'        .
                      |                                         |  )----------,    .
                      | Please select which interface you would |  )-,_        |   .
                      | like to configure:                      |  /   `-,__,-'    .
                      |                                         | |                .
                      | < em0 >_                                | |                .
                      | < faith0 >                              | |                .
                      | < lo0 >                                 | |                .
                      | < ppp0 >                                | |                .
                      | < sl0 >                                 | |                .
                      | < Cancel >                              ||'                .
                       -----------------------------------------                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  60. Highlight < em0 > and press enter.

  61. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                       --------------| Use DHCP? |--------------   )----------,    .
                      |                                         |  )-,_        |   .
                      | DHCP allows the interface to            |  /   `-,__,-'    .
                      | automatically obtain an IP address from | |                .
                      | a nearby DHCP server.                   | |                .
                      |                                         | |                .
                      | Would you like to enable DHCP for em0?  | |                .
                      |                                         | |                .
                      |  < Use DHCP >_ < Configure Manually >   | |                .
                       ----------------------------------------- |'                .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  62. Highlight < Use DHCP > and press enter.

  63. The following menu, specific to your hardware and network connection, will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                       -------------| Information |-------------  \)   ,-'    ,'   .
                      |                                         |  \,-'    ,-'     .
                      | em0:                                    |  )------'        .
                      | flags=8843<UP,BROADCAST,RUNNING,SIMPLEX |  )----------,    .
                      | MULTICAST> mtu 1500                     |  )-,_        |   .
                      | options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_ |  /   `-,__,-'    .
                      | WTAGGING>                               | |                .
                      | inet6 fe80::a00:27ff:fe98:67cc%em0      | |                .
                      | prefixlen 64 scopeid 0x1                | |                .
                      | ether 08:00:27:98:67:cc                 | |                .
                      | media: Ethernet autoselect (1000baseT   | |                .
                      | <full-duplex>)                          | |                .
                      | status: active                          ||'                .
                      |                                         |                  .
                      |                                         |                  .
                      |                 < OK >_                 |                  .
                       -----------------------------------------                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  64. Press enter.

  65. The menu from step 33 will be displayed.

  66. Highlight < Configure hostname and domain > and press enter.

  67. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                         -------| Set Hostname/Domain |--------    )----------,    .
                        |                                      |   )-,_        |   .
                        | Please enter this machine's hostname |   /   `-,__,-'    .
                        | and domain name.                     || |                .
                        |                                      || |                .
                        | Hostname  [_                 ]       || |                .
                        | Domain    [                  ]       || |                .
                        |                                      || |                .
                        |                                      || |                .
                        |          < OK >  < Cancel >          |`|'                .
                         --------------------------------------                    .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    Enter the Hostname (e.g. `machine')                                            .
    
  68. In the following fields type the following values without quotes and then highlight < OK > and press enter.

    • Hostname: 'dfly'
    • Domain: 'localhost'
  69. The menu from step 33 will be displayed.

  70. Highlight < Return to Welcome Menu > and press enter.

  71. The menu from step 7 will be displayed.

  72. Highlight < Reboot this Computer > and press enter.

  73. The following menu will be displayed.

    F10=Refresh Display                                                            .
                                                                                   .
                                                  ,--,           |           ,--,  .
                                                  |   `-,       ,^,       ,-'   |  .
                                                   `,    `-,   (/ \)   ,-'    ,'   .
                                                     `-,    `-,/   \,-'    ,-'     .
                                                        `------(   )------'        .
                        ---------------| Reboot |---------------   )----------,    .
                       |                                        |  )-,_        |   .
                       | This machine is about to be shut down. |  /   `-,__,-'    .
                       | After the machine has reached its      | |                .
                       | shutdown state, you may remove the CD  | |                .
                       | from the CD-ROM drive tray and press   | |                .
                       | Enter to reboot from the HDD.          | |                .
                       |                                        | |                .
                       |               < Reboot >               | |                .
                       |       < Return to Welcome Menu >       ||'                .
                        ----------------------------------------                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
                                                                                   .
    
  74. Highlight < Reboot > and press enter.

  75. The following message will be displayed.

    The operating system has halted.
    Please press any key to reboot.
    
  76. Remove the virtual CD installation media from the virtual machine.

  77. Press any key to reboot. Before it finishes booting, the will be greeted with the menu from step 4.

  78. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.

    DragonFly/x86_64 (dfly.localhost) (ttyv0)
    
    
    login: _
    
  79. Log in as root.

  80. You will be greeted with the following message and shell prompt.

    Copyright (c) 2003-2014 The DragonFly Project.                                 .
    Copyright (c) 1992-2003 The FreeBSD Project.                                   .
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994       .
            The Regents of the University of California. All rights reserved.      .
                                                                                   .
    DragonFly v4.0.0.32.gce3e27-RELEASE (X86_64_GENERIC) #25 Mon Nov 24 20:15:26 PS.
    T 2014                                                                         .
                                                                                   .
    Welcome to DragonFly!                                                          .
                                                                                   .
    dfly# _                                                                        .
    
  81. Type 'passwd' without quotes and press enter.

  82. Type in a new root password and press enter and then retype the new root password and press enter again.

  83. Type 'ee /etc/hosts' without quotes and press enter.

  84. Without quotes twice replace 'localhost.my.domain' with 'dfly.localhost'.

  85. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.

  86. Type 'ee .cshrc' without quotes and press enter.

  87. Without quotes replace 'setenv Editor vi' with 'setenv Editor ee'.

  88. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.

  89. Type 'source .cshrc' without quotes and press enter.

  90. Type 'pkg update' without quotes and press enter.

  91. The following output will be displayed.

    Updating Avalon repository catalogue...
    Fetching meta.txz: 100%   264 B   0.3k/s    00:01
    Fetching digests.txz: 100%    2 MB 313.9k/s    00:06
    Fetching packagesite.txz: 100%    4 MB 579.3k/s    00:08
    Processing new repository entries: 100%
    Avalon repository update completed. 21772 packages processed:
      0 updated, 0 removed and 21772 added.
    
  92. Type 'pkg search sudo' without quotes, press enter and note the full name of sudo.

  93. Type 'pkg search -f sudo-1.8.11.p1' without quotes and press enter.

  94. Type 'pkg install sudo' without quotes and press enter. Then when prompted, type 'y' without quotes and press enter. (If it fails to install, try typing 'pkg upgrade' without quotes and then press enter.)

  95. Type 'rehash' without quotes and press enter.

  96. Type 'visudo' without quotes and press enter.

  97. Without quotes replace '# %wheel ALL=(ALL) ALL' with ' %wheel ALL=(ALL) ALL'.

  98. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.

  99. Type 'pw usermod user -G wheel' without quotes and press enter.

  100. Type 'exit' without quotes and press enter.

  101. Log in as user.

  102. You will be greeted with the following message and shell prompt.

    Copyright (c) 2003-2014 The DragonFly Project.                                 .
    Copyright (c) 1992-2003 The FreeBSD Project.                                   .
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994       .
            The Regents of the University of California. All rights reserved.      .
                                                                                   .
    DragonFly v4.0.0.32.gce3e27-RELEASE (X86_64_GENERIC) #25 Mon Nov 24 20:15:26 PS.
    T 2014                                                                         .
                                                                                   .
    Welcome to DragonFly!                                                          .
                                                                                   .
    Man pages are divided into section depending on topic.  There are 9 different  .
    sections numbered from 1 (General Commands) to 9 (Kernel Developer's Manual).  .
    You can get an introduction to each topic by typing                            .
                                                                                   .
            man <number> intro                                                     .
                                                                                   .
    In other words, to get the intro to general commands, type                     .
                                                                                   .
            man 1 intro                                                            .
    > _                                                                            .
    
  103. Type 'passwd' without quotes and press enter.

  104. Type 'ChangeMe' without quotes and press enter, then type a new password and press enter, and then retype the new password and press enter again.

  105. Type 'ee .cshrc' without quotes and press enter.

  106. Without quotes replace 'setenv Editor vi' with 'setenv Editor ee'.

  107. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.

  108. Type 'source .cshrc' without quotes and press enter.

  109. Type 'exit' without quotes and press enter.

Long Walkthrough of MATE Installation and Configuration

This walkthrough describes how I install and configure the MATE desktop environment on DragonFly BSD. You should customize your installation as you see fit. This walkthrough is being run on DragonFly BSD as installed and configured in "Long Walkthrough of DragonFly BSD Installation and Configuration" by Varialus.

MATE is my favorite desktop environment. When currently installed and configured as described in this walkthrough, MATE works but has the following issues.

I hope this walkthrough will make it easier for developers to properly fix these issues.

login: user
Password:
...
By pressing "Scroll Lock" you can use the arrow keys to scroll backward
through the console output.  Press "Scroll Lock" again to turn it off.
> pkg search xorg
xorg-7.7
...
> pkg search -f xorg-7.7
...
This is a metaport for all the X.org packages available in the ports tree.

WWW: http://www.x.org/
> sudo pkg install xorg-7.7
Password:
...
The installation will require 200 MB more space

70 MB to be downloaded

Proceed with installing packages [y/N]: y
...
================================================================================
You installed xterm with wide chars support. This introduces some limitations
comparing to the plain single chars version: this version of xterm will use
UTF-8 charset for selection buffers, breaking 8-bit copy/paste support unless
you are using UTF-8 or ISO8859-1 locale. If you want 8-bit charset selections to
work as before, use "eightBitSelectTypes" XTerm resource setting.

For further information refer to the SELECT/PASTE section of xterm(1) manual
page.
================================================================================
...
> pkg search xdm
...
xdm-1.1.11_2
...
> pkg search -f xdm-1.1.11_2
...
This package contains xdm, the X.Org X Display manager.
> sudo pkg install xdm-1.1.11_2
...
The installation will require 287 KB more space

97 KB to be downloaded
Proceed with installing packages [y/N]: y
...
> pkg search mate
...
> pkg search -x "mate-[a-z]+"
Password:
...
The installation will require 955 MB more space

201 MB to be downloaded

Proceed with installing packages [y/N]: y
...
===============================================================================

In order to use the File System read/write monitor, you must chmod
/dev/devstat so that all users can open it read-only.  For example:

# chmod 0444 /dev/devstat

In order for this to persist across reboots, add the following to
/etc/devfs.conf:

perm    devstat 0444

===============================================================================
...
Note: in order to use the script dvipdf, dvips must be installed.
This program may be provided by either print/dvips or print/dvipsk-tetex
(print/dvipsk-tetex may be preferable since it doesn't conflict with
tetex things).

Also note that FAPIfontmap and FAPIcidfmap in /usr/local/share/ghostscript/9.06/Resource/Init
have to be configured first.
...
**************************************************************************
Congratulations!  MATE base has been successfully installed on your system.
For help on starting it up, as well as answers to common questions, and
some known issues, please see the FreeBSD GNOME homepage at:

                       http://www.FreeBSD.org/gnome/

**************************************************************************
...
> sudo ee /etc/rc.conf
...

Add the following two lines.

hald_enable="NO"
dbus_enable="YES"

Press Esc or Ctl-[

...
a) leave editor
...
a) save changes
...
> sudo ee /etc/ttys
Password:
...

Find the following line.

ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off secure

Edit the previous line to match the following line.

ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   on  secure

Press Esc or Ctl-[

...
a) leave editor
...
a) save changes
...
> sudo ee /usr/local/lib/X11/xdm/Xsetup_0
...

Find the following line.

xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail

Edit the previous line to match the following line.

#xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail

If you use the Dvorak keyboard layout instead of the QWERTY keyboard layout, add the following line.

setxkbmap dvorak

Press Esc or Ctl-[

...
a) leave editor
...
a) save changes
...
> ee .xsession
...

Add the following line.

exec mate-session

Press Esc or Ctl-[

...
a) leave editor
...
a) save changes
...
> sudo ee /usr/local/lib/X11/xdm/xdm-config
Password:
...

Find the following line.

DisplayManager*authorize:       true

Edit the previous line to match the following line.

DisplayManager*authorize:       false

Press Esc or Ctl-[

...
a) leave editor
...
a) save changes
...
> sudo shutdown -r now
Password:
...
Login: user
Password: 
...

The MATE desktop will be displayed.

Short Walkthrough of Enlightenment Installation and Configuration

This walkthrough describes how I install and configure the Enlightenment desktop environment on DragonFly BSD. You should customize your installation as you see fit. This walkthrough is being run on DragonFly BSD as installed and configured in "Long Walkthrough of DragonFly BSD Installation and Configuration" by Varialus.

Enlightenment currently has a great balance of stability, features, and performance compared to other desktop environments on DragonFly BSD. I plan on using Enlightenment for personal use until MATE on DragonFly BSD has improved significantly. When currently installed and configured as described in this walkthrough, Enlightenment works but has the following issues.

I hope this walkthrough will make it easier for developers to properly fix these issues.

  1. From DPorts install the following packages and their dependencies.

    • xorg
    • xdm
    • enlightenment
    • e17-modules.
  2. Add the following line to /etc/rc.conf and save the change to disk.

    dbus_enable="YES"
    
  3. Skim through /etc/ttys to find the following line.

    ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off secure
    

    Then edit the previous line to match the following line and save the change to disk.

    ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   on  secure
    
  4. Skim through /usr/local/lib/X11/xdm/Xsetup_0 to find the following line.

    xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
    

    Then edit the previous line to match the following line and save the change to disk.

    #xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
    
  5. If you use the Dvorak keyboard layout instead of the QWERTY keyboard layout, add the following line to /usr/local/lib/X11/xdm/Xsetup_0 and save the change to disk.

    setxkbmap dvorak
    
  6. Skim through /usr/local/lib/X11/xdm/xdm-config to find the following line.

    DisplayManager*authorize:       true
    

    Then edit the previous line to match the following line and save the change to disk.

    DisplayManager*authorize:       false
    
  7. If it doesn't already exist, create the file /home/user/.xsession then add the following line to it and save the change to disk.

    exec enlightenment_start
    
  8. Set the SUID bit with execute permission on /usr/local/lib/enlightenment/utils/enlightenment_sys by running the following command. "WARNING: this program might be vulnerable so do not set suid bit if do not trust all users of this machine."

    sudo chmod u+s /usr/local/lib/enlightenment/utils/enlightenment_sys
    
  9. Restart DragonFly BSD and log in as user.

  10. The Enlightenment initial graphical configuration will be displayed. Select the following options.

    • Language: English
    • Keyboard: English (US)
    • Profile: Computer (Standard Enlightenment)
    • Sizing: 1.2 Title
    • Window Focus: Click
    • Updates: Enable update checking
    • Taskbar: Enable Taskbar
  11. The Enlightenment desktop will be displayed but only after a significant delay from the splash screen. This step disables the splash screen so you'll only have to wait for it this one time. After the desktop is finally displayed, click on the left side of the desktop and select Settings > All > Look > Startup, then disable the option "Show Splash Screen on Login" and click OK.

  12. If you use the Dvorak keyboard layout instead of the QWERTY keyboard layout, click on the left side of the desktop and select Settings > All > Input > Keyboard, then click Add > English (US) (us) > Variant > dvorak (English (Dvorak)) > OK > us (default, basic) > Remove > OK.

  13. Click on the left side of the screen and select either System > Reboot or System > Power Off. If DragonFly BSD does not reboot or power off, then click on the left side of the desktop and select Settings > Modules, click Look > Composite > Unload > Close.

Tidbits

Issues

Workarounds

Install Non-GUI on 3TB+ Hard Drive

WARNING: This workaround includes instructions which will delete all data from a hard drive.

Delete the partition table from the hard drive. There are various tools with which to do this, one particularly easy to use tool is the GParted Live CD/USB.

Install from a snapshot version of DragonFly. Be aware that snapshot versions are less thoroughly tested than stable releases.

Tested in snapshot on 8/14/2012.

Contribute

Port VirtualBox to DragonFly BSD

 - Build VirtualBox in FreeBSD
    - Install FreeBSD
    - Compile VirtualBox
    - Compile Guest Additions
 - Build VirtualBox in DragonFly BSD
    - Install DragonFly BSD (Xfce IMG/ISO Installer)
    - Compile VirtualBox
    - Install VirtualBox
    - Test VirtualBox
    - Compile Guest Additions
    - Install Guest Additions
    - Test Guest Additions
 - Package for DPorts
 - Upload to DPorts

Update and Fix Bugs of Desktop Environments in DPorts

 - Install DragonFly BSD
 - Compile Updated Desktop Environments
 - Install Updated Desktop Environments
 - Test, Log Bugs, and Fix Bugs in Updated Desktop Environments
 - Package for DPorts
 - Upload to DPorts

DragonFly BSD Network Shares Walkthrough

 - Install DragonFly BSD
 - Figure out network shares and write a walkthrough.