Re: Ruby EOL in Cygwin 3.4.9?

2023-10-12 Thread Thomas Schweikle via Cygwin



Am Mi., 11.Okt..2023 um 18:37:29 schrieb Hendrickson, Eric D via Cygwin:

Hello all,

As a ~25 year user and sometime contributor to Cygwin, I support Cygwin here at 
my place of work.  Does anyone know why we are deploying Ruby 2.6 which EOL 
about 18 months ago?

https://www.ruby-lang.org/en/downloads/branches/

I'm concerned about proliferation of EOL versions of Ruby in case some security 
risk / 0Day is identified.


Did you set version 2.6* to install? It is still there and may be 
installed. Version 3.2.2 is available too.


--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
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


Re: Virus Total scan

2023-08-22 Thread Thomas Schweikle via Cygwin
It is the address of one of the distribution servers. Since this is not 
"one server", but a cluster of servers, your "suspicious" server shows 
only one thing: those "suspicious" flags are suspicious by themselves:


this particular server ist down since some time and only reports back a 
broken html page telling "Our services aren't available right 
nowWe're working to restore all services as soon as possible. 
Please check back 
soon.06cvkZAA8FvmXFYIOTZ2TS15AJl0/RFVTMzBFREdFMDkxNwBFZGdl"


If this is enough to get flagged as "suspicious" ...


Am Di., 22.Aug..2023 um 16:12:51 schrieb Dom Woods - BGS via Cygwin:

Hi Cygwin,

I scanned your application through Virus Total as per our company policy and 
noticed that the installation process calls out to a suspicious Microsoft IP 
13.107.4.50, this ip has been flagged by 8 vendors as malicious, I get varying 
responses for what it is used for (an os updater or a file distributer) and 
wanted to ask what does Cygwin use it for? I can't seem to contact it with 
nslookup or ping it and Virus Total says that it gives a 'status 400' results 
so it might not be in use anymore anyway but just wanted to check.

Here is your Virus Total graph results: 
https://www.virustotal.com/graph/6bad4555154b3b348d1bfb633a2e9d6086aa46e36952f456a434ecef5b0010e0
Here is the scan of the IP address' results: 
https://www.virustotal.com/gui/url/3397a00da1c5aa448611892c12d38fee37fcd60321720a6e242cb0167e381901/detection


Kind regards,
Dom woods




This email and any attachments are intended solely for the use of the named 
recipients. If you are not the intended recipient you must not use, disclose, 
copy or distribute this email or any of its attachments and should notify the 
sender immediately and delete this email from your system. UK Research and 
Innovation (UKRI) has taken every reasonable precaution to minimise risk of 
this email or any attachments containing viruses or malware but the recipient 
should carry out its own virus and malware checks before opening the 
attachments. UKRI does not accept any liability for any losses or damages which 
the recipient may sustain due to presence of any viruses.




--
Mit freundlichen Grüssen
*i. A. Thomas Schweikle*
Endgeräte und Servicedesk | Devices and Servicedesk

—
Bundesamt für Strahlenschutz | Federal Office for Radiation Protection
Informationstechnik | Information Technology | DO 3
Ingolstädter Landstrasse 1
85764 Oberschleißheim

Tel.: +49 30 18333-2594
E-Mail: tschwei...@bfs.de 

Wenn möglich signieren und verschlüsseln Sie ihre Mail mit
GnuPG oder einem äquivalenten Produkt. Der öffentliche
Schlüssel für die Verschlüsselung ist angehängt (*.asc-Datei).

—
🌐 Besuchen  Sie unsere Website und abonnieren
 Sie unseren 📢 Newsletter
.
🔒 Informationen zum Datenschutz  gemäß
Artikel 13 DSGVO
💚 E-Mail drucken? Lieber die Umwelt schonen!



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


installing/updating silently

2023-04-20 Thread Thomas Schweikle via Cygwin

Hi!

Trying to install or upgrade cygwin silently. Calling a newly downloaded 
setup-x86_64.exe (Power Shell-snipplets):


