Added tidbits about default shell and su.
[ikiwiki.git] / varialus / index.mdwn
CommitLineData
f66ddf87 1# et
ed370e87 2# Anisoptera
e04d20e7 3*The following is an unpaid personal wiki page. The views and opinions expressed herein do not necessarily reflect those of the DragonFly BSD mascot nor its management.*
5e91eec6 4
c2c5c660 5## Table of Contents
6
71. **Featured**
8
0befd86f 9* Walkthrough of Xfce 4.6 Installation via Custom DVD/IMG Installer
c2c5c660 10
112. **Tidbits**
12
13* Hammer
14* DragonFly BSD
15* Xfce
16* Dissonance/Apache Harmony
17* Jython/Python
18* ee/nano
19* pkgin/apt-get
20
213. **Reminders**
22
23* DNS Settings in Debian Squeeze
24* Shutdown command in DragonFly BSD
25
264. **Issues**
27
28* Disclaimer
29* Default GUI Too Bare
30* Early Keyboard Selection
31* GUI Keyboard Selection
32* Encryption Keyboard Selection
33* Disabled Caps Lock in GUI
34* Random Key for Encrypted Swap
35* Stay Decrypted for Configuration
36* No Confirmation for Decryption
37* Plain Text Password in Install Log
38* USB Installation Media Named Uniquely
39* 3TB+ HD Install
40* Overwrite 3TB+ Partition Table
41* Lackluster Default Shell
42* Wiki Centered Text
43* XOrg Quit Errors
44
455. **Workarounds**
46
47* Enable Caps Lock in GUI
48* Install Non-GUI on 3TB+ Hard Drive
49* Install Xfce 4.6 (Notes)
50* Install Xfce 4.8 (Stub)
51* Install Xfce 4.10 (Stub)
52* Set GUI Keyboard Layout
53
b1839790 545. **Contribute**
6848ea64 55
b1839790 56* Port VirtualBox to DragonFly BSD
57* Port Xfce 4.10 to DragonFly BSD
58* DragonFly BSD Network Shares Walkthrough
59* Port bxpkg to DragonFly BSD
6848ea64 60
5e91eec6 61## Featured
62
c2c5c660 63**Walkthrough of Xfce 4.6 Installation via Custom DVD/IMG Installer**
5e91eec6 64
66660ae6 65There is a new [Xfce based DVD/IMG installer](http://island.quantumachine.net/~swildner/LiveDVD/x86_64/) which is built by [one of](http://leaf.dragonflybsd.org/mailarchive/users/2012-07/msg00123.html) the [DragonFly BSD team members](http://www.dragonflybsd.org/team/). As far as I can tell it is functionally identical to the official GUI installer except that it includes the Xfce 4.6 desktop environment rather than the FVWM window manager. Please help test it out so that we can hopefully get it included in the next stable release!
66
671. Download and extract the [Xfce installer](http://island.quantumachine.net/~swildner/LiveDVD/).
682. If the version of the installer is less than or equal to 20120826-2055, then installing onto a uniprocessor computer may not work.
693. If installng onto a VirtualBox virtual machine, the recommended operating system type is FreeBSD (64 bit).
704. If installing onto a VirtualBox virtual machine, set the hardware clock to UTC time.
715. After starting the computer but before it finishes booting, you will be greeted with the following boot menu.
72
73
74 DragonFly/i386 bootstrap loader, Revision 1.1
75 (s@advancer.yo, Sun Aug 26 21:24:11 CEST 2012)
76 |
77 1. Boot DragonFly [kernel] | ,--, | ,--,
78 2. Boot DragonFly in Safe Mode | | `-, ,^, ,-' |
79 3. Boot DragonFly without AHCI driver | `, `-, (/ \) ,-' ,'
80 4. Boot DragonFly without ACPI driver | `-, `-,/ \,-' ,-'
81 9. Escape to loader prompt (also ESC) | `------( )------'
82 s. Boot DragonFly in single user mode | ,----------( )----------,
83 v. Boot DragonFly with verbose logging | | _,-( )-,_ |
84 R. Reboot | `-,__,-' \ / `-,__,-'
85 | | |
86 | | |
87 | | |
88 | | |
89 | | |
90 | | |
91 | `|'
92 |
93 Booting in 10 seconds... _
94
956. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.
96
97 Welcome to DragonFly!
98
99 To Start the installer, login as 'installer'. To just get a shell prompt,
100 login as 'root'. To start a root gui, login as 'root' and run 'startx'.
101
102 DragonFly/x86_64 (dflyd.yo) (ttyv0)
103
104 login: _
105
1067. Type 'installer' without quotes and press enter.
1078. You will be greeted with the following menu.
108
109 F10=Refresh Display .
110 .
111 ,--, | ,--, .
112 ------------------------| Welcome to DragonFly BSD |------------------------- .
113 | |.
114 | Welcome to the DragonFly BSD Live CD. |.
115 | |.
116 | DragonFly BSD is an efficient and elegant BSD Unix-derived operating |.
117 | system. For more information, see http://www.dragonflybsd.org |.
118 | |.
119 | From this CD, you can boot into DragonFly BSD ``live'' (without installing |.
120 | it) to evaluate it, to install it manually, or to troubleshoot problems |.
121 | with an existing installation, using either a command prompt or menu-driven |.
122 | utilities. |.
123 | |.
124 | Also, you can use this automated application to assist you in installing |.
125 | DragonFly BSD on this computer and configuring it once it is installed. |.
126 | |.
127 | < Install DragonFly BSD >_ < Configure an Installed System > |.
128 | < Live CD Utilities > < Exit to Live CD > < Reboot this Computer > |.
129 | < Setup NetBoot Install Services > |.
130 ----------------------------------------------------------------------------- .
131 .
132 .
133 Install DragonFly BSD on a HDD or HDD partition on this computer .
134
13510. The bottom line changes depending on which option is selected.
13611. Highlight the option < Install DragonFly BSD > and press enter.
13712. You will then be greeted by the following menu.
138
139 F10=Refresh Display .
140 .
141 ,--, | ,--, .
142 | `-, ,^, ,-' | .
143 `, `-, (/ \) ,-' ,' .
144 --------------------------| Begin Installation |----------------------------- .
145 | |.
146 | This application will install DragonFly BSD on one of the hard disk drives |.
147 | attached to this computer. It has been designed to make it easy to install |.
148 | DragonFly BSD in the typical case. If you have special requirements that |.
149 | are not addressed by this installer, or if you have problems using it, you |.
150 | are welcome to install DragonFly BSD manually. To do so select Exit to Live |.
151 | CD, login as root, and follow the instructions given in the file /README . |.
152 | |.
153 | NOTE! As with any installation process, YOU ARE STRONGLY ENCOURAGED TO BACK |.
154 | UP ANY IMPORTANT DATA ON THIS COMPUTER BEFORE PROCEEDING! |.
155 | |.
156 | < Install DragonFly BSD >_ < Return to Welcome Menu > < Exit to Live CD > |.
157 ----------------------------| Press F1 for Help |---------------------------- .
158 .
159 .
160 .
161 .
162 .
163 .
164 .
165
16613. Highlight the option < Install DragonFly BSD > and press enter.
16714. The following menu, specific to your hardware, will be displayed.
168
169 F10=Refresh Display .
170 .
171 ,--, | ,--, .
172 | `-, ,^, ,-' | .
173 `, `-, (/ \) ,-' ,' .
174 `-, `-,/ \,-' ,-' .
175 `------( )------' .
176 ,----------( )----------, .
177 | _,-( )-,_ | .
178 ----------------------| Select Disk |----------------------,__,-' .
179 | | .
180 | Select a disk on which to install DragonFly BSD | .
181 | | .
182 | < ad1: 1337TB <VBOX HARDDISK 1.0> at ata0-master UDMA33 >_| .
183 | < Return to Begin Installation > | .
184 ----------------------------------------------------------- .
185 `|' .
186 .
187 .
188 .
189 .
190 .
191 .
192 .
193 .
194
19515. Highlight the disk on which to install DragonFly BSD and press Enter.
19616. The following menu will be displayed.
197
198 F10=Refresh Display .
199 .
200 ,--, | ,--, .
201 | `-, ,^, ,-' | .
202 `, `-, (/ \) ,-' ,' .
203 `-, `-,/ \,-' ,-' .
204 `------( )------' .
205 ,----------( )----------, .
206 ----------------------------| Select Disk |---------------------- | .
207 | |' .
208 | Select how much of this disk you want to use for DragonFly BSD | .
209 | | .
210 | ad1: 1337TB <VBOX HARDDISK 1.0> at ata0-master UDMA33 | .
211 | | .
212 | < Use Entire Disk >_ < Use Part of Disk > | .
213 | < Return to Select Disk > | .
214 ----------------------------------------------------------------- .
215 .
216 .
217 .
218 .
219 .
220 .
221 .
222 .
223
22417. If you would like to use your entire disk, then highlight < Use Entire Disk > and press enter.
22518. The following menu will be displayed.
226
227 F10=Refresh Display .
228 .
229 ,--, | ,--, .
230 | `-, ,^, ,-' | .
231 ------| Are you absolutely sure? |------/ \) ,-' ,' .
232 | | \,-' ,-' .
233 | WARNING! ALL data in ALL partitions on | )------' .
234 | the disk | )----------, .
235 | | )-,_ | .
236 | ad1: 1337TB <VBOX HARDDISK 1.0> at | / `-,__,-' .
237 | ata0-master UDMA33 | | .
238 | | | .
239 | will be IRREVOCABLY ERASED! | | .
240 | | | .
241 | Are you ABSOLUTELY SURE you wish to | | .
242 | take this action? This is your LAST | | .
243 | CHANCE to cancel! ||' .
244 | | .
245 | < OK >_ < Cancel > | .
246 ---------------------------------------- .
247 .
248 .
249 .
250 .
251 .
252
25319. If you are absolutely sure, highlight < OK > and press enter.
25420. The following menu will be displayed.
255
256 F10=Refresh Display .
257 .
258 ,--, | ,--, .
259 | `-, ,^, ,-' | .
260 `, `-, (/ \) ,-' ,' .
261 `-, `-,/ \,-' ,-' .
262 `------( )------' .
263 ---------| Information |-------------( )----------, .
264 | |( )-,_ | .
265 | The disk |\ / `-,__,-' .
266 | | | | .
267 | ad1: 1337TB <VBOX HARDDISK 1.0> at | | | .
268 | ata0-master UDMA33 | | | .
269 | | | | .
270 | was formatted. | | | .
271 | | | | .
272 | < OK > | `|' .
273 ------------------------------------ .
274 .
275 .
276 .
277 .
278 .
279 .
280 .
281
28221. Press enter.
28322. The following menu will be displayed.
284
285 F10=Refresh Display .
286 .
287 ,--, | ,--, .
288 | `-, ,^, ,-' | .
289 `, `-, (/ \) ,-' ,' .
290 `-, `-,/ \,-' ,-' .
291 `------( )------' .
292 -----------------| Select file system |------------------------, .
293 | | | .
294 | Please select the file system you want to use with |,__,-' .
295 | DragonFly BSD. | .
296 | | .
297 | HAMMER is the new DragonFly BSD file system. UFS is the | .
298 | traditional BSD file system. | .
299 | | .
300 | < Use HAMMER >_ < Use UFS > < Return to Select Disk > | .
301 --------------------------------------------------------- .
302 .
303 .
304 .
305 .
306 .
307 .
308 .
309 .
310
31123. If you want to use HAMMER, and honestly why wouldn't you, then highlight HAMMER and press enter.
31224. The following menu will be displayed.
313
314 F10=Refresh Display .
315 .
316 ,--, | ,--, .
317 --------------------| Create Subpartitions |--------------------- | .
318 | | ,' .
319 | Set up the partitions (also knows as just `partitions' in |' .
320 | BSD tradition) you want to have on this primary partition. In | .
321 | most cases you should be fine with the default settings. |-, .
322 | | | .
323 | For Capacity, use 'M' to indicate megabytes, 'G' to indicate |-' .
324 | gigabytes, or a single '*' to indicate 'use the remaining space | .
325 | on the primary partition'. | .
326 | | .
327 | Mountpoint Capacity Encrypted | .
328 | [/boot_ ] [768M ] [ ] < Ins > < Del > | .
329 | [swap ] [2048M ] [ ] < Ins > < Del > | .
330 | [/ ] [* ] [ ] < Ins > < Del > | .
331 | < Add > | .
332 | | .
333 | < Accept and Create > < Return to Select Disk > | .
334 -------------------| Press F1 for Help |------------------------- .
335 .
336 .
337 .
338 .
339
34025. Highlight < Accept and Create > and press enter.
34126. The following menu will be displayed.
342
343 F10=Refresh Display .
344 .
345 ,--, | ,--, .
346 | `-, ,^, ,-' | .
347 `, `-, (/ \) ,-' ,' .
348 `-, `-,/ \,-' ,-' .
349 -------------------------| Install OS |-------------------------- .
350 | |-, .
351 | Everything is now ready to install the actual files which | | .
352 | comprise the DragonFly BSD operating system on the selected |-' .
353 | partition of the selected disk. | .
354 | | .
355 | Note that this process will take quite a while to finish. You | .
356 | may wish to take a break now and come back to the computer in a | .
357 | short while. | .
358 | | .
359 | < Begin Installing Files >_ < Return to Create Subpartitions > | .
360 ----------------------------------------------------------------- .
361 .
362 .
363 .
364 .
365 .
366 .
367 .
368 .
369
37027. Highlight < Begin Installing Files > and press enter.
37128. The following progress bar will be displayed.
372
373 F10=Refresh Display .
374 .
375 ,--, | ,--, .
376 | `-, ,^, ,-' | .
377 `, `-, (/ \) ,-' ,' .
378 `-, `-,/ \,-' ,-' .
379 `------( )------' .
380 ,----------( )----------, .
381 -------------------| Executing Commands |------------------- | .
382 | |_,-' .
383 | /bin/cpdup -o -vvv -u /usr/pkg /mnt/usr/pkg | .
384 | | .
385 | [*#################58%# ] | .
386 | | .
387 | < Cancel >_ | .
388 ------------------------------------------------------------ .
389 `|' .
390 .
391 .
392 .
393 .
394 .
395 .
396 .
397 .
398
39929. Go brush your teeth. And don't forget to floss.
40030. When it finishes, the following menu will be displayed.
401
402 F10=Refresh Display .
403 .
404 ,--, | ,--, .
405 | `-, ,^, ,-' | .
406 ---------------| Install Bootblock(s) |----------------,-' ,' .
407 | | ,-' .
408 | You may now wish to install bootblocks on one or more |--' .
409 | disks. If you already have a boot manager installed, |------, .
410 | you can skip this step (but you may have to configure | | .
411 | your boot manager separately.) If you installed |-,__,-' .
412 | DragonFly BSD on a disk other than your first disk, | .
413 | you will need to put the bootblock on at least your | .
414 | first disk and the DragonFly disk. | .
415 | | .
416 | Disk Drive Install Bootblock? Packet Mode? | .
417 | [ad1_ ] [X] [X] | .
418 | | .
419 | < Accept and Install Bootblocks > | .
420 | < Skip this Step > | .
421 -----------------| Press F1 for Help |----------------- .
422 .
423 .
424 .
425 .
426 The disk on which you wish to install a bootblock .
427
42831. Highlight < Accept and Install Bootblocks > and press enter.
42932. An Information dialog box will be displayed which says: Bootblocks were successfully installed!
43033. Press enter.
43134. The following menu will be displayed.
432
433 ---| DragonFly BSD is Installed! |--
434 |
435 | Congratulations!
0befd86f 436 |
66660ae6 437 | DragonFly BSD has successfully been installed on this computer.
438 | You may now proceed to configure the installation. Alternately,
439 | you may wish to reboot the computer and boot into the installed
440 | system to confirm that it works.
441 |
442 | < Configure this System >_ < Reboot >
443 | < Return to Welcome Menu >
444 ---
5e91eec6 445
0befd86f 44635. Highlight < Configure this System > and press enter.
44736. The following menu will be displayed.
448
449 ---| Configure an Installed System |--
450 |
451 | The options on this menu allow you to
452 | configure a DragonFly BSD system after
453 | it has already been installed.
454 | < Select timezone >_
455 | < Set date and time >
456 | < Set keyboard map >
457 | < Set root password >
458 | < Add a user >
459 | < Configure network interfaces >
460 | < Configure hostname and domain >
461 | < Set console font >
462 | < Set screen map >
463 | < Remove software packages >
464 | < Return to Welcome Menu >
465 ---
466
46737. Highlight < Select timezone > and press enter.
468
469(The only purpose of this line is to reduce the indentation of the following bullet points.)
470
471* Highlight < Set keyboard map > and press enter.
472* Highlight < Set root password > and press enter.
473* changeme
474* Highlight < Add a user > and press enter.
475* Password: changeme
476* Highlight < Configure network interfaces > and press enter.
477* Highlight < Configure hostname and domain > and press enter.
478* Highlight < Return to Welcome Menu > and press enter.
479* Highlight < Reboot this Computer > and press enter.
480* Highlight < Reboot > and press enter.
481* Remove installation media.
482* The operating system has halted.
483* Please press any key to reboot.
484* Log in as root.
485* Change password.
486* ee /etc/hosts
487* # Replace hostname and domain with the ones that you chose during configuration.
488* ::1 localhost hostname.domain
489* 127.0.0.1 localhost hostname.domain
490* Ctrl-[
491* a) leave editor
492* a) save changes
493* exit
494* Log in as user.
495* Change password.
e59d72e5 496* startxfce4 (I think that running startx from the root user starts Xfce, but running it from a regular user starts the non-Xfce GUI.)
0befd86f 497
5e91eec6 498## Tidbits
37b8379c 499* In the default shell, **tcsh**, ctrl-d is equivalent to tab-tab in **bash**. And 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.
500* **pkgin** is roughly equivalent to **apt-get**. They are both fairly straightforward command line package management utilities. Regular programs installed via pkgin are generally located in /usr/pkg/bin.
501* Like Debian, DragonFly BSD is configured by default to use su by default rather sudo, which is the default in Ubuntu. Running su changes the user you are logged in within a single shell instance whereas sudo lets you run a single command as another user. Both programs default to changing the user to root user. To enable your regular user to use su to become root, as root run nano /etc/groups and then change the line wheel:*:0:root to wheel:*:root,yourusername except of course replace rourusername with your user name. Running su - will change the shell environment variables to that of the user to which you're changing.
c73a5f26 502* **Hammer** is hands down the best file system currently in existence. It has block level deduplication, it is supported out of the box by operating system with great underpinnings, and it runs great on regular hardware.
503* **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.
8df94b7a 504* **[Xfce](http://xfce.org/)** is a lightweight yet feature rich desktop environment. It has maintains an excellent balance between [innovation and compatibility](http://lwn.net/Articles/430598/).
12e7194b 505* **[Dissonance](https://bitbucket.org/varialus/dissonance)** is my fork of Apache Harmony, which is a clean room implementation of Java with a permissive license. Sun and now Oracle refuse to license the TCK, a tool used to validate Java compatibility, for use with Harmony. As a result of the dissonance caused by this refusal to cooperate with the community, Apache retired Harmony and resigned from the Java Community Process Executive Committee. I would have preferred for Apache and the community to have instead just written their own TCK, but I don't know what effects the dissonance had on their organization and it was their decision to make, so I can't blame them. It's unfortunate that such a great project has been effectively abandoned, and so it it is with that in mind that I call on the community to support Dissonance; make your own TCK and make it so much better so as to make passing Oracle's TCK effectively meaningless.
506* **[Jython](http://www.jython.org/)** is Python written in Java. It's not included in DragonFly BSD by default, but it's a great tool and I use it.
507* **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-[ and selecting 'a) leave editor'.
248bec77 508
5e91eec6 509## Reminders
c73a5f26 510* If NetworkManager Applet is installed, use it to override an unreliable DNS server rather than editing /etc/resolv.conf directly. Observed in NetworkManager 0.8.1 on Debian Squeeze.
65e00ca1 511* In 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.
c73a5f26 512
5e91eec6 513## Issues
b5491331 514* Varialus should ensure that these issues are properly logged. Yes, I know that they should be properly logged and I intend to eventually get them all logged. In the mean time hopefully my notes will help someone still trying to find the answers to life's persistent questions.
8df94b7a 515* The installer should offer the Xfce desktop environment as a supported option. Observed in DragonFly 3.0.2. See workaround below.
74c82ddf 516* The installer should set the keyboard layout before any typing is required. Observed in DragonFly 3.0.2.
c1758fdf 517* The installer should set the keyboard layout for the GUI. Observed in DragonFly 3.0.2. See workaround below.
dabfe801 518* The installer should set the keyboard layout for the encryption password prompt. Observed in DragonFly 3.0.2.
c1758fdf 519* The installer should configure the keyboard within the GUI to be able to use the caps lock key. Observed in DragonFly 3.0.2. See workaround below.
74c82ddf 520* 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.
521* 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.
522* 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.
2085015f 523* 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.0.2.
74c82ddf 524* 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.
c1758fdf 525* 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.
74c82ddf 526* 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.
dabfe801 527* The default shell provided by the installer should list valid auto completion options after typing a partial command and then pressing tab two or more times. Observed in DragonFly 3.0.2.
74c82ddf 528* ->Excepting the bullet point, this syntax should center text in this wiki.<- Observed on 8/25/2012.
12e7194b 529* The following errors should not occur when quitting from the GUI.
530
531 waiting for X server to shut down xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0.0"
532 xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "0.0"
533 failed to unset mtrr: Device not configured
534
535
536 xauth: (argv):1: bad display name "myhostname.mysubdomain.mytld:0" in "remove" command
537
538 Observed in DragonFly BSD 3.0.2 64-bit on VirtualBox 4.1.20 in Debian Squeeze.
a7b44ded 539
5e91eec6 540## Workarounds
c1758fdf 541**Enable the Caps Lock Key within the GUI**
542
543Edit the file /etc/X11/xorg.conf.
544
545 ee /etc/X11/xorg.conf
546
547Delete the ctrl:nocaps XkbOptions option from the InputDevice section with the identifier Keyboard0 of the xorg.conf file. Or comment it out by prefixing the line with the # symbol.
548
549 Section "InputDevice"
550 Identifier "Keyboard0"
551 Driver "kbd"
552 #Option "XkbOptions" "ctrl:nocaps"
553 EndSection
554
c73a5f26 555Observed in DragonFly BSD 3.0.2.
556
c1758fdf 557**Install Non-GUI on 3TB+ Hard Drive**
558
559*WARNING:* This workaround includes instructions which will delete all data from a hard drive.
560
561Delete 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).
562
563Install from a [snapshot version of DragonFly](http://avalon.dragonflybsd.org/snapshots/). Be aware that snapshot versions are less thoroughly tested than stable releases.
564
565Tested in snapshot on 8/14/2012.
566
f378b134 567**Install Xfce 4.6**
568
569*WARNING:* This workaround is not yet complete. Contributions are welcome.
570
2085015f 571The following testing is being done with a root account and no user account. Additional testing with a regular user account will be done later.
572
573*DragonFly BSD 3.1-DEVELOPMENT Non-GUI Instructions*
574
5cde5737 575Summary
576
577* Install XOrg if it's not already installed.
578* Ensure that mouse works.
579* Get the xfce4 meta-package make file.
580* Install binary files listed in xfce4 meta-package make file.
581
582These instructions are currently a mess. They're currently just a rough outline of how I got it working. I'll go through and clean it up later.
583
6216ff22 584Get a list of which packages would be included if Xfce was installed from source. If you haven't already done so, [create and update the pkgsrc tree](http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index2h2). Running make pkgsrc-create failed for me when I ran it in my virtual machine with 2 GB, but succeeded when I ran it with 3171 MB.
2085015f 585
586 cd /usr/
587 make pkgsrc-create
588 make pkgsrc-update
6216ff22 589 cd /usr/pkgsrc/meta-pkgs/xfce4
590 pkgin update
5cde5737 591 pkgin in `cat Makefile | grep -E "xfce4.*mk" | sed -e 's/.include.*\/xf/xf/g' -e 's/\/.*/ /g' | tr -d "\n"`
6216ff22 592 pkg_radd modular-xorg
593 ls /dev/
594
595Log into another console window by pressing Ctrl-Alt-F2 or in VirtualBox, Alt-F2.
596
597 man moused
598
599Scroll down until you find where it mentions mouse dev names.
600
601 ee /etc/X11/xorg.conf
602
603Comment out the /dev/sysmouse line by putting a # in front of it. Add the following line.
604
605 Option "Device" "/dev/psm0"
606
607Except replace psm0 with whichever mouse you've got listed in /dev. Then save the file.
608
609 startxfce4
2085015f 610
611*DragonFly BSD 3.0.2 GUI Instructions*
612
613I got the message Error Code 1 while creating and updating my pkgsrc tree. I haven't yet looked into it further.
614
615Get a list of which packages would be included if Xfce was installed from source. If you haven't already done so, [create and update the pkgsrc tree](http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index2h2).
616
617 cd /usr/
618 make pkgsrc-create
619 make pkgsrc-update
620
621Get a list of which packages would be included if Xfce was installed from source. The pkgsrc tree was maybe already created by default on this version of DragonFly BSD. If it has not already been created, you'd first want to [create it](http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index2h2) before continuing. Update the pkgsrc tree.
622
623 cd /usr/
624 make pkgsrc-update
625
626*Notes*
f378b134 627
9ddcfc4c 628* [XFCE based LiveDVD/IMG](http://leaf.dragonflybsd.org/mailarchive/users/2012-07/msg00123.html)
629* [Installing a Desktop Environment: Xfce4](http://www.dragonflybsd.org/docs/how_to_get_to_the_desktop/#index11h3)
630* [Desktop Environments: Xfce](http://www.dragonflybsd.org/docs/newhandbook/X/#index9h3)
631* [Longest DragonFly BSD Review: Running Xfce in DragonFlyBSD 3.0.1](http://insidesocal.com/click/2012/04/review-dragonflybsd-301----the-5.html)
f378b134 632* [Instructions via Google Translate](http://www.google.com/translate_c?langpair=en&u=http://dragonflybsd.fr/index.php?page=Installation+de+Xfce4)
633* [Installing pkgsrc](http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index2h2)
634
2085015f 635 pkgin search xfce
636
f378b134 637**Install Xfce 4.8**
638
639*WARNING:* This workaround is not yet complete. Contributions are welcome.
640
641* [Choosing between portability and innovation](http://lwn.net/Articles/430598/)
642* [Xfce 4.8 on BSD flavors](http://gezeiten.org/post/2011/01/Xfce-4.8-on-BSD-flavors)
643* [Xfce 4.8 tour](http://xfce.org/about/tour48)
644
9ddcfc4c 645**Install Xfce 4.10**
646
647*WARNING:* This workaround is not yet complete. Contributions are welcome.
648
649* [Xfce 4.10 released](http://www.xfce.org/about/news/?post=1335571200)
650* [Xfce 4.10 tour](http://xfce.org/about/tour)
651
a7b44ded 652**Set the GUI Keyboard Layout**
653
654Edit the file /etc/X11/xorg.conf.
655
656 ee /etc/X11/xorg.conf
657
658Set the XkbVariant option to your keyboard variant.
659
660 Section "InputDevice"
661 Identifier "Keyboard0"
662 Driver "kbd"
663 Option "XkbVariant" "dvorak"
664 EndSection
665
666Valid keyboard options can be found by searching through /usr/pkg/share/X11/xkb/symbols/ for example to find references to the dvorak keyboard layout, run the following command.
667
668 grep --color -n -r dvorak /usr/pkg/share/X11/xkb/symbols
669
670If too many lines scroll by, you can use your arrow buttons to scroll back within the non-graphical console screen by pressing the Scroll Lock button on your keyboard.
671
74c82ddf 672Tested in DragonFly 3.0.2.
6848ea64 673
b1839790 674## Contribute
675
676**Port VirtualBox to DragonFly BSD**
677
b2a6f092 678 - Build VirtualBox in GhostBSD (GhostBSD is FreeBSD with Gnome or LXDE installed out of the box.)
679 - Install GhostBSD (Gnome version 3.0 RC1 in VirtualBox)
680 - It's easier to change the keyboard layout in the Gnome version.
681 - If your keyboard stops working during the install then do the following.
682 - Restart GhostBSD LiveCD/LiveUSB
683 - Applications > Accessories > Text Editor
684 - Type your answers to the following fields.
685 - root password
686 - username
687 - full name of user
688 - user password
689 - hostname.
690 - Copy and paste your answers into the installer.
691 - Initialize build environment: http://www.freebsd.org/doc/handbook/updating-upgrading-portsnap.html
692 - Handbook Instructions: http://www.freebsd.org/doc/handbook/updating-upgrading-portsnap.html
693 - portsnap fetch (68 MB as root)
694 - portsnap extract (as root)
695 - portsnap update (as root)
696 - Install Guest Additions (from FreeBSD, not from Oracle)
697 - Initialize build environment (See above)
698 - Wiki Instructions: http://wiki.freebsd.org/VirtualBox#Installing_Guest_Additions_for_FreeBSD_guests
699 - Handbook Instructions: http://www.freebsd.org/doc/handbook/virtualization-guest.html
700 - Notes: http://forums.ghostbsd.org/viewtopic.php?f=8&t=693
701 - More Notes: http://forums.freebsd.org/showthread.php?t=29172
702 - Create a supfile.
703 - ee /root/9rel-supfile (as root)
704 - Firefox within VM http://www.dragonflybsd.org/varialus/
705 - Copy and paste the following into your supfile.
706 *default host=CHANGE_THIS.FreeBSD.org
707 *default base=/var/db
708 *default prefix=/usr
709 *default release=cvs tag=RELENG_9_1
710 *default delete use-rel-suffix
711 *default compress
712 src-all
713 - Firefox http://www.freebsd.org/doc/en/books/handbook/cvsup.html#CVSUP-MIRRORS
714 - Pick close server and change line *default host=CHANGE_THIS.FreeBSD.org
715 - Optionally pick fastest server: http://www.freshports.org/sysutils/fastest_cvsup
716 - Ctrl-[
717 - a) leave editor
718 - a) save changes
719 - cd /root/ (as root)
720 - csup 9rel-supfile (as root)
0eb38dce 721 - If outgoing connections to port 5999 are blocked, here are a few possible solutions which I have not yet tried.
722 - http://lists.freebsd.org/pipermail/freebsd-stable/2005-August/017991.html
723 - http://lists.freebsd.org/pipermail/freebsd-questions/2004-February/034761.html
724 - http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/041566.html
b2a6f092 725 - cd /usr/ports/emulators/virtualbox-ose-additions && make install clean (as root)
d3c598d8 726 - The following console dialog will be be displayed.
727 - Options for virtualbox-ose-additions 4.1.22
728 - [ ] DEBUG Install debug symbols
729 - [ ] OPENGL OpenGL support
730 - [X] X11 X11 support (graphics)
731 - < OK > <Cancel>
732 - Highlight < OK > and press enter.
9b3baec9 733 - The first time I ran this I got a missing dependency error because there had been a minor version update recently. The dependency error was fixed a few hours later. Right after that, the official version of 4.2 was released. To see the original error error, see the edit from 01:48:39 09/13/12.
734 - The following console dialog will be be displayed.
735 - Options for help2man1.40.11
736 - [X] NLS Native Language Support
737 - < OK > <Cancel>
738 - Highlight < OK > and press enter.
739 - The following console dialog will be be displayed.
740 - Options for m4 1.4.16_1,1
741 - [ ] LIBSIGSEGV Use libsigsegv for better diagnostics
742 - < OK > <Cancel>
743 - Highlight < OK > and press enter.
744 - Wait for a little while until it successfully finishes.
745 - Restart virtual machine. (This probably wasn't needed yet.)
746 - Screen resolution increased, but no mouse integration nor copy and paste. Host is Debian Squeeze.
747 - ee /etc/rc.conf (as root)
748 - Add the following lines
be07e999 749
9b3baec9 750 vboxguest_enable="YES"
751 vboxservice_enable="YES"
be07e999 752
9b3baec9 753 - The notes at the URL above mention adding lines to xorg.conf for mouse integration, but I didn't see an xorg.conf in /etc/X11 or in /etc so I skipped this step for now.
754 - The notes also mentioned creating a file for HAL users or copying it, but I didn't see a file at /usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi so I am skipping this step for the moment.
755 - Restart.
756 - I just noticed that the lines had already been added to /etc/rc.conf, so I removed the extra ones that I had added.
757 - Changed to terminal without X server. Host+F2 in VirtualBox, Ctrl-Alt-F2 on hardware.
758 - Log in as root.
759 - The following didn't work.
760 - killall -9 gdm gdm-binary Xorg
761 - Xorg -configure
762 - Xorg -config /root/xorg.conf.new
763 - X started with black screen, no mouse.
764 - I've run out of time to look into this at the moment. I'll return to it later.
b2a6f092 765 - Build VirtualBox
766 - Initialize build environment (See above)
767 - Build Guest Additions
768 - Build VirtualBox in DragonFly BSD
769 - Install DragonFly BSD (Xfce IMG/ISO Installer)
770 - Build VirtualBox
771 - Install VirtualBox
772 - Test VirtualBox
773 - Build Guest Additions
774 - Install Guest Additions
775 - Test Guest Additions
776 - Package for pkgsrc
777 - Upload to pkgsrc
b1839790 778
779**Port Xfce 4.10 to DragonFly BSD**
780
b2a6f092 781 - Install DragonFly BSD (Xfce IMG/ISO Installer in VirtualBox)
782 - Build Instructions: http://docs.xfce.org/xfce/building
783 - Package for pkgsrc
784 - Upload to pkgsrc
b1839790 785
786**DragonFly BSD Network Shares Walkthrough**
787
b2a6f092 788 - Install DragonFly BSD (Xfce IMG/ISO Installer in VirtualBox)
b1839790 789
790**Port bxpkg to DragonFly BSD**
791
b2a6f092 792 - Install DragonFly BSD (Xfce IMG/ISO Installer in VirtualBox)