Corrected final command to start Xfce.
[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
5e91eec6 54## Featured
55
c2c5c660 56**Walkthrough of Xfce 4.6 Installation via Custom DVD/IMG Installer**
5e91eec6 57
66660ae6 58There 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!
59
601. Download and extract the [Xfce installer](http://island.quantumachine.net/~swildner/LiveDVD/).
612. If the version of the installer is less than or equal to 20120826-2055, then installing onto a uniprocessor computer may not work.
623. If installng onto a VirtualBox virtual machine, the recommended operating system type is FreeBSD (64 bit).
634. If installing onto a VirtualBox virtual machine, set the hardware clock to UTC time.
645. After starting the computer but before it finishes booting, you will be greeted with the following boot menu.
65
66
67 DragonFly/i386 bootstrap loader, Revision 1.1
68 (s@advancer.yo, Sun Aug 26 21:24:11 CEST 2012)
69 |
70 1. Boot DragonFly [kernel] | ,--, | ,--,
71 2. Boot DragonFly in Safe Mode | | `-, ,^, ,-' |
72 3. Boot DragonFly without AHCI driver | `, `-, (/ \) ,-' ,'
73 4. Boot DragonFly without ACPI driver | `-, `-,/ \,-' ,-'
74 9. Escape to loader prompt (also ESC) | `------( )------'
75 s. Boot DragonFly in single user mode | ,----------( )----------,
76 v. Boot DragonFly with verbose logging | | _,-( )-,_ |
77 R. Reboot | `-,__,-' \ / `-,__,-'
78 | | |
79 | | |
80 | | |
81 | | |
82 | | |
83 | | |
84 | `|'
85 |
86 Booting in 10 seconds... _
87
886. After the computer finishes booting, you will be greeted with the following welcome message and login prompt.
89
90 Welcome to DragonFly!
91
92 To Start the installer, login as 'installer'. To just get a shell prompt,
93 login as 'root'. To start a root gui, login as 'root' and run 'startx'.
94
95 DragonFly/x86_64 (dflyd.yo) (ttyv0)
96
97 login: _
98
997. Type 'installer' without quotes and press enter.
1008. You will be greeted with the following menu.
101
102 F10=Refresh Display .
103 .
104 ,--, | ,--, .
105 ------------------------| Welcome to DragonFly BSD |------------------------- .
106 | |.
107 | Welcome to the DragonFly BSD Live CD. |.
108 | |.
109 | DragonFly BSD is an efficient and elegant BSD Unix-derived operating |.
110 | system. For more information, see http://www.dragonflybsd.org |.
111 | |.
112 | From this CD, you can boot into DragonFly BSD ``live'' (without installing |.
113 | it) to evaluate it, to install it manually, or to troubleshoot problems |.
114 | with an existing installation, using either a command prompt or menu-driven |.
115 | utilities. |.
116 | |.
117 | Also, you can use this automated application to assist you in installing |.
118 | DragonFly BSD on this computer and configuring it once it is installed. |.
119 | |.
120 | < Install DragonFly BSD >_ < Configure an Installed System > |.
121 | < Live CD Utilities > < Exit to Live CD > < Reboot this Computer > |.
122 | < Setup NetBoot Install Services > |.
123 ----------------------------------------------------------------------------- .
124 .
125 .
126 Install DragonFly BSD on a HDD or HDD partition on this computer .
127
12810. The bottom line changes depending on which option is selected.
12911. Highlight the option < Install DragonFly BSD > and press enter.
13012. You will then be greeted by the following menu.
131
132 F10=Refresh Display .
133 .
134 ,--, | ,--, .
135 | `-, ,^, ,-' | .
136 `, `-, (/ \) ,-' ,' .
137 --------------------------| Begin Installation |----------------------------- .
138 | |.
139 | This application will install DragonFly BSD on one of the hard disk drives |.
140 | attached to this computer. It has been designed to make it easy to install |.
141 | DragonFly BSD in the typical case. If you have special requirements that |.
142 | are not addressed by this installer, or if you have problems using it, you |.
143 | are welcome to install DragonFly BSD manually. To do so select Exit to Live |.
144 | CD, login as root, and follow the instructions given in the file /README . |.
145 | |.
146 | NOTE! As with any installation process, YOU ARE STRONGLY ENCOURAGED TO BACK |.
147 | UP ANY IMPORTANT DATA ON THIS COMPUTER BEFORE PROCEEDING! |.
148 | |.
149 | < Install DragonFly BSD >_ < Return to Welcome Menu > < Exit to Live CD > |.
150 ----------------------------| Press F1 for Help |---------------------------- .
151 .
152 .
153 .
154 .
155 .
156 .
157 .
158
15913. Highlight the option < Install DragonFly BSD > and press enter.
16014. The following menu, specific to your hardware, will be displayed.
161
162 F10=Refresh Display .
163 .
164 ,--, | ,--, .
165 | `-, ,^, ,-' | .
166 `, `-, (/ \) ,-' ,' .
167 `-, `-,/ \,-' ,-' .
168 `------( )------' .
169 ,----------( )----------, .
170 | _,-( )-,_ | .
171 ----------------------| Select Disk |----------------------,__,-' .
172 | | .
173 | Select a disk on which to install DragonFly BSD | .
174 | | .
175 | < ad1: 1337TB <VBOX HARDDISK 1.0> at ata0-master UDMA33 >_| .
176 | < Return to Begin Installation > | .
177 ----------------------------------------------------------- .
178 `|' .
179 .
180 .
181 .
182 .
183 .
184 .
185 .
186 .
187
18815. Highlight the disk on which to install DragonFly BSD and press Enter.
18916. The following menu will be displayed.
190
191 F10=Refresh Display .
192 .
193 ,--, | ,--, .
194 | `-, ,^, ,-' | .
195 `, `-, (/ \) ,-' ,' .
196 `-, `-,/ \,-' ,-' .
197 `------( )------' .
198 ,----------( )----------, .
199 ----------------------------| Select Disk |---------------------- | .
200 | |' .
201 | Select how much of this disk you want to use for DragonFly BSD | .
202 | | .
203 | ad1: 1337TB <VBOX HARDDISK 1.0> at ata0-master UDMA33 | .
204 | | .
205 | < Use Entire Disk >_ < Use Part of Disk > | .
206 | < Return to Select Disk > | .
207 ----------------------------------------------------------------- .
208 .
209 .
210 .
211 .
212 .
213 .
214 .
215 .
216
21717. If you would like to use your entire disk, then highlight < Use Entire Disk > and press enter.
21818. The following menu will be displayed.
219
220 F10=Refresh Display .
221 .
222 ,--, | ,--, .
223 | `-, ,^, ,-' | .
224 ------| Are you absolutely sure? |------/ \) ,-' ,' .
225 | | \,-' ,-' .
226 | WARNING! ALL data in ALL partitions on | )------' .
227 | the disk | )----------, .
228 | | )-,_ | .
229 | ad1: 1337TB <VBOX HARDDISK 1.0> at | / `-,__,-' .
230 | ata0-master UDMA33 | | .
231 | | | .
232 | will be IRREVOCABLY ERASED! | | .
233 | | | .
234 | Are you ABSOLUTELY SURE you wish to | | .
235 | take this action? This is your LAST | | .
236 | CHANCE to cancel! ||' .
237 | | .
238 | < OK >_ < Cancel > | .
239 ---------------------------------------- .
240 .
241 .
242 .
243 .
244 .
245
24619. If you are absolutely sure, highlight < OK > and press enter.
24720. The following menu will be displayed.
248
249 F10=Refresh Display .
250 .
251 ,--, | ,--, .
252 | `-, ,^, ,-' | .
253 `, `-, (/ \) ,-' ,' .
254 `-, `-,/ \,-' ,-' .
255 `------( )------' .
256 ---------| Information |-------------( )----------, .
257 | |( )-,_ | .
258 | The disk |\ / `-,__,-' .
259 | | | | .
260 | ad1: 1337TB <VBOX HARDDISK 1.0> at | | | .
261 | ata0-master UDMA33 | | | .
262 | | | | .
263 | was formatted. | | | .
264 | | | | .
265 | < OK > | `|' .
266 ------------------------------------ .
267 .
268 .
269 .
270 .
271 .
272 .
273 .
274
27521. Press enter.
27622. The following menu will be displayed.
277
278 F10=Refresh Display .
279 .
280 ,--, | ,--, .
281 | `-, ,^, ,-' | .
282 `, `-, (/ \) ,-' ,' .
283 `-, `-,/ \,-' ,-' .
284 `------( )------' .
285 -----------------| Select file system |------------------------, .
286 | | | .
287 | Please select the file system you want to use with |,__,-' .
288 | DragonFly BSD. | .
289 | | .
290 | HAMMER is the new DragonFly BSD file system. UFS is the | .
291 | traditional BSD file system. | .
292 | | .
293 | < Use HAMMER >_ < Use UFS > < Return to Select Disk > | .
294 --------------------------------------------------------- .
295 .
296 .
297 .
298 .
299 .
300 .
301 .
302 .
303
30423. If you want to use HAMMER, and honestly why wouldn't you, then highlight HAMMER and press enter.
30524. The following menu will be displayed.
306
307 F10=Refresh Display .
308 .
309 ,--, | ,--, .
310 --------------------| Create Subpartitions |--------------------- | .
311 | | ,' .
312 | Set up the partitions (also knows as just `partitions' in |' .
313 | BSD tradition) you want to have on this primary partition. In | .
314 | most cases you should be fine with the default settings. |-, .
315 | | | .
316 | For Capacity, use 'M' to indicate megabytes, 'G' to indicate |-' .
317 | gigabytes, or a single '*' to indicate 'use the remaining space | .
318 | on the primary partition'. | .
319 | | .
320 | Mountpoint Capacity Encrypted | .
321 | [/boot_ ] [768M ] [ ] < Ins > < Del > | .
322 | [swap ] [2048M ] [ ] < Ins > < Del > | .
323 | [/ ] [* ] [ ] < Ins > < Del > | .
324 | < Add > | .
325 | | .
326 | < Accept and Create > < Return to Select Disk > | .
327 -------------------| Press F1 for Help |------------------------- .
328 .
329 .
330 .
331 .
332
33325. Highlight < Accept and Create > and press enter.
33426. The following menu will be displayed.
335
336 F10=Refresh Display .
337 .
338 ,--, | ,--, .
339 | `-, ,^, ,-' | .
340 `, `-, (/ \) ,-' ,' .
341 `-, `-,/ \,-' ,-' .
342 -------------------------| Install OS |-------------------------- .
343 | |-, .
344 | Everything is now ready to install the actual files which | | .
345 | comprise the DragonFly BSD operating system on the selected |-' .
346 | partition of the selected disk. | .
347 | | .
348 | Note that this process will take quite a while to finish. You | .
349 | may wish to take a break now and come back to the computer in a | .
350 | short while. | .
351 | | .
352 | < Begin Installing Files >_ < Return to Create Subpartitions > | .
353 ----------------------------------------------------------------- .
354 .
355 .
356 .
357 .
358 .
359 .
360 .
361 .
362
36327. Highlight < Begin Installing Files > and press enter.
36428. The following progress bar will be displayed.
365
366 F10=Refresh Display .
367 .
368 ,--, | ,--, .
369 | `-, ,^, ,-' | .
370 `, `-, (/ \) ,-' ,' .
371 `-, `-,/ \,-' ,-' .
372 `------( )------' .
373 ,----------( )----------, .
374 -------------------| Executing Commands |------------------- | .
375 | |_,-' .
376 | /bin/cpdup -o -vvv -u /usr/pkg /mnt/usr/pkg | .
377 | | .
378 | [*#################58%# ] | .
379 | | .
380 | < Cancel >_ | .
381 ------------------------------------------------------------ .
382 `|' .
383 .
384 .
385 .
386 .
387 .
388 .
389 .
390 .
391
39229. Go brush your teeth. And don't forget to floss.
39330. When it finishes, the following menu will be displayed.
394
395 F10=Refresh Display .
396 .
397 ,--, | ,--, .
398 | `-, ,^, ,-' | .
399 ---------------| Install Bootblock(s) |----------------,-' ,' .
400 | | ,-' .
401 | You may now wish to install bootblocks on one or more |--' .
402 | disks. If you already have a boot manager installed, |------, .
403 | you can skip this step (but you may have to configure | | .
404 | your boot manager separately.) If you installed |-,__,-' .
405 | DragonFly BSD on a disk other than your first disk, | .
406 | you will need to put the bootblock on at least your | .
407 | first disk and the DragonFly disk. | .
408 | | .
409 | Disk Drive Install Bootblock? Packet Mode? | .
410 | [ad1_ ] [X] [X] | .
411 | | .
412 | < Accept and Install Bootblocks > | .
413 | < Skip this Step > | .
414 -----------------| Press F1 for Help |----------------- .
415 .
416 .
417 .
418 .
419 The disk on which you wish to install a bootblock .
420
42131. Highlight < Accept and Install Bootblocks > and press enter.
42232. An Information dialog box will be displayed which says: Bootblocks were successfully installed!
42333. Press enter.
42434. The following menu will be displayed.
425
426 ---| DragonFly BSD is Installed! |--
427 |
428 | Congratulations!
0befd86f 429 |
66660ae6 430 | DragonFly BSD has successfully been installed on this computer.
431 | You may now proceed to configure the installation. Alternately,
432 | you may wish to reboot the computer and boot into the installed
433 | system to confirm that it works.
434 |
435 | < Configure this System >_ < Reboot >
436 | < Return to Welcome Menu >
437 ---
5e91eec6 438
0befd86f 43935. Highlight < Configure this System > and press enter.
44036. The following menu will be displayed.
441
442 ---| Configure an Installed System |--
443 |
444 | The options on this menu allow you to
445 | configure a DragonFly BSD system after
446 | it has already been installed.
447 | < Select timezone >_
448 | < Set date and time >
449 | < Set keyboard map >
450 | < Set root password >
451 | < Add a user >
452 | < Configure network interfaces >
453 | < Configure hostname and domain >
454 | < Set console font >
455 | < Set screen map >
456 | < Remove software packages >
457 | < Return to Welcome Menu >
458 ---
459
46037. Highlight < Select timezone > and press enter.
461
462(The only purpose of this line is to reduce the indentation of the following bullet points.)
463
464* Highlight < Set keyboard map > and press enter.
465* Highlight < Set root password > and press enter.
466* changeme
467* Highlight < Add a user > and press enter.
468* Password: changeme
469* Highlight < Configure network interfaces > and press enter.
470* Highlight < Configure hostname and domain > and press enter.
471* Highlight < Return to Welcome Menu > and press enter.
472* Highlight < Reboot this Computer > and press enter.
473* Highlight < Reboot > and press enter.
474* Remove installation media.
475* The operating system has halted.
476* Please press any key to reboot.
477* Log in as root.
478* Change password.
479* ee /etc/hosts
480* # Replace hostname and domain with the ones that you chose during configuration.
481* ::1 localhost hostname.domain
482* 127.0.0.1 localhost hostname.domain
483* Ctrl-[
484* a) leave editor
485* a) save changes
486* exit
487* Log in as user.
488* Change password.
e59d72e5 489* 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 490
5e91eec6 491## Tidbits
c73a5f26 492* **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.
493* **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 494* **[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 495* **[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.
496* **[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.
497* **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'.
498* **pkgin** is roughly equivalent to **apt-get**. They are both fairly straightforward command line package management utilities.
248bec77 499
5e91eec6 500## Reminders
c73a5f26 501* 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 502* 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 503
5e91eec6 504## Issues
b5491331 505* 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 506* The installer should offer the Xfce desktop environment as a supported option. Observed in DragonFly 3.0.2. See workaround below.
74c82ddf 507* The installer should set the keyboard layout before any typing is required. Observed in DragonFly 3.0.2.
c1758fdf 508* The installer should set the keyboard layout for the GUI. Observed in DragonFly 3.0.2. See workaround below.
dabfe801 509* The installer should set the keyboard layout for the encryption password prompt. Observed in DragonFly 3.0.2.
c1758fdf 510* 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 511* 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.
512* 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.
513* 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 514* 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 515* 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 516* 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 517* 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 518* 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 519* ->Excepting the bullet point, this syntax should center text in this wiki.<- Observed on 8/25/2012.
12e7194b 520* The following errors should not occur when quitting from the GUI.
521
522 waiting for X server to shut down xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0.0"
523 xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server "0.0"
524 failed to unset mtrr: Device not configured
525
526
527 xauth: (argv):1: bad display name "myhostname.mysubdomain.mytld:0" in "remove" command
528
529 Observed in DragonFly BSD 3.0.2 64-bit on VirtualBox 4.1.20 in Debian Squeeze.
a7b44ded 530
5e91eec6 531## Workarounds
c1758fdf 532**Enable the Caps Lock Key within the GUI**
533
534Edit the file /etc/X11/xorg.conf.
535
536 ee /etc/X11/xorg.conf
537
538Delete 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.
539
540 Section "InputDevice"
541 Identifier "Keyboard0"
542 Driver "kbd"
543 #Option "XkbOptions" "ctrl:nocaps"
544 EndSection
545
c73a5f26 546Observed in DragonFly BSD 3.0.2.
547
c1758fdf 548**Install Non-GUI on 3TB+ Hard Drive**
549
550*WARNING:* This workaround includes instructions which will delete all data from a hard drive.
551
552Delete 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).
553
554Install from a [snapshot version of DragonFly](http://avalon.dragonflybsd.org/snapshots/). Be aware that snapshot versions are less thoroughly tested than stable releases.
555
556Tested in snapshot on 8/14/2012.
557
f378b134 558**Install Xfce 4.6**
559
560*WARNING:* This workaround is not yet complete. Contributions are welcome.
561
2085015f 562The following testing is being done with a root account and no user account. Additional testing with a regular user account will be done later.
563
564*DragonFly BSD 3.1-DEVELOPMENT Non-GUI Instructions*
565
5cde5737 566Summary
567
568* Install XOrg if it's not already installed.
569* Ensure that mouse works.
570* Get the xfce4 meta-package make file.
571* Install binary files listed in xfce4 meta-package make file.
572
573These 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.
574
6216ff22 575Get 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 576
577 cd /usr/
578 make pkgsrc-create
579 make pkgsrc-update
6216ff22 580 cd /usr/pkgsrc/meta-pkgs/xfce4
581 pkgin update
5cde5737 582 pkgin in `cat Makefile | grep -E "xfce4.*mk" | sed -e 's/.include.*\/xf/xf/g' -e 's/\/.*/ /g' | tr -d "\n"`
6216ff22 583 pkg_radd modular-xorg
584 ls /dev/
585
586Log into another console window by pressing Ctrl-Alt-F2 or in VirtualBox, Alt-F2.
587
588 man moused
589
590Scroll down until you find where it mentions mouse dev names.
591
592 ee /etc/X11/xorg.conf
593
594Comment out the /dev/sysmouse line by putting a # in front of it. Add the following line.
595
596 Option "Device" "/dev/psm0"
597
598Except replace psm0 with whichever mouse you've got listed in /dev. Then save the file.
599
600 startxfce4
2085015f 601
602*DragonFly BSD 3.0.2 GUI Instructions*
603
604I got the message Error Code 1 while creating and updating my pkgsrc tree. I haven't yet looked into it further.
605
606Get 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).
607
608 cd /usr/
609 make pkgsrc-create
610 make pkgsrc-update
611
612Get 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.
613
614 cd /usr/
615 make pkgsrc-update
616
617*Notes*
f378b134 618
9ddcfc4c 619* [XFCE based LiveDVD/IMG](http://leaf.dragonflybsd.org/mailarchive/users/2012-07/msg00123.html)
620* [Installing a Desktop Environment: Xfce4](http://www.dragonflybsd.org/docs/how_to_get_to_the_desktop/#index11h3)
621* [Desktop Environments: Xfce](http://www.dragonflybsd.org/docs/newhandbook/X/#index9h3)
622* [Longest DragonFly BSD Review: Running Xfce in DragonFlyBSD 3.0.1](http://insidesocal.com/click/2012/04/review-dragonflybsd-301----the-5.html)
f378b134 623* [Instructions via Google Translate](http://www.google.com/translate_c?langpair=en&u=http://dragonflybsd.fr/index.php?page=Installation+de+Xfce4)
624* [Installing pkgsrc](http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index2h2)
625
2085015f 626 pkgin search xfce
627
f378b134 628**Install Xfce 4.8**
629
630*WARNING:* This workaround is not yet complete. Contributions are welcome.
631
632* [Choosing between portability and innovation](http://lwn.net/Articles/430598/)
633* [Xfce 4.8 on BSD flavors](http://gezeiten.org/post/2011/01/Xfce-4.8-on-BSD-flavors)
634* [Xfce 4.8 tour](http://xfce.org/about/tour48)
635
9ddcfc4c 636**Install Xfce 4.10**
637
638*WARNING:* This workaround is not yet complete. Contributions are welcome.
639
640* [Xfce 4.10 released](http://www.xfce.org/about/news/?post=1335571200)
641* [Xfce 4.10 tour](http://xfce.org/about/tour)
642
a7b44ded 643**Set the GUI Keyboard Layout**
644
645Edit the file /etc/X11/xorg.conf.
646
647 ee /etc/X11/xorg.conf
648
649Set the XkbVariant option to your keyboard variant.
650
651 Section "InputDevice"
652 Identifier "Keyboard0"
653 Driver "kbd"
654 Option "XkbVariant" "dvorak"
655 EndSection
656
657Valid 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.
658
659 grep --color -n -r dvorak /usr/pkg/share/X11/xkb/symbols
660
661If 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.
662
74c82ddf 663Tested in DragonFly 3.0.2.