$URL = "https://www.cygwin.com/setup-x86_64.exe";
$dlp = "C:\INSTALL\Apps\c\cygwin"
$nsf = "$dlp\setup-x86_64.new"
$isf = "$dlp\setup-x86_64.exe"
$isl = "$dlp\setup-x86_64.log"
$ise = "$dlp\setup-x86_64.err"
$cll = "$dlp\setup-x86_64.cll"

$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri $URL -OutFile $nsf

$ProgressPreference = 'Continue'
if (Test-Path -Path $isf -PathType Leaf) {
Remove-Item -Path $isf
}
Rename-Item -Path $nsf -NewName $isf

$SetupOpts = @{
FilePath = $isf
ArgumentList = @(
"--verbose",
"--delete-orphans",
"--upgrade-also",
"--quiet-mode",
"--wait",
"--no-desktop",
"--local-package-dir", "`"$localDir`"",
"--proxy", "`":8080`"",
"--root", "`"C:\cygwin`""
)
WindowStyle = "Hidden"
PassThru = $True
Wait = $True
RedirectStandardOutput = "$isl"
RedirectStandardError = "$ise"
}
$proc = Start-Process @SetupOpts

Setup starts, but then does nothing. It does create the logs, but they 
do not contain anything. They stay empty. Anything missing from the options?


Calling the power shell script from an elevated prompt directly seems to 
work as expected. It bails out if it is not an elevated prompt. Calling 
it remotely it hangs and nothing happens. Any idea? Any hint?

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Re: Changing user home to overlap Windows user home possible? Or a bad idea?

2023-04-11 Thread Thomas Schweikle via Cygwin

Hi!

Am Sa., 08.Apr..2023 um 10:30:47 schrieb Andrey Repin:

Greetings, Thomas Schweikle!


Is it possible to have the same home for Windows and cygwin?


See /etc/nsswitch.conf and 
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch


Using "C:\Users\" for Cygwin home setting mount points for users?


I don't get this question. Can you please rephrase?


I've tried to set

C:/Users /home ntfs binary,posix=0,nouser 0 0

Then have "C:/Users/..." and "/home/..." the same.
Did not work this way. Starting some shell got cygwin exhaust "Could not 
create "/home/" -- true: the directory was there already, but 
cygwin did not notice. Can't tell why. I could switch to /home/, 
while cygwin couldn't setting $HOME to /tmp. I had success with


mklink /D C:\cygwin\home C:\Users

and then setting /etc/nsswitch.conf to

db_home: /home/%U

this did the trick: cygwin starting a shell works now as expected.
One last problem: the owner of the files was not the one expected. Could 
change him to the expected one using windows tools.


The remaining problems are all git related: git seems to have problems 
creating symlinks for clones. Maybe this is just a case enabling 
privileges via GPO for users needing them. Looks like some sources fail 
to compile if symlinks are not available.




Or is this a bad idea? Or is it something which has some drawbacks you've
to decide to live with? At the moment the most ugly drawback is duplication
of various data needed within "C:\cygwin\home\" and "C:\Users\".
Would be nice if I could overlay both.


There's some caveats to using %USERPROFILE% as $HOME, most notable, you have
to be careful with overly sensitive programs, like SSH or GPG. Other than
that, the noacl flag on the cygdrive mount will cover you for the time being.
I.e.:


This was why I tried to mount C:\Users to /home, having two identical 
directories making ssh, gpg and others happy.



none /cygdrive cygdrive noacl,binary,nouser,posix=0 0 0


And usertemp idea is also a good one:


none /tmp usertemp binary,nouser,posix=0 0 0


This was helpful. It is a little bit problematic switching users, but it 
is lots better than having a global /tmp for all users.

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Changing user home to overlap Windows user home possible? Or a bad idea?

2023-04-07 Thread Thomas Schweikle via Cygwin

Hi!

Is it possible to have the same home for Windows and cygwin? Using 
"C:\Users\" for Cygwin home setting mount points for users?
Or is this a bad idea? Or is it something which has some drawbacks 
you've to decide to live with? At the moment the most ugly drawback is 
duplication of various data needed within "C:\cygwin\home\" and 
"C:\Users\". Would be nice if I could overlay both.

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Howto fix C:\cygwin acl after backup/restore?

2023-04-07 Thread Thomas Schweikle via Cygwin

Hi!

How can C:\cygwin ACL be fixed after a backup/restore (file by file, not 
image). The program seems to force canonical ACL while restoring.


How do i get back ACL as they are right after installing cygwin?

Docs did not help here. They discussed Windows-ACL to POSIX-ACL or 
simple rwxrwxrwx POSIX rights used on most *nix machines, but at no 
point where concrete ACL shown as they are supposed to be applied to the 
installed C:\cygwin tree.


Any idea? Any script? Any existing command to recreate recommended ACLs?
--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Re: Cygwin starts take long since march. Three minutes to prompt.

2023-04-03 Thread Thomas Schweikle via Cygwin



Am Mo., 03.Apr..2023 um 17:48:03 schrieb Brian Inglis via Cygwin:

On 2023-04-03 08:59, Thomas Schweikle via Cygwin wrote:

Am Mo., 03.Apr..2023 um 16:47:42 schrieb Eliot Moss:

On 4/3/2023 10:38 AM, Thomas Schweikle via Cygwin wrote:
Cygwin shell takes about three minutes until the prompt is shown. 
Any idea how to find out the cause?



I think the most common thing in the past had to do with
probing remote mounts.  You could try pruning paths and
see what happens, or adjusting mount parameters.



Mounts are:
$ cat /proc/mounts
C:/cygwin/bin /usr/bin ntfs binary,auto 1 1
C:/cygwin/lib /usr/lib ntfs binary,auto 1 1
C:/cygwin / ntfs binary,auto 1 1
C: /cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1
G: /cygdrive/g netapp binary,posix=0,user,noumount,auto 1 1
L: /cygdrive/l netapp binary,posix=0,user,noumount,auto 1 1
M: /cygdrive/m netapp binary,posix=0,user,noumount,auto 1 1
O: /cygdrive/o netapp binary,posix=0,user,noumount,auto 1 1
P: /cygdrive/p netapp binary,posix=0,user,noumount,auto 1 1
T: /cygdrive/t netapp binary,posix=0,user,noumount,auto 1 1
V: /cygdrive/v netapp binary,posix=0,user,noumount,auto 1 1
W: /cygdrive/w netapp binary,posix=0,user,noumount,auto 1 1
X: /cygdrive/x netapp binary,posix=0,user,noumount,auto 1 1
Y: /cygdrive/y netapp binary,posix=0,user,noumount,auto 1 1
Z: /cygdrive/z netapp binary,posix=0,user,noumount,auto 1 1


I've read somewhere noacl should be given for these mounts. Could not 
find it, even with a fresh installed cygwin on a fresh windows.


Trying to reset acls to defaults for "C:\cygwin" gives lots of "access 
denied" errors, even if running as "Administrator" from an elevated 
shell. Tried both "cmd.exe" and "powershell.exe". Both did not allow 
to change acls.


Seems as if "C:\cygwin" has lost ownership an some acls. Any idea to 
get them back in place for the whole tree?


Should not need anything special:

$ ls -dl / && getfacl / && icacls `cygpath -m /`    # sanitized:
drwxr-xr-x 1 $USER None 0 Mar 16 18:57 /

# file: /
# owner: $USER
# group: None
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::r-x

C:/.../cygwin64 $HOSTNAME/$USER:(F)
     $HOSTNAME/None:(RX)
     Everyone:(RX)
     CREATOR OWNER:(OI)(CI)(IO)(F)
     CREATOR GROUP:(OI)(CI)(IO)(RX)
     Everyone:(OI)(CI)(IO)(RX)

Successfully processed 1 files; Failed processing 0 files


$ ls -dl / && getfacl / && icacls `cygpath -m /`
drwxr-xr-x 1 SYSTEM SYSTEM 0 Mar 23 13:44 /
# file: /
# owner: SYSTEM
# group: SYSTEM
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::r-x

C:/cygwin NT-AUTORITÄT\SYSTEM:(F)
  NT-AUTORITÄT\SYSTEM:(RX)
  Jeder:(RX)
  ERSTELLER-BESITZER:(OI)(CI)(IO)(F)
  ERSTELLERGRUPPE:(OI)(CI)(IO)(RX)
  Jeder:(OI)(CI)(IO)(RX)

1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein 
Verarbeitungsfehler aufgetreten.


Is this ok? Not missing "Administrator"?



Those kinds of delays are often AD lookup for domain users and groups:
see /etc/nsswitch.conf for settings, and consider running cygserver at 
system or Cygwin startup to preload and cache the info.


$ 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_shell: /bin/bash
# db_gecos: 

It is at defaults.
--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Re: Cygwin starts take long since march. Three minutes to prompt.

2023-04-03 Thread Thomas Schweikle via Cygwin

Hi!

Am Mo., 03.Apr..2023 um 16:47:42 schrieb Eliot Moss:

On 4/3/2023 10:38 AM, Thomas Schweikle via Cygwin wrote:

Hi!

Cygwin shell takes about three minutes until the prompt is shown. Any 
idea how to find out the cause?


I think the most common thing in the past had to do with
probing remote mounts.  You could try pruning paths and
see what happens, or adjusting mount parameters.


Mounts are:
$ cat /proc/mounts
C:/cygwin/bin /usr/bin ntfs binary,auto 1 1
C:/cygwin/lib /usr/lib ntfs binary,auto 1 1
C:/cygwin / ntfs binary,auto 1 1
C: /cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1
G: /cygdrive/g netapp binary,posix=0,user,noumount,auto 1 1
L: /cygdrive/l netapp binary,posix=0,user,noumount,auto 1 1
M: /cygdrive/m netapp binary,posix=0,user,noumount,auto 1 1
O: /cygdrive/o netapp binary,posix=0,user,noumount,auto 1 1
P: /cygdrive/p netapp binary,posix=0,user,noumount,auto 1 1
T: /cygdrive/t netapp binary,posix=0,user,noumount,auto 1 1
V: /cygdrive/v netapp binary,posix=0,user,noumount,auto 1 1
W: /cygdrive/w netapp binary,posix=0,user,noumount,auto 1 1
X: /cygdrive/x netapp binary,posix=0,user,noumount,auto 1 1
Y: /cygdrive/y netapp binary,posix=0,user,noumount,auto 1 1
Z: /cygdrive/z netapp binary,posix=0,user,noumount,auto 1 1

I've read somewhere noacl should be given for these mounts. Could not 
find it, even with a fresh installed cygwin on a fresh windows.


Trying to reset acls to defaults for "C:\cygwin" gives lots of "access 
denied" errors, even if running as "Administrator" from an elevated 
shell. Tried both "cmd.exe" and "powershell.exe". Both did not allow to 
change acls.


Seems as if "C:\cygwin" has lost ownership an some acls. Any idea to get 
them back in place for the whole tree?

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Cygwin starts take long since march. Three minutes to prompt.

2023-04-03 Thread Thomas Schweikle via Cygwin

Hi!

Cygwin shell takes about three minutes until the prompt is shown. Any 
idea how to find out the cause?

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Re: cygwin does not run quietly if --quiet-mode given on commandline

2023-03-30 Thread Thomas Schweikle via Cygwin



Am Do., 30.März.2023 um 18:24:20 schrieb Brian Inglis via Cygwin:

On 2023-03-30 08:23, Thomas Schweikle via Cygwin wrote:

starting cygwin setup-x86_64.exe with parameters:
setup-x86_64.exe ^
   --verbose ^
   --delete-orphans ^
   --local-package-dir "C:\WINDOWS\ccmcache\4r\installdata" ^
   --no-desktop ^
   --proxy "" ^
   --root "C:\cygwin" ^
   --upgrade-also ^
   --quiet-mode ^
   --wait
It does not matter if "--quiet-mode" is given or not: in all cases 
cygwin setup opens a window showing setup progress and the real bad 
thing: allows the user on whom desktop the window is shown to stop the 
upgrade!
I need a really unattended upgrade with some log written what setup 
had done.
And is it a bug? As far as I could find "--quiet-mode" means no 
window, no messages at all - am I wrong and all those interpreting it 
the same way?


Might want to try dropping:

 >    --verbose ^
 >    --delete-orphans ^
 >    --wait


If i drop "--verbose" it only does less output to console.

"--delete-orphans" is supposed to delete packages not found on servers 
any more. It is sometimes needed to have setup update cygwin without 
hassles. But I am aware of it removing more than necessary sometimes.


"--wait" is necessary. If it is not given, setup will immediate return, 
triggering following routines -- bad if some rely on cygwin upgraded and 
functional.


What I found after trying: the only way is to make this setup window 
hidden. It is opened in all cases. It is opened even before given 
options are evaluated. Thus "--quiet" is nearly useless: the window is 
open before setup evaluates not to open a window.


I was able to get what i wanted mostly with:

$SetupOpts = @{
FilePath = $isf
ArgumentList = @(
"--verbose",
"--delete-orphans",
"--upgrade-also",
"--quiet-mode",
"--wait",
"--no-desktop",
"--local-package-dir", "`"C:\WINDOWS\ccmcache\4r\installdata`"",
"--proxy", "`"`"",
"--root", "`"C:\cygwin`""
)
WindowStyle = "Hidden"
PassThru = $True
Wait = $True
RedirectStandardOutput = "$isl"
RedirectStandardError = "$ise"
}
$proc = Start-Process @SetupOpts

