From owner-freebsd-doc@freebsd.org Tue Oct 24 20:10:34 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 D706BE5754D for ; Tue, 24 Oct 2017 20:10:34 +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 C53A86EE94 for ; Tue, 24 Oct 2017 20:10:34 +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 v9OKAYfm007680 for ; Tue, 24 Oct 2017 20:10:34 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: suggested additions Date: Tue, 24 Oct 2017 20:10:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Documentation X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People 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: Message-ID: In-Reply-To: References: 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: Tue, 24 Oct 2017 20:10:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223128 --- Comment #1 from sid@bsdmail.com --- Made improvements. Added rough draft of 5.7 Desktop Environments, and keep suggestion of moving existing version to its own article. Moved note about desktop programs and wallpapers to 5.7. I plan to finish 5.7 and write this= in proper markup. If enough time passes, after posting that, I'll attempt to upload it. -5.6. The X Display Manager +5.6. Desktop Session Management -Contributed by Seth Kingsley. +Originally Contributed 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 login 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. -Some desktop environments provide their own graphical login manager. Refer= to Section 5.7.1, =E2=80=9CGNOME=E2=80=9D for instructions on how to configure= the GNOME Display Manager and Section 5.7.2, =E2=80=9CKDE=E2=80=9D for instructions on how to= configure the KDE Display Manager. +Gnome and KDE provide their own graphical login manager. -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 lo= gged 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: #!/bin/shexec /usr/local/bin/[windowmanager] ~/.xinitrc's permissions, at minimum, must be se= t to read, and ~/.xsession's permissions must be set to read and write. chmod ug+rx ~/.xsession Filenames of windowmanagers can be found in /usr/local/bin/. exec /usr/local/bin/jwm If you choose to softlink .xinitrc to .xsession, then both files must be set to execute and = read permissions. 5.7. Desktop Environments This section describes how to configure desktop environments on a FreeBSD system. A desktop environment can range from a simple window manager to a complete suite of desktop applications. Over a hundred desktop environments= are available in the x11-wm category of the Ports Collection. 5.7.1 Services Though /etc/rc.conf D-Bus must be enabled with: dbus_enable=3D"YES" A few window managers require proc and hal to be enabled: /etc/rc.conf hald_enable=3D"YES" /etc/fstab proc /proc procfs rw 0 0 5.7.2 Desktop programs This section is about starting desktop programs from a window manager or desktop. If your window manager of choice is capable of displaying custom wallpapers, and starting desktop programs, use it for this purpose, instead of Xsession= or Xinit. To use ~/.xsession or ~/.xinit, l= ist the commands with "exec [command] &" before the line that starts the window manager. #!/bin/shexec /usr/local/bin/xclo= ck &exec /usr/local/bin/xcalc &exec /usr/local/bin/twm All exec commands end in an ampersand, except the last line which sta= rts the windowmanager. --=20 You are receiving this mail because: You are the assignee for the bug.=