delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/06/13/12:45:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F09B5389852E
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dod.no
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=goc-cygwin AT m DOT gmane-mx DOT org
X-Injected-Via-Gmane: http://gmane.org/
Mail-Followup-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Steinar Bang <sb AT dod DOT no>
Subject: Re: cygwin x11 doesn't start after windows 10 upgrade
Date: Sat, 13 Jun 2020 18:44:36 +0200
Organization: Probably a good idea
Message-ID: <upzc7dwadiff.fsf@dod.no>
References: <upzcv9jx3891 DOT fsf AT dod DOT no>
<00a576fe-1539-f890-6cea-8ec00875623a AT gmail DOT com>
<upzcblln2tzg DOT fsf AT dod DOT no>
<96986498-2013-6ae8-929d-64699ec5a4ef AT gmail DOT com>
<upzcpna318gd DOT fsf AT dod DOT no>
<e6416099-8249-9240-0293-d9b59b7e7f04 AT gmail DOT com>
<upzc8sgr6k64 DOT fsf AT dod DOT no>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt)
Cancel-Lock: sha1:EqQa+i/Prh6hJuy9wWN5CQNY4AQ=
Mail-Copies-To: never
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

>>>>> Steinar Bang <sb AT dod DOT no>:
>>>>> Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>:


>> can you reset the default

>> db_home:  /home/%U

>> close all processes and try X again ?
>> This should use /home/sbang as your new home and
>> we can see if it is a permission problem that is causing
>> issue to Xwin

> I changed the /etc/nsswitch.conf file, and rebooted to ensure all
> processes had been killed.  But cygwin still seemed to use the
> windows profile directory.  I still have HOME set to the profile
> directory.  I have all of my unix-y program setup files there (used by
> GNU emacs, git bash, and mingw utilities)

> But still no luck in launching XWin, either with xlaunch or from the
> command line.

> I will unset HOME and reboot and try again.

I renamed environment HOME to HOME_DISABLED (in advanced system
settings) and rebooted.

cmd.exe showed that HOME was gone.

However, in cygwin bash HOME was still set to the profile directory and
that was still used as the HOME dir.

startxwin still failed to start X.

Output from the cygwin console for this attempt (I have rebooted with
HOME in place so that I can send email using emacs and Gnus):

sbang AT ITEM-S63383:~$ pwd
/cygdrive/d/Profiles/sbang
sbang AT ITEM-S63383:~$ env | grep HOME
ATLAS_HOME=C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_241
HOME=/cygdrive/d/Profiles/sbang
HOME_DISABLED=d:\Profiles\sbang
HOMEDRIVE=d:
HOMEPATH=\Profiles\sbang
sbang AT ITEM-S63383:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
#    This file is read once by the first process in a Cygwin process tree.
#    To pick up changes, restart all Cygwin processes.  For a description
#    see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
#
# Defaults:
# passwd:   files db
# group:    files db
# db_enum:  cache builtin
db_home:  /home/%U
# db_home:  windows
# db_shell: /bin/bash
# db_gecos: <empty>
sbang AT ITEM-S63383:~$ startwinx
-bash: startwinx: command not found
sbang AT ITEM-S63383:~$ startxwin

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.5.0
OS: CYGWIN_NT-10.0-18363 ITEM-S63383 3.1.5-340.x86_64 2020-06-01 08:59 UTC x86_64
OS: Windows 10  [Windows NT 10.0 build 18363] (Win64)
Package: version 1.20.5-3 built 2019-09-06

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth
 /cygdrive/d/Profiles/sbang/.serverauth.985

(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /cygdrive/d/Profiles/sbang/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - RemoteSession: no
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000005
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
sbang AT ITEM-S63383:~$

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019