It behaves slightly different if "--wait" is only flagged for setup and 
not the calling process "Wait = $True". If "--wait" is given, but not 
"Wait = $True" it returns before final cleanup is done (PowerShell calls 
a hidden cmd.exe, which in tune calls setup-x86_64.exe). In case both 
waits are given it returns after everything is done.


If only "Wait = $True" was given it returns nearly immediately -- setup 
has not finished then.



or, from cmd.exe

setup-x86_64.exe ^
  --verbose ^
  --delete-orphans ^
  --local-package-dir "C:\WINDOWS\ccmcache\4r\installdata" ^
  --no-desktop ^
  --proxy "" ^
  --package-manager ^
  --root "C:\cygwin" ^
  --upgrade-also ^
  --wait

and add -O|--only-site -s|--site /url/ -s|--site ... closest/fastest 


Found this only a good idea if mirrors where reliable. But they are not. 
If one goes down you'll need a backup. Or you've got your own local 
mirror. Not too difficult to set up, but takes a lot of storage. Maybe 
in near future.


It is way to often the selected mirror is out of order. Giving --site or 
--only-site is then a point upgrades/installs fail.


mirrors as long as it is/they are active in 
https://cygwin.com/mirrors.lst - probably best if they are different 
protocols at the same mirror (handles cert expiry) and/or reliable backup.

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


