3 *The following is an unpaid personal wiki page about my experiences, issues, and workarounds related to DragonFly BSD.*
9 * Long Walkthrough of **DragonFly BSD** Installation and Configuration
10 * [Golang Tutorial](http://varialus.wikidot.com/golang)
11 * [Wingo Tutorial](http://varialus.wikidot.com/wingo)
12 * [Git GUI Tutorial](http://varialus.wikidot.com/git-gui)
13 * [Agar Tutorial](http://varialus.wikidot.com/agar)
14 * Long Walkthrough of **MATE** Installation and Configuration
15 * Short Walkthrough of **Enlightenment** Installation and Configuration
19 * Shell/Console/Command-Line-Prompt: tcsh/bash, ctrl-d/tab-tab, partial-previous-command-up-key/ctrl-r-partial-previous-command, rehash
20 * Package-Management: pkgng/apt-get
21 * Text-Editor: ee/nano, vi :q!
23 * Power-Down: shutdown -p now
24 * Find File: grep, find / -name fileName
25 * Process Management: top, ps, pkill, kill
27 * Operating System: DragonFly BSD
32 * Installer Supported Desktops: dfly 3.8.1
33 * Early Keyboard Selection: dfly 3.8.1
34 * Encryption Keyboard Selection: dfly 3.0.2
35 * Random Key for Encrypted Swap: dfly 3.0.2
36 * Stay Decrypted for Configuration: dfly 3.0.2
37 * No Confirmation for Decryption: dfly 3.0.2
38 * Plain Text Password in Install Log: dfly 3.8.1
39 * USB Installation Media Named Uniquely: dfly 3.0.2
40 * 3TB+ HD Install: dfly 3.0.2, fixed in snapshot on 8/14/2012
41 * Overwrite 3TB+ Partition Table: snapshot 8/14/2012
42 * Wiki Centered Text: 8/25/2012
43 * XOrg Quit Errors: dfly 3.0.2, VirtualBox 4.1.20
47 * Install Non-GUI on 3TB+ Hard Drive
51 * Port VirtualBox to DragonFly BSD
52 * Update and Fix Bugs of Desktop Environments in DPorts
53 * DragonFly BSD Network Shares Walkthrough
57 ### Long Walkthrough of DragonFly BSD Installation and Configuration
59 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.
61 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
63 2. Set the the virtual hardware clock set to UTC time.
65 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.
67 4. Start the virtual machine. Before it finishes booting, the will be greeted with the following boot menu.
70 DragonFly/i386 bootstrap loader, Revision 1.1
71 (justin@pkgbox64.dragonflybsd.org, Mon Jun 16 21:33:12 PDT 2014)
73 1. Boot DragonFly [kernel] | ,--, | ,--,
74 2. Boot DragonFly in Safe Mode | | `-, ,^, ,-' |
75 3. Boot DragonFly without AHCI driver | `, `-, (/ \) ,-' ,'
76 4. Boot DragonFly without ACPI driver | `-, `-,/ \,-' ,-'
77 9. Escape to loader prompt (also ESC) | `------( )------'
78 r. Boot DragonFly to a rescue ramdisk | ,----------( )----------,
79 s. Boot DragonFly in single user mode | | _,-( )-,_ |
80 v. Boot DragonFly with verbose logging | `-,__,-' \ / `-,__,-'
89 Booting in 10 seconds... _
91 5. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.
95 To start the installer, login as 'installer'. To just get a shell prompt,
98 DragonFly/x86_64 (Amnesiac) (ttyv0)
102 6. Type 'installer' without quotes and press enter.
104 7. The following menu will be displayed.
106 F10=Refresh Display .
109 ------------------------| Welcome to DragonFly BSD |------------------------- .
111 | Welcome to the DragonFly BSD Live CD. |.
113 | DragonFly BSD is an efficient and elegant BSD Unix-derived operating |.
114 | system. For more information, see http://www.dragonflybsd.org |.
116 | From this CD, you can boot into DragonFly BSD ``live'' (without installing |.
117 | it) to evaluate it, to install it manually, or to troubleshoot problems |.
118 | with an existing installation, using either a command prompt or menu-driven |.
121 | Also, you can use this automated application to assist you in installing |.
122 | DragonFly BSD on this computer and configuring it once it is installed. |.
124 | < Install DragonFly BSD >_ < Configure an Installed System > |.
125 | < Live CD Utilities > < Exit to Live CD > < Reboot this Computer > |.
126 | < Setup NetBoot Install Services > |.
127 ----------------------------------------------------------------------------- .
130 Install DragonFly BSD on a HDD or HDD partition on this computer .
132 8. The bottom line changes depending on which option is selected.
134 9. Highlight the option < Install DragonFly BSD > and press enter.
136 10. The following menu will be displayed.
138 F10=Refresh Display .
142 `, `-, (/ \) ,-' ,' .
143 --------------------------| Begin Installation |----------------------------- .
145 | This application will install DragonFly BSD on one of the hard disk drives |.
146 | attached to this computer. It has been designed to make it easy to install |.
147 | DragonFly BSD in the typical case. If you have special requirements that |.
148 | are not addressed by this installer, or if you have problems using it, you |.
149 | are welcome to install DragonFly BSD manually. To do so select Exit to Live |.
150 | CD, login as root, and follow the instructions given in the file /README . |.
152 | NOTE! As with any installation process, YOU ARE STRONGLY ENCOURAGED TO BACK |.
153 | UP ANY IMPORTANT DATA ON THIS COMPUTER BEFORE PROCEEDING! |.
155 | < Install DragonFly BSD >_ < Return to Welcome Menu > < Exit to Live CD > |.
156 ----------------------------| Press F1 for Help |---------------------------- .
165 11. Highlight the option < Install DragonFly BSD > and press enter.
167 12. The following menu, specific to your hardware, will be displayed.
169 F10=Refresh Display .
173 `, `-, (/ \) ,-' ,' .
176 -----------------------| Select Disk |----------------------- ---, .
178 | Select a disk on which to install DragonFly BSD |_,-' .
180 | < ad0: 131072MB <VBOX HARDDISK 1.0> at ata0-master UDMA33 >_| .
185 | < Return to Begin Installation > | .
186 ------------------------------------------------------------- .
195 13. Highlight the disk on which to install DragonFly BSD, in this case ad0, and press Enter.
197 14. The following menu will be displayed.
199 F10=Refresh Display .
203 `, `-, (/ \) ,-' ,' .
206 ,----------( )----------, .
207 ------------------------| How Much Disk? |------------------------ | .
209 | Select how much of this disk you want to use for DragonFly BSD. | .
211 | ad0: 131072MB <VBOX HARDDISK 1.0> at ata0-master UDMA33 | .
213 | < Use Entire Disk >_ < Use Part of Disk > | .
214 | < Return to Select Disk > | .
215 ------------------------------------------------------------------ .
225 15. If you would like to use your entire disk, then highlight < Use Entire Disk > and press enter.
227 16. The following menu will be displayed.
229 F10=Refresh Display .
233 ------| Are you absolutely sure? |------ \) ,-' ,' .
235 | WARNING! ALL data in ALL partitions on | )------' .
236 | the disk | )----------, .
238 | ad0: 131072MB <VBOX HARDDISK 1.0> at | / `-,__,-' .
239 | ata0-master UDMA33 | | .
241 | will be IRREVOCABLY ERASED! | | .
243 | Are you ABSOLUTELY SURE you wish to | | .
244 | take this action? This is your LAST | | .
245 | CHANCE to cancel! ||' .
247 | < OK >_ < Cancel > | .
248 ---------------------------------------- .
255 17. If you are absolutely sure, highlight < OK > and press enter.
257 18. The following menu will be displayed.
259 F10=Refresh Display .
263 `, `-, (/ \) ,-' ,' .
266 -----------| Information |------------ )----------, .
268 | The disk | / `-,__,-' .
270 | ad0: 131072MB <VBOX HARDDISK 1.0> at || | .
271 | ata0-master UDMA33 || | .
273 | was formatted. || | .
276 -------------------------------------- .
287 20. The following menu will be displayed.
289 F10=Refresh Display .
293 `, `-, (/ \) ,-' ,' .
296 -----------------| Select file system |------------------ -----, .
298 | Please select the file system you want to use with |,__,-' .
301 | HAMMER is the new DragonFly BSD file system. UFS is the | .
302 | traditional BSD file system. | .
304 | < Use HAMMER >_ < Use UFS > < Return to Select Disk > | .
305 --------------------------------------------------------- .
315 21. If you want to use HAMMER, and honestly why wouldn't you, then highlight HAMMER and press enter.
317 22. The following menu will be displayed.
319 F10=Refresh Display .
322 --------------------| Create Subpartitions |--------------------- | .
324 | Set up the partitions (also knows as just `partitions' in |' .
325 | BSD tradition) you want to have on this primary partition. In | .
326 | most cases you should be fine with the default settings. |-, .
328 | For Capacity, use 'M' to indicate megabytes, 'G' to indicate |-' .
329 | gigabytes, and so on (up to 'E'.) A single '*' indicates 'use | .
330 | the remaining space on the primary partition'. | .
332 | Mountpoint Capacity Encrypted | .
333 | [/boot_ ] [768M ] [ ] < Ins > < Del > | .
334 | [swap ] [8192M ] [ ] < Ins > < Del > | .
335 | [/ ] [* ] [ ] < Ins > < Del > | .
338 | < Accept and Create > < Return to Select Disk > | .
339 -------------------| Press F1 for Help |------------------------- .
345 23. Highlight < Accept and Create > and press enter.
347 24. The following menu will be displayed.
349 F10=Refresh Display .
353 `, `-, (/ \) ,-' ,' .
355 -------------------------| Install OS |-------------------------- .
357 | Everything is now ready to install the actual files which | | .
358 | comprise the DragonFly BSD operating system on the selected |-' .
359 | partition of the selected disk. | .
361 | Note that this process will take quite a while to finish. You | .
362 | may wish to take a break now and come back to the computer in a | .
365 | < Begin Installing Files >_ < Return to Create Subpartitions > | .
366 ----------------------------------------------------------------- .
376 25. Highlight < Begin Installing Files > and press enter.
378 26. The following progress bar will be displayed.
380 F10=Refresh Display .
384 `, `-, (/ \) ,-' ,' .
387 ,----------( )----------, .
388 -------------------| Executing Commands |------------------- | .
390 | /bin/cpdup -o -vvv -u /usr/share /mnt/usr/share | .
392 | [*#################65%### ] | .
395 ------------------------------------------------------------ .
406 27. When it finishes, the following menu will be displayed.
408 F10=Refresh Display .
412 ---------------| Install Bootblock(s) |----------------,-' ,' .
414 | You may now wish to install bootblocks on one or more |--' .
415 | disks. If you already have a boot manager installed, |------, .
416 | you can skip this step (but you may have to configure | | .
417 | your boot manager separately.) If you installed |-,__,-' .
418 | DragonFly BSD on a disk other than your first disk, | .
419 | you will need to put the bootblock on at least your | .
420 | first disk and the DragonFly BSD disk. | .
422 | Disk Drive Install Bootblock? Packet Mode? | .
423 | [ad0_ ] [X] [X] | .
425 | < Accept and Install Bootblocks > | .
426 | < Skip this Step > | .
427 -----------------| Press F1 for Help |----------------- .
432 The disk on which you wish to install a bootblock .
434 28. Highlight < Accept and Install Bootblocks > and press enter.
436 29. The following dialog box will be displayed.
438 F10=Refresh Display .
442 `, `-, (/ \) ,-' ,' .
445 ,----------( )----------, .
447 -------------| Information |------------- / `-,__,-' .
449 | Bootblocks were successfully installed! | | .
452 ----------------------------------------- | .
466 31. The following menu will be displayed.
468 F10=Refresh Display .
472 `, `-, (/ \) ,-' ,' .
474 -----------------| DragonFly BSD is Installed! |----------------- .
476 | Congratulations! | | .
478 | DragonFly BSD has successfully been installed on this computer. | .
479 | You may now proceed to configure the installation. Alternately, | .
480 | you may wish to reboot the computer and boot into the installed | .
481 | system to confirm that it works. | .
483 | < Configure this System >_ < Reboot > | .
484 | < Return to Welcome Menu > | .
485 ----------------------------------------------------------------- .
487 32. Highlight < Configure this System > and press enter.
489 33. The following menu will be displayed.
491 F10=Refresh Display .
494 ---| Configure an Installed System |---- ^, ,-' | .
496 | The options on this menu allow you to | \,-' ,-' .
497 | configure a DragonFly BSD system after | )------' .
498 | it has already been installed. | )----------, .
500 | < Select timezone >_ | / `-,__,-' .
501 | < Set date and time > | | .
502 | < Set keyboard map > | | .
503 | < Set root password > | | .
504 | < Add a user > | | .
505 | < Configure network interfaces > | | .
506 | < Configure hostname and domain > | | .
507 | < Set console font > ||' .
508 | < Set screen map > | .
509 | < Remove software packages > | .
510 | < Return to Welcome Menu > | .
511 ---------------------------------------- .
515 Set the Time Zone of your physical location .
517 34. Highlight < Select timezone > and press enter.
519 35. The following menu will be displayed.
521 F10=Refresh Display .
525 `, `-, (/ \) ,-' ,' .
528 ,----------( )----------, .
529 | Local or UTC (Greenwich Mean Time) clock | )-,_ | .
531 | Is this machine's CMOS clock set to | .
534 | If it is set to local time, or you | .
535 | don't know, please choose NO here! | .
537 | < Yes >_ < No > | .
538 -------------------------------------------- .
547 36. Highlight < Yes > and press enter.
549 37. The following menu will be displayed.
551 F10=Refresh Display ----------| Select Time Zone |---------- .
553 | Select a Time Zone appropriate to your #| ,--, .
554 | physical location. #^, ,-' | .
556 | < Africa >_ # \,-' ,-' .
557 | < America > # )------' .
558 | < Antarctica > # )----------, .
559 | < Arctic > # )-,_ | .
560 | < Asia > # / `-,__,-' .
562 | < Australia > # | .
575 ---------------------------------------- .
577 38. Highlight < GMT > and press enter.
579 39. The following dialog box will be displayed.
581 F10=Refresh Display .
585 `, `-, (/ \) ,-' ,' .
588 ,----------( )----------, .
590 --------| Information |-------- \ / `-,__,-' .
592 | The Time Zone has been set to | | | .
593 | /mnt/usr/share/zoneinfo/GMT. | | | .
596 ------------------------------- | | .
609 41. The menu from step 33 will be displayed.
611 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.
613 43. The following menu will be displayed.
615 F10=Refresh Display -------| Select Keyboard Map |-------- .
617 | Select a keyboard map appropriate to # | ,--, .
618 | your keyboard layout. #,^, ,-' | .
620 | < be.iso.acc.kbd >_ # \,-' ,-' .
621 | < be.iso.kbd > # )------' .
622 | < bg.bds.ctrlcaps.kbd > * )----------, .
623 | < bg.phonetic.ctrlcaps.kbd > * )-,_ | .
624 | < br275.cp850.kbd > * / `-,__,-' .
625 | < br275.iso.acc.kbd > *| | .
626 | < br275.iso.kbd > *| | .
627 | < by.cp1131.kbd > *| | .
628 | < by.cp1251.kbd > *| | .
629 | < by.iso5.kbd > *| | .
630 | < ce.iso2.kbd > *| | .
631 | < colemak.iso15.acc.kbd > *'|' .
632 | < cs.latin2.qwertz.kbd > * .
633 | < cz.iso2.kbd > * .
634 | < danish.cp865.kbd > * .
635 | < danish.iso.kbd > * .
636 | < el.iso07.kbd > * .
637 | < estonian.cp850.kbd > * .
638 | < estonian.iso.kbd > * .
639 -------------------------------------- .
641 44. Highlight < us.dvorak.kbd > and press enter.
643 45. The menu from step 33 will be displayed.
645 46. Highlight < Add a user > and press enter.
647 47. The following menu will be displayed.
649 F10=Refresh D -------------------| Add user |-------------------- .
651 | Here you can add a user to an installed system. | ,--, .
653 | You can leave the Home Directory, User ID, and | ,-' ,' .
654 | Login Group fields empty if you want these items |' ,-' .
655 | to be automatically allocated by the system. |----' .
657 | Note: this user's password will appear in the |_ | .
658 | install log. If this is a problem, please add the | `-,__,-' .
659 | user manually after rebooting into the installed | .
660 | system instead. | .
665 | Password (Again) [ ] | .
666 | Shell [/bin/tcsh ] | .
667 | Home Directory [ ] | .
669 | Login Group [ ] | .
670 | Other Group Memberships [ ] | .
672 | < Accept and Add > < Return to Configure Menu > | .
673 Enter the use --------------------------------------------------- .
675 48. In the following fields type the following values without quotes and then highlight <Accept and Add > and press enter.
679 * Password: 'ChangeMe'
680 * Password (Again): 'ChangeMe'
682 49. The following dialog box will be displayed.
684 F10=Refresh Display .
688 `, `-, (/ \) ,-' ,' .
691 ,----------( )----------, .
693 -----| Information |---- ,-' \ / `-,__,-' .
695 | User `user' was added. | | | .
698 ------------------------ | | .
712 51. The menu from step 33 will be displayed.
714 52. Highlight < Set root password > and press enter.
716 53. The following menu will be displayed.
718 F10=Refresh Display .
722 `, `-, (/ \) ,-' ,' .
723 -------------------| Set Root Password |------------------- ,-' .
725 | Here you can set the super-user (root) password. |----, .
727 | Note: root's new password will appear in the install log. |__,-' .
728 | If this is a problem, please set root's password manually | .
729 | after rebooting into the installed system instead. | .
731 | Root password [_ ] | .
732 | Root password again [ ] | .
734 | < Accept and Set Password > | .
735 | < Return to Configure Menu > | .
736 ----------------------------------------------------------- .
743 Enter the root password you would like to use .
745 54. In the following fields type the following values without quotes and then highlight <Accept and Set Password > and press enter.
747 * Root password: 'ChangeMe'
748 * Root password again: 'ChangeMe'
750 55. The following dialog box will be displayed.
752 F10=Refresh Display .
756 `, `-, (/ \) ,-' ,' .
759 ,----------( )----------, .
761 ------------| Information |----------- \ / `-,__,-' .
763 | The root password has been changed. | | | .
766 -------------------------------------- | | .
780 57. The menu from step 33 will be displayed.
782 58. Highlight < Configure network interfaces > and press enter.
784 59. The following menu will be displayed.
786 F10=Refresh Display .
790 `, `-, (/ \) ,-' ,' .
792 ----------| Assign IP Address |---------- )------' .
794 | Please select which interface you would | )-,_ | .
795 | like to configure: | / `-,__,-' .
803 ----------------------------------------- .
812 60. Highlight < em0 > and press enter.
814 61. The following menu will be displayed.
816 F10=Refresh Display .
820 `, `-, (/ \) ,-' ,' .
823 --------------| Use DHCP? |-------------- )----------, .
825 | DHCP allows the interface to | / `-,__,-' .
826 | automatically obtain an IP address from | | .
827 | a nearby DHCP server. | | .
829 | Would you like to enable DHCP for em0? | | .
831 | < Use DHCP >_ < Configure Manually > | | .
832 ----------------------------------------- |' .
842 62. Highlight < Use DHCP > and press enter.
844 63. The following menu, specific to your hardware and network connection, will be displayed.
846 F10=Refresh Display .
849 -------------| Information |------------- ^, ,-' | .
852 | flags=8843<UP,BROADCAST,RUNNING,SIMPLEX | )------' .
853 | MULTICAST> mtu 1500 | )----------, .
854 | options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_ | )-,_ | .
855 | WTAGGING> | / `-,__,-' .
856 | inet6 fe80::a00:27ff:fe98:67cc%em0 | | .
857 | prefixlen 64 scopeid 0x1 | | .
858 | inet 10.0.2.15 netmask 0xffffff00 | | .
859 | broadcast 10.0.2.255 | | .
860 | ether 08:00:27:98:67:cc | | .
861 | media: Ethernet autoselect (1000baseT | | .
862 | <full-duplex>) ||' .
867 ----------------------------------------- .
874 65. The menu from step 33 will be displayed.
876 66. Highlight < Configure hostname and domain > and press enter.
878 67. The following menu will be displayed.
880 F10=Refresh Display .
884 `, `-, (/ \) ,-' ,' .
887 -------| Set Hostname/Domain |-------- )----------, .
889 | Please enter this machine's hostname | / `-,__,-' .
890 | and domain name. || | .
892 | Hostname [_ ] || | .
896 | < OK > < Cancel > |`|' .
897 -------------------------------------- .
904 Enter the Hostname (e.g. `machine') .
906 68. In the following fields type the following values without quotes and then highlight <OK > and press enter.
909 * Domain: 'localhost'
911 69. The menu from step 33 will be displayed.
913 70. Highlight < Return to Welcome Menu > and press enter.
915 71. The menu from step 7 will be displayed.
917 72. Highlight < Reboot this Computer > and press enter.
919 73. The following menu will be displayed.
921 F10=Refresh Display .
925 `, `-, (/ \) ,-' ,' .
928 ---------------| Reboot |--------------- )----------, .
930 | This machine is about to be shut down. | / `-,__,-' .
931 | After the machine has reached its | | .
932 | shutdown state, you may remove the CD | | .
933 | from the CD-ROM drive tray and press | | .
934 | Enter to reboot from the HDD. | | .
937 | < Return to Welcome Menu > ||' .
938 ---------------------------------------- .
947 74. Highlight < Reboot > and press enter.
949 75. The following message will be displayed.
951 The operating system has halted.
952 Please press any key to reboot.
954 76. Remove the virtual CD installation media from the virtual machine.
956 77. Press any key to reboot. Before it finishes booting, the will be greeted with the menu from step 4.
958 78. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.
960 DragonFly/x86_64 (dfly.localhost) (ttyv0)
966 80. You will be greeted with the following message and shell prompt.
968 Copyright (c) 2003-2014 The DragonFly Project. .
969 Copyright (c) 1992-2003 The FreeBSD Project. .
970 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 .
971 The Regents of the University of California. All rights reserved. .
973 DragonFly v4.0.0rc3-RELEASE (X86_64_GENERIC) #22 Wed Nov 12 21:02:57 PST 2014 .
975 Welcome to DragonFly! .
979 81. Type 'passwd' without quotes and press enter.
981 82. Type in a new root password and press enter and then retype the new root password and press enter again.
983 83. Type 'ee /etc/hosts' without quotes and press enter.
985 84. Without quotes twice replace 'localhost.my.domain' with 'dfly.localhost'.
987 85. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.
989 86. Type 'ee .cshrc' without quotes and press enter.
991 87. Without quotes replace 'setenv Editor vi' with 'setenv Editor ee'.
993 88. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.
995 89. Type 'source .cshrc' without quotes and press enter.
997 90. Type 'pkg update' without quotes and press enter.
999 91. The following output will be displayed.
1001 Updating Avalon repository catalogue...
1002 Fetching meta.txz: 100% 264 B 0.3k/s 00:01
1003 Fetching digests.txz: 100% 2 MB 313.9k/s 00:06
1004 Fetching packagesite.txz: 100% 4 MB 579.3k/s 00:08
1005 Processing new repository entries: 100%
1006 Avalon repository update completed. 21654 packages processed:
1007 0 updated, 0 removed and 21654 added.
1009 92. Type 'pkg search sudo' without quotes, press enter and note the full name of sudo.
1011 93. Type 'pkg search -f sudo-1.8.11.p1' without quotes and press enter.
1013 94. Type 'pkg install sudo' without quotes and press enter. Then when prompted, type 'y' without quotes and press enter.
1015 95. Type 'rehash' without quotes and press enter.
1017 96. Type 'visudo' without quotes and press enter.
1019 97. Without quotes replace '# %wheel ALL=(ALL) ALL' with ' %wheel ALL=(ALL) ALL'.
1021 98. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.
1023 99. Type 'pw usermod user -G wheel' without quotes and press enter.
1025 100. Type 'exit' without quotes and press enter.
1027 101. Log in as user.
1029 102. You will be greeted with the following message and shell prompt.
1031 Copyright (c) 2003-2014 The DragonFly Project. .
1032 Copyright (c) 1992-2003 The FreeBSD Project. .
1033 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 .
1034 The Regents of the University of California. All rights reserved. .
1036 DragonFly v4.0.0rc3-RELEASE (X86_64_GENERIC) #22 Wed Nov 12 21:02:57 PST 2014 .
1038 Welcome to DragonFly! .
1040 Man pages are divided into section depending on topic. There are 9 different .
1041 sections numbered from 1 (General Commands) to 9 (Kernel Developer's Manual). .
1042 You can get an introduction to each topic by typing .
1044 man <number> intro .
1046 In other words, to get the intro to general commands, type .
1051 103. Type 'passwd' without quotes and press enter.
1053 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.
1055 105. Type 'ee .cshrc' without quotes and press enter.
1057 106. Without quotes replace 'setenv Editor vi' with 'setenv Editor ee'.
1059 107. Press Ctrl-[ or Esc, then highlight 'a) leave editor' and press enter, then highlight 'a) save changes' and press enter.
1061 108. Type 'source .cshrc' without quotes and press enter.
1063 109. Type 'exit' without quotes and press enter.
1065 ### Long Walkthrough of MATE Installation and Configuration
1067 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.
1069 MATE is my favorite desktop environment. When currently installed and configured as described in this walkthrough, MATE works but has the following issues.
1071 * DPorts has MATE 1.6.1 but MATE 1.8 is the current stable release.
1072 * DPorts currently does not include the MATE meta package.
1073 * Enabling hald prevents applications from launching via the MATE menu.
1074 * Many non-fatal errors are logged in the /home/user and /var/log directories.
1075 * The console-kit-daem command in the CLI program top has high CPU utilization.
1076 * One of the post installation messages mentions devstat, but devstat is not in DPorts.
1078 I hope this walkthrough will make it easier for developers to properly fix these issues.
1083 By pressing "Scroll Lock" you can use the arrow keys to scroll backward
1084 through the console output. Press "Scroll Lock" again to turn it off.
1088 > pkg search -f xorg-7.7
1090 This is a metaport for all the X.org packages available in the ports tree.
1092 WWW: http://www.x.org/
1093 > sudo pkg install xorg-7.7
1096 The installation will require 200 MB more space
1098 70 MB to be downloaded
1100 Proceed with installing packages [y/N]: y
1102 ================================================================================
1103 You installed xterm with wide chars support. This introduces some limitations
1104 comparing to the plain single chars version: this version of xterm will use
1105 UTF-8 charset for selection buffers, breaking 8-bit copy/paste support unless
1106 you are using UTF-8 or ISO8859-1 locale. If you want 8-bit charset selections to
1107 work as before, use "eightBitSelectTypes" XTerm resource setting.
1109 For further information refer to the SELECT/PASTE section of xterm(1) manual
1111 ================================================================================
1117 > pkg search -f xdm-1.1.11_2
1119 This package contains xdm, the X.Org X Display manager.
1120 > sudo pkg install xdm-1.1.11_2
1122 The installation will require 287 KB more space
1124 97 KB to be downloaded
1125 Proceed with installing packages [y/N]: y
1129 > pkg search -x "mate-[a-z]+"
1132 The installation will require 955 MB more space
1134 201 MB to be downloaded
1136 Proceed with installing packages [y/N]: y
1138 ===============================================================================
1140 In order to use the File System read/write monitor, you must chmod
1141 /dev/devstat so that all users can open it read-only. For example:
1143 # chmod 0444 /dev/devstat
1145 In order for this to persist across reboots, add the following to
1150 ===============================================================================
1152 Note: in order to use the script dvipdf, dvips must be installed.
1153 This program may be provided by either print/dvips or print/dvipsk-tetex
1154 (print/dvipsk-tetex may be preferable since it doesn't conflict with
1157 Also note that FAPIfontmap and FAPIcidfmap in /usr/local/share/ghostscript/9.06/Resource/Init
1158 have to be configured first.
1160 **************************************************************************
1161 Congratulations! MATE base has been successfully installed on your system.
1162 For help on starting it up, as well as answers to common questions, and
1163 some known issues, please see the FreeBSD GNOME homepage at:
1165 http://www.FreeBSD.org/gnome/
1167 **************************************************************************
1169 > sudo ee /etc/rc.conf
1172 *Add the following two lines.*
1177 *Press Esc or Ctl-[*
1188 *Find the following line.*
1190 ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
1192 *Edit the previous line to match the following line.*
1194 ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure
1196 *Press Esc or Ctl-[*
1203 > sudo ee /usr/local/lib/X11/xdm/Xsetup_0
1206 *Find the following line.*
1208 xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
1210 *Edit the previous line to match the following line.*
1212 #xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
1214 *If you use the Dvorak keyboard layout instead of the QWERTY keyboard layout, add the following line.*
1218 *Press Esc or Ctl-[*
1228 *Add the following line.*
1232 *Press Esc or Ctl-[*
1239 > sudo ee /usr/local/lib/X11/xdm/xdm-config
1243 *Find the following line.*
1245 DisplayManager*authorize: true
1247 *Edit the previous line to match the following line.*
1249 DisplayManager*authorize: false
1251 *Press Esc or Ctl-[*
1258 > sudo shutdown -r now
1265 The MATE desktop will be displayed.
1267 ### Short Walkthrough of Enlightenment Installation and Configuration
1269 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.
1271 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.
1273 * DPorts has Enlightenment E17 0.17.5 but Enlightenment E18 0.18.8 is the current stable release. I prefer that the Enlightenment version not be updated until the current stable release works at least as well as the version currently in DPorts.
1274 * The splash screen significantly slows down the desktop from being displayed. This walkthrough disables the splash screen but the user has to wait for it during the first login.
1275 * The Enlightenment initial graphical configuration of keyboard layouts doesn't include the Dvorak keyboard layout.
1276 * The System > Restart and System > Power Off menu options don't work unless the Composite module is unloaded.
1278 I hope this walkthrough will make it easier for developers to properly fix these issues.
1280 1. From DPorts install the following packages and their dependencies.
1287 2. Add the following line to /etc/rc.conf and save the change to disk.
1291 3. Skim through /etc/ttys to find the following line.
1293 ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
1295 Then edit the previous line to match the following line and save the change to disk.
1297 ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure
1299 4. Skim through /usr/local/lib/X11/xdm/Xsetup_0 to find the following line.
1301 xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
1303 Then edit the previous line to match the following line and save the change to disk.
1305 #xconsole -geometry 480x130-0-0 -daemon -verbose -fn fixed -exitOnFail
1307 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.
1311 6. Skim through /usr/local/lib/X11/xdm/xdm-config to find the following line.
1313 DisplayManager*authorize: true
1315 Then edit the previous line to match the following line and save the change to disk.
1317 DisplayManager*authorize: false
1319 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.
1321 exec enlightenment_start
1323 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."
1325 sudo chmod u+s /usr/local/lib/enlightenment/utils/enlightenment_sys
1327 9. Restart DragonFly BSD and log in as user.
1329 10. The Enlightenment initial graphical configuration will be displayed. Select the following options.
1332 * Keyboard: English (US)
1333 * Profile: Computer (Standard Enlightenment)
1335 * Window Focus: Click
1336 * Updates: Enable update checking
1337 * Taskbar: Enable Taskbar
1339 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.
1341 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.
1343 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.
1346 * 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.
1347 * Package-Management: **pkg**, also known as pkgng, is roughly equivalent to **apt-get**. They are both fairly straightforward command line package management utilities.
1348 * 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!' without quotes and then press enter.
1349 * 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.
1350 * 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.
1351 * Find File: **grep** is great for finding text in a file and **find** is great for finding a file by name.
1352 * Process Management: Some good commands are top, ps, pkill and kill. There are no doubt others.
1353 * 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.
1354 * 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.
1357 * 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.
1358 * 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.
1359 * Early Keyboard Selection: The installer should set the keyboard layout before any typing is required. Observed in DragonFly 3.8.1.
1360 * Encryption Keyboard Selection: The installer should set the keyboard layout for the encryption password prompt. Observed in DragonFly 3.0.2.
1361 * 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.
1362 * 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.
1363 * 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.
1364 * 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.
1365 * 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.
1366 * 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.
1367 * 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.
1368 * Wiki Centered Text: ->Excepting the bullet point, this syntax should center text in this wiki.<- Observed on 8/25/2012.
1369 * XOrg Quit Errors: The following errors should not occur when quitting from the GUI.
1371 waiting for X server to shut down xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0.0"
1372 xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "0.0"
1373 failed to unset mtrr: Device not configured
1376 xauth: (argv):1: bad display name "myhostname.mysubdomain.mytld:0" in "remove" command
1378 Observed in DragonFly BSD 3.0.2 64-bit on VirtualBox 4.1.20 in Debian Squeeze.
1381 **Install Non-GUI on 3TB+ Hard Drive**
1383 *WARNING:* This workaround includes instructions which will delete all data from a hard drive.
1385 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).
1387 Install from a [snapshot version of DragonFly](http://avalon.dragonflybsd.org/snapshots/). Be aware that snapshot versions are less thoroughly tested than stable releases.
1389 Tested in snapshot on 8/14/2012.
1392 **Port VirtualBox to DragonFly BSD**
1394 - Build VirtualBox in FreeBSD
1396 - Compile VirtualBox
1397 - Compile Guest Additions
1398 - Build VirtualBox in DragonFly BSD
1399 - Install DragonFly BSD (Xfce IMG/ISO Installer)
1400 - Compile VirtualBox
1401 - Install VirtualBox
1403 - Compile Guest Additions
1404 - Install Guest Additions
1405 - Test Guest Additions
1406 - Package for DPorts
1409 **Update and Fix Bugs of Desktop Environments in DPorts**
1411 - Install DragonFly BSD
1412 - Compile Updated Desktop Environments
1413 - Install Updated Desktop Environments
1414 - Test, Log Bugs, and Fix Bugs in Updated Desktop Environments
1415 - Package for DPorts
1418 **DragonFly BSD Network Shares Walkthrough**
1420 - Install DragonFly BSD
1421 - Figure out network shares and write a walkthrough.