Xinit and XDM login managers are covered. KDM, GDM, WDM and SLiM login managers are not described here.
Install
The following are sufficient to install the programs for a running Desktop system: x11/xorg, x11/xdm and your chosen window manager. If you're not using a graphical desktop login manager, xdm can be omitted.
Desktop login
Configuration files for Xinit and XDM are under the /usr/local/etc/X11/ and ~/ directories, respective to Xinit and XDM. The minimal configuration for .xsession or .xinit in your home directory is:
Console
Set .xinitrc in each home folder, to load custom settings from that user's command line. The default /usr/local/etc/xinit/xinitrc points to several other files in your home directory.
Make sure the owner file permissions of .xinitrc are at minimum set to read.
Finally, type
XDM
To configure x11/xdm to start up on boot, edit /etc/ttys and change the option on line ttyv8 from off to on:
The secure option allows logging in to the root console without a password from single user mode.
Set up .xsession with owner and group permissions to read and execute. If you soft link .xsession and .xinitrc together, both permissions must be 550.
Under normal circumstances, /usr/local/etc/X11/xdm/Xsession should be left alone, because this file by default points to ~/.xsession and ~/.xsession-errors.
Customization
Customization files for XDM are located in /usr/local/etc/X11/xdm/.
The background image or color can be changed with a command argument in Xsetup_0.
Example of Xsetup_0:
The reference to x11/xconsole, used for displaying terminal output, such as attached devices, can optionally be commented out.
It is important to add an & after adding new configuration commands, or the login screen will freeze up with certain commands.
To change the box logo, edit Xresources, comment out or reference another .xpm file in the lines xlogin*logoFileName.
Desktop programs
Read the documentation of your chosen window manager's configuration files to load desktop programs, if it is available. If your window manager doesn't have the ability to load desktop programs, use .xsession or .xinitrc, to start them. Background programs, such as x11/xrandr, should be loaded with .xsession or .xinitrc.
Example of .xsession or .xinitrc:
Programs are loaded with &, and the window manager is loaded last with exec.
BSD Desktops
Thread BSD Window Managers; List.63710
Notes
Most of this is common information, but the updates are put into one spot.
Also at: http://freebsdwiki.net
Install
The following are sufficient to install the programs for a running Desktop system: x11/xorg, x11/xdm and your chosen window manager. If you're not using a graphical desktop login manager, xdm can be omitted.
Desktop login
Configuration files for Xinit and XDM are under the /usr/local/etc/X11/ and ~/ directories, respective to Xinit and XDM. The minimal configuration for .xsession or .xinit in your home directory is:
Code:
#!/bin/sh
exec /usr/local/bin/<windowmanager>
Set .xinitrc in each home folder, to load custom settings from that user's command line. The default /usr/local/etc/xinit/xinitrc points to several other files in your home directory.
Make sure the owner file permissions of .xinitrc are at minimum set to read.
chmod 440 .xinitrc
Finally, type
startx
.XDM
To configure x11/xdm to start up on boot, edit /etc/ttys and change the option on line ttyv8 from off to on:
Code:
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm '''on''' secure
Set up .xsession with owner and group permissions to read and execute. If you soft link .xsession and .xinitrc together, both permissions must be 550.
Code:
ln -s .xsession .xinitrc
chmod 550 .xsession
Customization
Customization files for XDM are located in /usr/local/etc/X11/xdm/.
The background image or color can be changed with a command argument in Xsetup_0.
xsetroot
can set the background to a color or bitmap image. To choose a common image type, use a program such as x11/bgs or graphics/feh from within Xsetup_0.Example of Xsetup_0:
Code:
#!/bin/sh
bgs /home/mydirectory/mypicture.png &
#xconsole &
It is important to add an & after adding new configuration commands, or the login screen will freeze up with certain commands.
To change the box logo, edit Xresources, comment out or reference another .xpm file in the lines xlogin*logoFileName.
Desktop programs
Read the documentation of your chosen window manager's configuration files to load desktop programs, if it is available. If your window manager doesn't have the ability to load desktop programs, use .xsession or .xinitrc, to start them. Background programs, such as x11/xrandr, should be loaded with .xsession or .xinitrc.
Example of .xsession or .xinitrc:
Code:
#!/bin/sh
xterm &
xclock &
exec jwm
BSD Desktops
Thread BSD Window Managers; List.63710
Notes
Most of this is common information, but the updates are put into one spot.
Also at: http://freebsdwiki.net