cygwin does not run quietly if --quiet-mode given on commandline

2023-03-30 Thread Thomas Schweikle via Cygwin

Hi!

starting cygwin setup-x86_64.exe with parameters:

setup-x86_64.exe ^
  --verbose ^
  --delete-orphans ^
  --local-package-dir "C:\WINDOWS\ccmcache\4r\installdata" ^
  --no-desktop ^
  --proxy "" ^
  --root "C:\cygwin" ^
  --upgrade-also ^
  --quiet-mode ^
  --wait

It does not matter if "--quiet-mode" is given or not: in all cases 
cygwin setup opens a window showing setup progress and the real bad 
thing: allows the user on whom desktop the window is shown to stop the 
upgrade!


I need a really unattended upgrade with some log written what setup had 
done.


And is it a bug? As far as I could find "--quiet-mode" means no window, 
no messages at all - am I wrong and all those interpreting it the same way?

--
Thomas



OpenPGP_0x27AE2304B4974851.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature

-- 
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


Re: Cygwin/X11 on Windows 10

2020-09-30 Thread Thomas Schweikle via Cygwin
Tried it. Does not work. X11 is fired up and terminates immediately. I am
using:
~/.startxwinrc:
#!/bin/bash
xterm &
exec sleep infinity

changing "exec sleep infinity" to wait does not change anything.
"~/.startxwinrc" is mode 0755:
-rwxr-xr-x  1 sct-muc user 42 30. Sep 09:12 .startxwinrc

