delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; q=dns; s=default; b=NRmsyKT | |
qbDfM3Hwz6Q4q9af34fW3DxSjnWHUlodm1846oFcfHoDTCzUe31CZyf8t4k4iw5I | |
umV28/kCdKIxqrY4/GzG8Mt/V9TaB+/jC+yE3ymPCTx+pgjscMl1iSH1fb6NdsaZ | |
4dqLHo1LY/ELFXbks1YbWm6pJjnYp5Q89Thw= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:from:date | |
:message-id:subject:to:content-type; s=default; bh=lqL8ALoeqyVBD | |
fpDVGNf/fFRbIc=; b=gL7RXNVc7ia2z5SyfF96gSphFbQEcyjuBkEGV6vnB3ZsR | |
+JWN+F9ykxHHz5drG15PeZGDt7k/ill0Y8uMpHQbuFLLGLUsVqe5tVwbtVSddb3S | |
+8pbGpsBj0aXQi62CdSgVMXALkzyk3DbFR5PX2fn+0veQ31tGEt50DyLDuUygI= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=console, sk:filtere, filtered, corporate |
X-HELO: | mail-oi0-f47.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=p+lCeA+HwJc8WLeWfY1xWchZ8w60f3jLUD7ybSWnunY=; b=GDL7f7cAnzcBDdW4s8W2bopbrQdkKmLHwyKPTWIB+43gx0GQg4URAVIlirT9R/Ptlr K8r6sxk4lhL1hfd7zg5XPQJfBzY7r0RyLa+gKxia0APDq0gQpPhDUzJAj9F2clprLBPb Xij6GcGCdTLsGttkc/ze0AWir/dD53Dsi7lllVKUQ5vk0PgIAj5xN7ZlT0h1upZqEH0l 23CyFLVRQzpz4iKr9+ydEaQZk4ScjAZ0qwC/i2qcv5tFGyuzJnjwFxNZCLkTlvN4tJ/P DKIM+gxr9Eb3ni3rXP/pptjoGFDoUiZZkAmtMx2TtPPjKZKm1T19H2ZDC9SxU/noIpXR 0qrg== |
X-Gm-Message-State: | ABUngvedwUyl7+9bh2LIUTHJry40CLEhglBOPvqumTNcCQhXECLINXeSLS0EvgWyP9CwPCpgAH+r03pAW3bNqw== |
X-Received: | by 10.157.6.111 with SMTP id 102mr1572101otn.190.1477491207385; Wed, 26 Oct 2016 07:13:27 -0700 (PDT) |
MIME-Version: | 1.0 |
In-Reply-To: | <a432978c-d8f1-5dd8-4920-6dc2f6f25723@cs.umass.edu> |
References: | <DM5PR17MB12768795DBD00EEA33C3A48FFA150 AT DM5PR17MB1276 DOT namprd17 DOT prod DOT outlook DOT com> <DM5PR17MB1276B9CBF6665F06E9EC6688FA160 AT DM5PR17MB1276 DOT namprd17 DOT prod DOT outlook DOT com> <DM5PR17MB127634A59AEC4E4258700050FA160 AT DM5PR17MB1276 DOT namprd17 DOT prod DOT outlook DOT com> <a432978c-d8f1-5dd8-4920-6dc2f6f25723 AT cs DOT umass DOT edu> |
From: | Keith Christian <keith1christian AT gmail DOT com> |
Date: | Wed, 26 Oct 2016 08:13:26 -0600 |
Message-ID: | <CAFWoy7H0QW24TGUT81hvqQaA-RwaAiipPp2e=th8BXqrNzDzEw@mail.gmail.com> |
Subject: | Re: issues with startxwin not loading x windows |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Michael, To limit information leakage, I do this for several pieces of software on my corporate PC. The sed script that you'll create is useful in many other "cleaning" operations as well. 1. Create a text file dump using cygcheck or by whatever method named "original_text_file" 2. Look for strings in "original_text_file" that you want filtered or changed. (I simply delete entire lines containing anything with a sensitive string, but you could obviously replace the string only.) 3. Add these strings to a sed file, e.g. "clean.sed" 4. To avoid matching short strings before long strings, run the command below to put the longest strings first, so that partial strings aren't replaced too early, causing misses later in the original_text_file: awk '{print length($0)";"$0}' clean.sed|sort -nr|awk -F\; '{print $2}'>clean.longest_strings_first.sed /sensitive_string_lowercase_002/d /sensitive_string_lowercase_001/d /sensitive_string_lowercase_000/d /SENSITIVE_STRING_UPPERCASE_000/d /SENSITIVE_STRING_MixedCase_000/d /username_lowercase_001/d /username_lowercase_000/d /SENSITIVE_STRING_001/d /^[0-9][0-9][0-9]*(/d /USERNAME_MixedCase/d /MACHINE_NAME_001/d /DOMAINNAME_001/d /DOMAINNAME_000/d /USERNAME_CAPS/d /LOGONSERVER/d /xyzcompany/d /XYZCOMPANY/d /CLIENTNAME/d /PuTTY/d /BLART/d /FOO/d 5. Run this command line to produce an output named "filtered_text_file" sed -f clean.longest_strings_first.sed original_text_file>filtered_text_file 6. I like to use the "vimdiff" command to show the changes from "original_text_file" to "filtered_text_file." vimdiff original_text_file filtered_text_file 7. Iterate over steps 2 - 6 editing "clean.sed" until it produces a clean.longest_strings_first.sed file that filters or modifies strings that you don't want in the output. On Fri, Aug 19, 2016 at 8:28 AM, Eliot Moss <moss AT cs DOT umass DOT edu> wrote: > Maybe I am way off base, but this seems similar to what will happen if a > .startxwinrc file's commands don't have something that waits. My > .startxwinrc > looks like this: > > #!/bin/bash > > xrdb -merge ${HOME}/.Xdefaults > xmodmap ${HOME}/.Xmodmap > > UC="${USER} console" > xterm +tb -geometry 110x62+4+0 -T "${USER}" -n "${USER}" -name "${USER}" > -bg rgbi:.0/.2/.2 -ls -iconic & > xterm +tb -geometry 110x62-10+0 -T "${UC}" -n "${UC}" -name "${UC}" > -bg rgbi:.5/.0/.1 -ls -iconic & > xemacs -iconic -geometry 110x61+0+0 -T xemacs & > wait > > > That is, it sets some defaults using xrdb and xmodmap and that opens two > xterms and one xemacs. > Note that those last three commands end in & ... they are this started in > background. The > 'wait' is very important here! Without it, the X startup process terminates > and then the > X server exits. > > Hope this helps, or at least does not add too much noise to the > conversation! > > Eliot Moss > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |