From owner-freebsd-doc@freebsd.org Fri Oct 20 13:27:36 2017 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AC47E346EC for ; Fri, 20 Oct 2017 13:27:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ECDD476105 for ; Fri, 20 Oct 2017 13:27:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9KDRZ7v087409 for ; Fri, 20 Oct 2017 13:27:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 223128] Handbook 5.6. The X Display Manager Date: Fri, 20 Oct 2017 13:27:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Documentation X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sid@bsdmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 13:27:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223128 Bug ID: 223128 Summary: Handbook 5.6. The X Display Manager Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Documentation Assignee: freebsd-doc@FreeBSD.org Reporter: sid@bsdmail.com Here is what I suggest for Chapter 5.6 of the Handbook. It is not in a diff yet, and it lacks Docbook markup. I would like to send Chapter 5.7 "Desktop Environments" to its own article, and have the Handbook version of it simplified for conciseness. Suggestions for fixing configuration directorie= s is also here. -5.6. The X Display Manager +5.6. Desktop Session Management -Contributed by Seth Kingsley. +Originally Contributed to by Seth Kingsley. -Xorg provides an X Display Manager, XDM, which can be used for login sessi= on management. +Xorg provides an X Display Manager, XDM, and Xinit which can be used for l= ogin session management. -XDM provides a graphical interface for choosing which display server to connect to and for entering authorization information such as a login and password combination. +XDM provides a graphical interface, and Xinit provides a console interface= for choosing which display server to connect to and for entering authorization information such as a login and password combination. -This section demonstrates how to configure the X Display Manager on FreeBS= D. +This section demonstrates how to configure login session management on FreeBSD. -5.6.1. Configuring XDM +5.6.1. Configuration Files +5.6.1.1. XDM Configuration Files -The XDM configuration directory is located in /usr/local/lib/X11/xdm. +The XDM configuration directory is located in /usr/local/etc/X11/xdm. -Default session script for logins which is run by XDM after a user has log= ged in. Normally each user will have a customized session script in ~/.xsession that overrides this script +Default session script for logins which is run by XDM after a user has log= ged in. This file points to ~/.xsession and other home directory files for customized settings +5.6.1.2. Xinit Configuration Files x11/xinit is used to log into X from the console. Its script file is /usr/local/etc/X11/xinit, and this can be customized through the directory /usr/local/etc/x11/xinit.d/ or ~/.xinitrc. 5.6.2. Configuring Remote Access -To configure XDM to listen for any remote connection, comment out the DisplayManager.requestPort line in /usr/local/lib/X11/xdm/xdm-config by put= ting a ! in front of it: +To configure XDM to listen for any remote connection, comment out the DisplayManager.requestPort line in /usr/local/etc/X11/xdm/xdm-config by put= ting a ! in front of it: -To restrict remote access, look at the example entries in /usr/local/lib/X11/xdm/Xaccess and refer to xdm(1) for further information. +To restrict remote access, look at the example entries in /usr/local/etc/X11/xdm/Xaccess and refer to xdm(1) for further information. +5.6.3. Xsession and Xinit In your home directory, similar files .xsession,= or .xinitrc require a minimum of: #!/bin/sh/usr/local/bin/[windowman= ager] .xinitrc's permissions, at minimum, must be set = to read, and .xsession's permissions must be set to read = and write. chmod ug+rx ~/.xsession If you choose to softlink .xinitrc to .xsession, then both files must be set to execute and = read permissions. If your window manager of choice is capable of displaying custom wallpapers, and desktop programs, use it instead of Xsession or Xinit. --=20 You are receiving this mail because: You are the assignee for the bug.=