+----------------------------------------------------------------------
| First steps with CDE on pkgsrc
+----------------------------------------------------------------------

To add the required authenticaion policies to your PAM configuration,
import the policy files provided with the package:

	$ for i in cde dtlogin dtsession; do
	> cp /usr/pkg/share/examples/pam.d/$i /etc/pam.d
	> done

-----------------------------------------------------------------------

To provide support for CDE font aliases, the required font paths must
appended to the standard X server configuration.
  
This can be done by creating a `99-fonts.conf' file with the following
content: 

Section "Files"
    FontPath    "/usr/pkg/share/fonts/100dpi/"
    FontPath    "/usr/pkg/share/fonts/75dpi/"
    FontPath    "/usr/pkg/dt/share/cde/fontaliases"
EndSection

Place the file inside either: 

  - /etc/X11/xorg.conf.d            # native X11
  - /usr/pkg/etc/X11/xorg.conf.d    # modular X11

NB: Create the xorg.conf.d target directory if it doesn't exist already.

-----------------------------------------------------------------------

For ttsession  to work, your hostname needs to be aliased to the
localhost and the loopback address inside /etc/hosts.

NOTE: in the example below, replace "hostname" with your actual
host's name, as returned by hostname(1). Replace the wildcard in 
"localhost.*" with your domain name if you have any, or leave it blank. 

::1		hostname	localhost	localhost.*
127.0.0.1	hostname	localhost	localhost.*

-----------------------------------------------------------------------

To better access CDE applications:

 * Add dt/bin to your shell PATH:
	$ export PATH=$PATH:${PREFIX}/dt/bin

 * Add ${PREFIX}/dt/man to /etc/man.conf and run `makemandb'.

-----------------------------------------------------------------------

To start the Common Desktop Environment,

	$ env LANG=C startx ${PREFIX}/dt/bin/Xsession

Or use the provided `/usr/pkg/bin/startcde' script.

Your user should be part of the 'wheel' group to allow CDE
to create the required directories upon startup.
-----------------------------------------------------------------------

To start the Dt Login Manager,

	$ cp /usr/pkg/share/examples/rc.d/dtlogin /etc/rc.d
	$ service dtlogin onestart

To enable the dtlogin service at startup,

	$ echo dtlogin=YES >> /etc/rc.conf

------------------------------------------------------------------------

NOTE:

  For better scrolling, consider adding this to your ~/.Xresources file

	*saveLines:		32000
	*scrollBar:		True 
