From owner-freebsd-doc@freebsd.org Thu Jun 29 23:01:31 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 0F69EDA7686 for ; Thu, 29 Jun 2017 23:01:31 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mail.gmx.com", Issuer "thawte SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E8E877041 for ; Thu, 29 Jun 2017 23:01:30 +0000 (UTC) (envelope-from sid@bsdmail.com) Received: from [108.70.50.7] by 3capp-mailcom-lxa14.server.lan (via HTTP); Fri, 30 Jun 2017 00:56:18 +0200 MIME-Version: 1.0 Message-ID: From: Sid To: freebsd-doc@freebsd.org Subject: Suggestion for editing FreeBSD Handbook; X11, Chapter 5 Content-Type: text/plain; charset=UTF-8 Date: Fri, 30 Jun 2017 00:56:18 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:3DMEd1k0WHvjrkDRz0rIycAOV1PCqnVbapSuf5gl5lC C1eHd+rat8STf1537HZP02cvCbSjkb/Ja8tkEHVmSFWYgxMN3O rkVl+AopjJ86KxqDpYHkiiO+X3ue5jjF/lFOHx0Bf5cDl8U9HL vTCyNomZ04hawWn8MdGDfaJxRxUUeSeUP8PDUSgtPY8jRtAAfi fpfZg74EZQAxPwwwa90Pt0lDNJH+UWLYHeqy0M1dpVB42USrK+ zW3etShzDrs3elbqA1OzU983BRb55kbMsH9gFqryn6fzXIaz+R zVs3hKdjTLriRgibFqJgAwu8WmT X-UI-Out-Filterresults: notjunk:1;V01:K0:ynKd9LsxBKU=:F+fo4yJlLSJ8tnDsquUuB3 I1ZlWaYJ4igp1uKGFXQBuYnsHyswJKPA5grL0h7+AK84eKf4KXOCT9CdGLJ7yYiJPtfItKNrK HqOtzr47cJNvY63bTn61B5yxpkKC5paagfQC3FcsicW+3NF4a7tzhG4JkIVT1Phvk68IY/dyd tdWo1hkvxALa4bIBGuZhYxfB0dJaj+Ws4028fHoR5RQ1UiNxPAt4qkOlEbkijMM7YjeK8uHqq JB3Jo0fafarKrssWXbCrAmPzHkz2i2L781iAvtzik0tf9Ivwq8VL/2K5rt9ovK+VvmOw45mle xSdwK4MbpZ0loCP05+GhOBEVwwyRIw28Gn9oM4bPEToEUnLHrZtcl30yY6OrhToKpWSFKDU4P lX3LPkeRCB1N4TUgN7KfzbZia9JypddyN5RGsRX0UbAlG0yBhEvQI+z7QZelVjvKR1N1DpW6Y eFh7HoR0Rp7iqAv6xcb8yUs0kwP5e5Vx66iVeQgusw0CH1d65qX9E+bLvOaaDAwtRcvkvBLTD UnPIlKgCuVa7nTSLyKJw+s= 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: Thu, 29 Jun 2017 23:01:31 -0000 Most of this is formatted, but I'm having trouble with spacing and tabs. Then my vim program stopped working correctly with tabs as two spaces as well, from the suggested ~/.vimrc configuration. This may also need small edits to the table of contents. This is better explained, and cleaned up. If someone can clean this up, and submit this as a bug for documentation, that would be appreciated. Thank you. 1236c1236 < The X Display Manager --- > X Display Manager and Xinit 1244c1244 < Contributed by --- > Originally contributed by 1252c1252 < login session management. XDM --- > login session management, and xinit, used for logging in from the console. XDM 1258c1258 < Manager on &os;. Some desktop environments provide their own --- > Manager and Xinit on &os;. Some desktop environments provide their own 1402a1403,1417 > > > Xsession, .xsession and .xinitrc > > In your home directory, .xsession or .xinitrc require a minimum of: > > #!/bin/shexec /usr/local/bin/windowmanager > .xsession is required to use XDM, and its owner and group permissions must be set to read and execute. To log in from a console, .xinitrc, at minimum, must be set to read. If you choose to softlink .xinitrc to .xsession, then both files must be set to execute and read. > > chmod 550 .xsession > > ~/.xsession does not replace /usr/local/lib/X11/xdm/Xsession, because Xsession contains scripts that refer to .xsession in your home directory, and it contains scripts to log errors. > > If your window manager of choice is capable, use it to start background wallpapers and desktop programs, instead of using .xsession or .xinitrc. > 1415c1430 < Contributed by --- > Originally contributed by 1496,1513c1511,1514 < A second method for starting < GNOME is to type < startx from the command-line after < configuring ~/.xinitrc. If this file < already exists, replace the line that starts the current < window manager with one that starts < /usr/local/bin/gnome-session. If this < file does not exist, create it with this command: < < &prompt.user; echo "exec /usr/local/bin/gnome-session" > ~/.xinitrc < < A third method is to use XDM as < the display manager. In this case, create an executable < ~/.xsession: < < &prompt.user; echo "#!/bin/sh" > ~/.xsession < &prompt.user; echo "exec /usr/local/bin/gnome-session" >> ~/.xsession < &prompt.user; chmod +x ~/.xsession --- > Another method for starting > GNOME is to use > ~/.xinitrc or .xsession as described in with the following: > exec /usr/local/bin/gnome-session 1577,1581c1578,1580 < A second method for launching < KDE is to type < startx from the command line. For this to < work, the following line is needed in < ~/.xinitrc: --- > Another method for launching > KDE is to use > ~/.xinitrc or ~/.xsession as described in with the following: 1585,1593d1583 < A third method for starting KDE < is through XDM. To do so, create < an executable ~/.xsession as < follows: < < &prompt.user; echo "#!/bin/sh" > ~/.xsession < &prompt.user; echo "exec /usr/local/bin/startkde" >> ~/.xsession < &prompt.user; chmod +x ~/.xsession < 1635c1625 < create an executable ~/.xsession: --- > edit ~/.xsession or ~/.xinitrc according to to: 1637,1639c1627 < &prompt.user; echo "#!/bin/sh" > ~/.xsession < &prompt.user; echo "exec /usr/local/bin/startxfce4 --with-ck-launch" >> ~/.xsession < &prompt.user; chmod +x ~/.xsession --- > exec /usr/local/bin/startxfce4 --with-ck-launch