# 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** * Walkthrough of DragonFly BSD Installation and Configuration * (In Progress) Walkthrough of MATE Installation and Configuration * (In Progress) Walkthrough of Enlightenment Installation and Configuration * (In Progress) Walkthrough of KDE Installation and Configuration * (In Progress) Walkthrough of Xfce Installation and Configuration * (In Progress) Walkthrough of LXDE Installation and Configuration * (In Progress) Walkthrough of Applications Installation and Configuration * (Not Yet Started) Walkthrough of C and Go Development Environment Installation and Configuration 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 **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](http://www.dragonflybsd.org/download/) 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 at ata0-master UDMA33 >_| . | < Return to Begin Installation > | . ------------------------------------------------------------- . `|' . . . . . . . . . 13. Highlight the disk on which to install DragonFly BSD 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 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 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 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 partitions (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. Highlight < Set keyboard map > and press enter. 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 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 and press enter. * Root password: 'ChangeMe' * Root password again: 'ChangeMe' 55. The following dialog box will be displayed. F10=Refresh Display . . ,--, | ,--, . | `-, ,^, ,-' | . `, `-, (/ \) ,-' ,' . `-, `-,/ \,-' ,-' . `------( )------' . ,----------( )----------, . | _,-( )-,_ | . ------------| Information |----------- \ / `-,__,-' . | | | | . | User 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 mtu 1500 | )----------, . | options=1b | / `-,__,-' . | inet6 fe80::a00:27ff:fe98:67cc%em0 | | . | prefixlen 64 scopeid 0x1 | | . | inet 10.0.2.15 netmask 0xffffff00 | | . | broadcast 10.0.2.255 | | . | ether 08:00:27:98:67:cc | | . | media: Ethernet autoselect (1000baseT | | . | ) ||' . | 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 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 v3.8.1-RELEASE (X86_64_GENERIC) #16 Mon Jun 16 21:36:15 PDT 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 'pkg update' without quotes and press enter. 90. The following output will be displayed. Updating repository catalogue digests.txz 100% 995KB 497.6KB/s 845.1KB/s 00:02 packagesite.txz 100% 4398KB 1.4MB/s 1.8MB/s 00:03 Incremental update completed, 21327 packages processed: 0 packages updated, 0 removed and 21327 added. 91. Type 'pkg search sudo' without quotes, press enter and note the full name of sudo. 92. Type 'pkg search -f sudo-1.8.10.p3' without quotes and press enter. 93. Type 'pkg install sudo-1.8.10.p3' without quotes and press enter. Then when prompted, type 'y' without quotes and press enter. 94. Type 'rehash' without quotes and press enter. 95. Type 'visudo' without quotes and press enter. 96. Without quotes replace '# %wheel ALL=(ALL) ALL' with ' %wheel ALL=(ALL) ALL'. 97. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter. 98. Type 'pw usermod user -G wheel' without quotes and press enter. 99. Type 'exit' without quotes and press enter. 100. Log in as user. 101. 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 v3.8.1-RELEASE (X86_64_GENERIC) #16 Mon Jun 16 21:36:15 PDT 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 intro . . In other words, to get the intro to general commands, type . . man 1 intro . > _ . 102. Type 'passwd' without quotes and press enter. 103. 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. 104. Type 'ee .cshrc' without quotes and press enter. 105. Without quotes replace 'setenv Editor vi' with 'setenv Editor ee'. 106. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter. 107. Type 'exit' without quotes and press enter. ## Tidbits * Shell/Console/Command-Line-Prompt: In the default shell, **tcsh**, ctrl-d is equivalent to tab-tab in **bash**, both of which display possible auto completions. If the list of possible auto completions has changed, running the command rehash will update it. Typing part of a previous command and then pressing the up key is equivalent to pressing ctrl-r and then typing part of a previous command, both of which search previously run commands. * Package-Management: **pkg**, also known as pkgng, is roughly equivalent to **apt-get**. They are both fairly straightforward command line package management utilities. * Text-Editor: **ee** is roughly equivalent to **nano**. They are both easy to use command line text editors. The exit option will ask you whether you want to save. You can get to the exit confirmation by pressing Ctrl-[ or Esc and selecting 'a) leave editor'. The console text editor vi is supposedly great, but if you're not familiar with it and some command you run opens some system file with it, it can be quite alarming. Don't panic! To exit without saving changes type :q! and then press enter. * Manual: The command line program man, short for manual, is very handy for finding out information about programs, system files and more. One way to navigate man pages is by using your arrow keys. You can exit out of a manual page by pressing the letter q on your keyboard. To learn more about the man command, run the command man man which will show you the manual page for the man command. * Power-Down: sIn DragonFly BSD the command *shutdown -p now* will shutdown and turn off your computer. Using the -h switch instead of -p will shutdown and halt the computer but not turn it off. In Debian and probably other Linux distributions, the command *shutdown -h now* will shutdown and turn off your computer. The -p switch isn't available, but there may be a way to shutdown and halt without turning off your computer. * Find File: **grep** is great for finding text in a file and **find** is great for finding a file by name. * Process Management: Some good commands are top, ps, pkill and kill. There are no doubt others. * File-System: **Hammer** is hands down the best file system currently in existence. It has block level deduplication, it is supported out of the box by an operating system with great underpinnings, and it runs great on regular hardware. * Operating System: **DragonFly BSD** is an awesome operating system for many reasons other than that it's the only OS with Hammer, but Hammer is why I'm making the switch. DragonFly's default GUI configuration is a bit rough around the edges for everyday use. But it's nothing that a little ironing can't fix. ## Issues * Disclaimer: I know that I should ensure that these issues are properly logged, but until that happens, hopefully these notes will be of some use to somebody. * Installer Supported Desktops: The installer should offer various desktop environment as supported options. Observed in DragonFly 3.8.1. I'm working on various walkthroughs as a workaround. * Early Keyboard Selection: The installer should set the keyboard layout before any typing is required. Observed in DragonFly 3.8.1. * Encryption Keyboard Selection: The installer should set the keyboard layout for the encryption password prompt. Observed in DragonFly 3.0.2. * Random Key for Encrypted Swap: When encrypting the swap partition, the installer should configure the boot loader to generate a random key each time the system is booted so that the password doesn't have to be typed twice when the system is booted. Observed in DragonFly 3.0.2. * Stay Decrypted for Configuration: When configuring the system from the installer, if the system just finished installing with encryption, the hard drive should stay unlocked so that the user doesn't have to type in his password again. Observed in DragonFly 3.0.2. * No Confirmation for Decryption: When configuring the system from the installer, if the system is encrypted but was not just barely installed, the user should only have to type in his password once, not twice. Observed in DragonFly 3.0.2. * Plain Text Password in Install Log: When creating a user password in the installer, the password should not be written to a plain text installation log. Observed in DragonFly BSD 3.8.1. An adequate warning is given. * USB Installation Media Named Uniquely: When installing from a USB device onto a USB device, the installer should ensure that installed media is named such that when booted without the USB installer, the installed device name doesn't change. Observed in DragonFly 3.0.2. * 3TB+ HD Install: When installing onto a 3TB+ hard drive, the default partition table should be able to handle that size. Observed in DragonFly 3.0.2. Fixed and tested in snapshot on 8/14/2012. See workaround below. * Overwrite 3TB+ Partition Table: After selecting to install using all of a 3TB+ hard drive that already has an MS-DOS/MBR partition table on it, the installer should overwrite the partition table with an adequate partition table such as GPT. Observed in snapshot on 8/14/2012. * Wiki Centered Text: ->Excepting the bullet point, this syntax should center text in this wiki.<- Observed on 8/25/2012. * XOrg Quit Errors: The following errors should not occur when quitting from the GUI. waiting for X server to shut down xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0.0" xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "0.0" failed to unset mtrr: Device not configured xauth: (argv):1: bad display name "myhostname.mysubdomain.mytld:0" in "remove" command Observed in DragonFly BSD 3.0.2 64-bit on VirtualBox 4.1.20 in Debian Squeeze. ## 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](http://gparted.sourceforge.net/livecd.php). Install from a [snapshot version of DragonFly](http://avalon.dragonflybsd.org/snapshots/). 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.