And XLaunch is started with:
C:\cygwin\bin\run.exe /bin/xlaunch -p /usr/bin -run
/home/sct-muc/.config/XLaunch/config.xlaunch

config.xlaunch holds:





On Tue, Sep 29, 2020 at 2:30 PM Eliot Moss  wrote:

> On 9/29/2020 6:26 AM, Thomas Schweikle via Cygwin wrote:
>  > Hi!
>  >
>  > I've managed to install cygwin/X on Windows 10. Now I'm looking for
> command
>  > "startxwin" -- does not seen to exist. If following instructions from
>  > https://x.cygwin.com/docs/ug/setup.html it should be installed? Or is
> an
>  > extra package selected needed beyond what is given in upper mentioned
>  > handbook online?
>  >
>  > If I start "XWin.exe -multiwindow" directly it starts and finishes
>  > immediately. The recommended idea of creating an
>  > executable "~/.startxwinrc" holding only "exec sleep infinity" does not
>  > help. Same behaviour as before. Any other suggestions?
>
> startxwin is in the xinit package.  Personally I use xlaunch, in the
> xlaunch package.  xlaunch with no arguments fires up a GUI where you
> can configure it and save an xlaunch file, e.g., ~/config.xlaunch.
> I put a link to xlaunch in my Windows task bar, with the follow
> command line it:
>
> C:\cygwin64\bin\run.exe /bin/xlaunch -p /usr/bin -run
> /home/moss/config.xlaunch
>
> You'll need to change paths for your file locations, of course.
>
> It uses startxwin.  Below is my personal .startxwinrc file for a sample.
> It
> starts a couple of xterm windows and an emacs, all iconized.  The emacs
> geometry suits my high resolution screen.  The "wait" is important -
> otherwise
> things exit immediately and the X server terminates.
>
> #!/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 &
> emacs --chdir=${HOME} --no-splash --iconic --geometry=130x60+100+100 -T
> emacs &
> wait
> --
> 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
>


