From owner-freebsd-questions@freebsd.org Fri May 1 04:15:03 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 081582D1B8C for ; Fri, 1 May 2020 04:15:03 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn20809.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eae::809]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49CzRm4KZcz4SrD for ; Fri, 1 May 2020 04:15:00 +0000 (UTC) (envelope-from brandon.helsley@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M4bobFzAzQQRMEo3dRDQxqLx+0+l+sYIr1UFQtC2Dp9msNNE74tkH5CNGU76ci1n7TNgGP7cgjNJ7h0jUhYeO6skmX4829xVoRklnoTQVwlW1lmU3UFwaysMhChaozXPeSnsvbW3UVnmsd+rM11MZ1ckttJVh6osnKlGEuebA8YN8TP4sDdaBWfgJfB8nWcLsXYs0I7ooEb5RYXy/CDaIYqhabeJ95ltvnkY2t+QGTrWn4ndJNp29T/Y/E2Se1Mn/9ZFw2d0vO6uUgWvJJneH9cHx0A2Pn3tjzJcqFiZ9wCId0H2S4wdZFR+7eX9Q64NpRdTkdWh08uo14GqN7MAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tq1H7EQaASzjHl6YEnSStj9hi/eg2e7Fe3sXgibbCGo=; b=P16RG8owpbefnCWVRV6wMPly1CgSvhnSHDgDU7cvvf7EI7c/UgOgIK5n5Ln2E8nuNhRPSO+ZzdGoiCOqEJJ3U7yWYTInFk4wEW8Jo3Q6aKS7IkbD8opCRz2LFGaT0keAJMhROQ6x16viFfxmdUn8xn3lPk4xLKdmBZcbL8FCbyH51rfSmZPwHG8FZvQxNdtP9QRX5VaYHsGNtVC3i75Jj6SoUy8A8sDMOp8GwC9WV+dcPQC3xfqLKRYSfO2SnFxeX7g967jCP6my+eH3Verp1YqabxPrpH0BsvA8jGn8sCJfBSIiMwVrTi+FNfvumewSRI65SIAO0FxW2M+lN3s4iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tq1H7EQaASzjHl6YEnSStj9hi/eg2e7Fe3sXgibbCGo=; b=oqKngPLr/skfsF+xzbc0ocrsf1rPF02j5POCk2qB2Em2WqDWk7wwlgVjc9RIaLeJVeVhfmBIxyINIO48HxvWMQ2kLNh/ZXcNKco5mfeIK6bvFJCxjGQk7ti0mW90sjvQVF0G03/zLoxkCS9AsM4KHQER7QZ+w73+AmWQ5/01WlQW9KVV3QBo4q5B+lCjj4uDHoHsl8aEKo3vm0Kk5QG5awHUleV8KGPywt8eTz5NO7hEm0haijY1H8/UlNmwj8KFPX8dtE15FtO7Z6JCBhI/SPpT1BM3WWVm6NY/Wz5mLdwz7zWEegPFMJepoqN/6GIaiS7wMEG4zimPNtl2qn3Y3A== Received: from DM6NAM11FT067.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::4b) by DM6NAM11HT064.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::306) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.15; Fri, 1 May 2020 04:14:59 +0000 Received: from CY4PR19MB1655.namprd19.prod.outlook.com (2a01:111:e400:fc4d::41) by DM6NAM11FT067.mail.protection.outlook.com (2a01:111:e400:fc4d::76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19 via Frontend Transport; Fri, 1 May 2020 04:14:58 +0000 Received: from CY4PR19MB1655.namprd19.prod.outlook.com ([fe80::387e:fe14:f955:101d]) by CY4PR19MB1655.namprd19.prod.outlook.com ([fe80::387e:fe14:f955:101d%12]) with mapi id 15.20.2958.020; Fri, 1 May 2020 04:14:58 +0000 From: Brandon helsley To: Polytropon CC: "freebsd-questions@freebsd.org" Subject: Re: Xdm Thread-Topic: Xdm Thread-Index: AQHWHwlgFeA7plbKtUWAhpIrk5rrGqiSjQgAgAAGFNaAAAi5gIAABCV+ Date: Fri, 1 May 2020 04:14:58 +0000 Message-ID: References: <20200501050648.f5a0ab6a.freebsd@edvax.de> , <20200501055947.895016a6.freebsd@edvax.de> In-Reply-To: <20200501055947.895016a6.freebsd@edvax.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:28BE4CB9363AE70A4EB76EBFAE89ACC95BBBCC338536972F1C4B6D4268C231DE; UpperCasedChecksum:CAEF0D14310371559A77ED733D6FA35C27968E924819153090FE9C5EF9B45218; SizeAsReceived:7064; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [dNv8e5bpJV52Pb+d2cS8QkYHBkbbtIbK] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: c343f25e-558b-46a6-b3f1-08d7ed8635e6 x-ms-traffictypediagnostic: DM6NAM11HT064: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZVnJnrVfRJaIfYM54qBTdDU5VS/kxOFHDoUyRVGllpf19Yf3BkksqVx2fLSmEM/dvaYXf5jJJN5vkC+VJEL/+okDGbSFO1DEtm1qqgTgnBZ1BqnvBp2CzHxUiauTYUJylwzP2bqXCzsgJwZdOqug4Lf5A+u2sHbuNvDzPQR2fNVnAfu5Tq8fB/lz/KEJE1KQ9Daufh9+6zVd9M97PldfzZml5cxVbGCFUHTxYEn3DCwOx717Z456RgI4U3eY+GfG x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR19MB1655.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: 7i+IfM6w5JX/1+7IybNGfLZsCYtHdl1LF9emsH+1ItUTSVcEDBLyC+LbJuWCoSrCdZ8GofwHt4snUEvm52KuFHjCctxqBwrlZsnrdmR7DLlGQzMHW1HRFnJz8JK2dwrMew0pyC4tj/2b/EKoi+St3A== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c343f25e-558b-46a6-b3f1-08d7ed8635e6 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2020 04:14:58.1407 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT064 X-Rspamd-Queue-Id: 49CzRm4KZcz4SrD X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=oqKngPLr; dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of brandon.helsley@hotmail.com designates 2a01:111:f400:7eae::809 as permitted sender) smtp.mailfrom=brandon.helsley@hotmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; FREEMAIL_FROM(0.00)[hotmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; IP_SCORE(0.00)[ipnet: 2a01:111:f000::/36(-4.15), asn: 8075(-3.21), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; ARC_ALLOW(-1.00)[i=1]; DWL_DNSWL_NONE(0.00)[hotmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 04:15:03 -0000 Has anybody else had any problems logging in with xdm? Sent from Outlook Mobile ________________________________ From: Polytropon Sent: Thursday, April 30, 2020 9:59:47 PM To: Brandon helsley Cc: freebsd-questions@freebsd.org Subject: Re: Xdm Re-including list, hope that's okay; use your "reply all" function or at least reply to the mailing list. :-) On Fri, 1 May 2020 03:29:23 +0000, Brandon helsley wrote: > I don't understand your instructions for xsession entries. > My apologies for wasting you typing. Please continue to help > I'm receptive. THose are files located in your home directory, usually /home/, abbreviated with the ~ synbol. Those files start with a . ("hidden files") and are read during the X startup process. When you're using "startx" to start your X session, .xinitrc will be read. When you use xdm, after successful login it will use .xsession and ignore .xinitrc. .xinitrc ---> startx .xsession ---> xdm The idea to be more flexible, and have your X configuration in only one file, is to use a "cascading approach": If xdm is used, it reads .xsession, which "continues" as .xinitrc; all done. If you use "startx", only .xinitrc will be used; same. The _content_ of .xinitrc depends on what desktop environment you have installed, or which window manager you wish to use. In my case (and therefore the example), it's WindowMaker, plus a few custom additions. For testing, you should be fine using a simple "exec xterm" file. So start by creating the following files: First, ~/.xsession: #!/bin/csh source ~/.cshrc exec ~/.xinitrc I assume you're using FreeBSD's default login shell for dialog users, which is the C shell; if you're using bash or zsh or ksh, you need to change those entries accordingly. Then, ~/.xinitrc: exec xterm Deviation: If you do _not_ need this flexibility, ignore .xinitrc entirely, and just for testing, have exec xterm in your ~/.xsession file. But as you said (later on) you already have a .xinitrc file, let's go with the "cascading approach". This should be enough for first testing, i. e., to see if the login process works as intended. If it's successful, you will see an X terminal, nothing else, no window decorations, but that is not needed for testing. Enter "exit" or press Ctrl+d to exit the terminal - now the xdm login screen should appear again. Do _not_ test this with "root", as I mentioned, only with your user name. Now, if you see that xterm, you can manually enter "fluxbox" for further testing. Note that Fluxbox's logout function will not work as desired - it will quit Fluxbox, but you need to close the X terminal to end the X session (because that is the "controlling process" that keeps X alive). On Fri, 1 May 2020 03:28:15 +0000, Brandon helsley wrote: > I meant ttyv8 like you said. Correct. > I have xinitrc with fluxbox exec in it. Excellent! This should be fully okay (probably "exec fluxbox", maybe something before that). But as I said, xdm will not care for .xinitrc. THat is the reason for the "cascading approach". I'm using xdm here, but I have my configuration in .xinitrc. THat's why .xsession does the following: #!/bin/csh The first line tells the interpreter and the reader that this file is to be processed using the C shell. source ~/.cshrc The second line will source my shell configuration from the C shell's initialisation file for interactive shells. exec ~/.xinitrc The third line will continue execution under the name of ~/.xinitrc. >From the viewpoint of xdm, the execution control is now as follows .xsession -> .xinitrc -> window manager So if the window manager (or desktop environment) exits, the X session will be closed - exactly as desired. > What do I do with xdm to make it work? Well, xdm will read .xsession if it is present. I'm not sure if it's still required to make it executable (could be some "cargo cult"), but in worst case, try: % chmod +x ~/.xsession The permissions should then be -rwxr-xr-x. Verify with "ls -l". > I'm confused about your instructions, do I put in a line > for xdm anywhere Not needed. If you have the /etc/ttys entry, and you see the xdm login screen, everything is fine. You just have to make sure that ~/.xsession "contains the truth", i. e. possible path names are correct, and Fluxbox is installed. Also see the file ~/.xsession-errors for a possible message. On Fri, 1 May 2020 03:29:23 +0000, Brandon helsley wrote: > I don't understand your instructions for xsession entries. > My apologies for wasting you typing. Please continue to help > I'm receptive This is only needed if you wanted to be able to use both xdm and "startx" (can be useful for experimental and learning systems). If you know you will only be using xdm, it's not needed. Ignore .xinitrc, and have .xsession just contain the programs you need for your X session, typically ending in "exec " for your window manager or desktop environment. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...