-- 
Thomas
--
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


Re: Cygwin/X11 on Windows 10

2020-09-29 Thread Thomas Schweikle via Cygwin
The documentation given at https://x.cygwin.com/docs/ug/setup.html isn't
really clear about what packages shall be selected. It only states one
awaiting all others pulled in as dependencies. Since this isn't true it
might be better to give a list which ones to select.

Now the next problem:
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Any idea about this problem?

On Tue, Sep 29, 2020 at 12:26 PM Thomas Schweikle 
wrote:

> Hi!
>
> I've managed to install cygwin/X on Windows 10. Now I'm looking for
> command "startxwin" -- does not seen to exist. If following instructions
> from https://x.cygwin.com/docs/ug/setup.html it should be installed? Or
> is an extra package selected needed beyond what is given in upper mentioned
> handbook online?
>
> If I start "XWin.exe -multiwindow" directly it starts and finishes
> immediately. The recommended idea of creating an
> executable "~/.startxwinrc" holding only "exec sleep infinity" does not
> help. Same behaviour as before. Any other suggestions?
>
> --
> Thanks in advance for any help you can provide!
> Thomas
>
>

-- 
Thomas
--
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


Cygwin/X11 on Windows 10

2020-09-29 Thread Thomas Schweikle via Cygwin
Hi!

I've managed to install cygwin/X on Windows 10. Now I'm looking for command
"startxwin" -- does not seen to exist. If following instructions from
https://x.cygwin.com/docs/ug/setup.html it should be installed? Or is an
extra package selected needed beyond what is given in upper mentioned
handbook online?

If I start "XWin.exe -multiwindow" directly it starts and finishes
immediately. The recommended idea of creating an
executable "~/.startxwinrc" holding only "exec sleep infinity" does not
help. Same behaviour as before. Any other suggestions?

-- 
Thanks in advance for any help you can provide!
Thomas
--
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