Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
1,755
questions
0
votes
0
answers
121
views
Cygwin ctrl-number not working (in cli emacs)
Cygwin ctrl-number is not working in cli emacs. I disabled the mintty options for keyboard shortcuts, so now ^- does work the same as ^u -1. Still, ctrl-number shortcuts do not work in emacs. ^4 ^x o ...
0
votes
1
answer
103
views
Cygwin: git 2.33.0: gitk not showing diffs from index
I have been using Cygwin git for a long time (since about 2012). Much better than msysgit, as bash and all utilities are identical to what runs on linux, which is where I deploy. I have lots of ...
1
vote
1
answer
589
views
Sendemail command not found in cygwin
So I am trying to use sendmail in cygwin because on the server I cannot use other options like mutt because they aren't supported. I have downloaded the sendmail package during the cygwin setup, but ...
0
votes
3
answers
3k
views
PulseAudio on Cygwin: Failed to create secure directory: Unknown error 13
I am unable to run PulseAudio on Cygwin.
Operating System: Windows 8 Pro 64 bit
Cygwin Setup.exe Version: 2.831 (64 bit)
PulseAudio Version: 2.1-1
When I run:
pulseaudio -vv
this is the output:
...
2
votes
1
answer
3k
views
Cygwin: OpenSSH_8.8p1 appears broken, downgrade to OpenSSH_8.7p1 fixes it
I have been using Cygwin on Windows 10 for many years, and using ssh to access an AWS EC2 Amazon Linux instance for development. Recently, I bought a new Windows 10 PC, installed Cygwin in the usual ...
35
votes
7
answers
36k
views
Cygwin from Windows is very slow/ laggy
Suddenly all Cygwin commands I start from the Windows command line have a ~10-20 second lag
before they execute, so that Cygwin becomes totally unusable. I already tried to reinstall without success.
...
26
votes
4
answers
22k
views
How do I change the unreadable dark blue color Cygwin uses for directories?
I'd like to change the blue color that Cygwin uses for directories. It is too dark to read on most screens.
0
votes
2
answers
248
views
Where are Cygwin Packages Installed?
I've recently installed cygwin64 on my Windows 10 machine in an attempt to build a project using cmake (Through CLion).
The project has lz4 as a dependency and when running the cygwin setup, there's a ...
1
vote
2
answers
4k
views
Unix: Why soft link file still pointing to original file when original file is deleted?
I have Windows 7 64-bit PC. I have installed Cygwin version 2.6.0 on it in c:\cygwin64 directory.
I have a file named file1. For it I created a soft link file named file1_soft1.
ls -i -l command ...
1
vote
1
answer
4k
views
No access via cygwin to USB connected device (Samsung Galaxy tab II)
In Cygwin, I am used to being able to have access to a USB-connected device via a drive letter. For example, my Droid X2 appeared as E://, so I could do:
$ cd E:/<something>/
and get access ...
0
votes
1
answer
1k
views
Can I use Cygwin with Windows-native-only terminal apps?
I use a Cygwin on Windows relatively often. However - the Cygwin terminal app, mintty.exe, is... well, underwhelming. It has repaint issues, resizes don't always get communicated like I would expect ...
0
votes
2
answers
82
views
Can I let `rm` prompt again if I type the wrong key?
Question
Is there any way to let rm -i just ask again if I type in anything different than j/J/n/N at its prompt?
Reason
Consider this small example:
echo "Hey, I am a file. Or at least I am IN ...
7
votes
5
answers
12k
views
cygwin's chmod behaves as working, but it does not work
My Cygwin installation is behaving strangely: chmod does not work.
[09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod
64K -rwxr-xr-x 1 Administrator None 38K Feb 6 2012 /usr/bin/chmod
[...
0
votes
0
answers
374
views
Cygwin install NS2 issue
I'm trying to install ns2 (ns-allinone-2.35) with the help of cygwin 2.909-32bit in windows 10. i run ./install but i get the error :
tcp/tcp-fack.cc:302:22: warning: ISO C++17 does not allow ‘...
0
votes
1
answer
152
views
change windows partition device number as reported by cygwin stat
I have two partitions with the same device number:
$ stat -c "%D" /cygdrive/c
ec6d967e
$ stat -c "%D" /cygdrive/g
ec6d967e
I believe this is because G: was restored from an image ...
44
votes
9
answers
71k
views
There's no 'sudo' command in Cygwin
Because there's no sudo command in Cygwin, scripts that I want to run fail with
./install.sh: line N: sudo: command not found
What's the standard way for getting around this? Editing the scripts to ...
0
votes
0
answers
195
views
Cygwin bash prompt is removing unexpected characters with multiline command [duplicate]
I repaired line wrapping in my cygwin using of the solution in Cygwin bash prompt is wrapping lines on the same line. However, I encountered another problem.
When a long command is posted, it's split ...
0
votes
2
answers
2k
views
Cygwin dd of='\\.\PhysicalDrive0' Invalid argument
I'm trying to copy my hard drive. unxutils dd that used to work before, now doesn't.
So I'm trying the Cygwin version. It reads just fine, but can't open for writing:
$ dd if='\\.\PhysicalDrive0' ...
2
votes
3
answers
652
views
how to start an interactive shell with special setup
I want to start an interactive zsh (on cygwin) with project specific set-up:
source /etc/profile
source ~/.profile
source $PROJECT_HOME/Setup.zsh
become interactive
I got as far a step 3 but then ...
2
votes
3
answers
7k
views
compare and find differences of 2 huge text files (50 gb)
I want to find the differences between two text files (more than 50 GB) each.
I tried diff but, I got memory exhausted problem.
I am using Windows7. My code is in PHP. I was calling diff from my ...
1
vote
1
answer
663
views
SSH Cygwin Password not recognised
I have recently been using Cygwin to connect to an Ubuntu box which I host my server on, however it has just been reset completely. Previously I had no issues using Cygwin however I recently re-made ...
0
votes
3
answers
876
views
Does Ctrl2Cap work with Windows 10
The old Unix environments, X-windows, and power text editors make extensive use of the Ctrl key. When running such environments & apps on modern era Windows laptops, e.g., perhaps via Cygwin, the ...
3
votes
1
answer
1k
views
Cygwin / Windows 10 cli: is there a command that can focus a application/window?
I'm looking for a command that can bring a window into focus. The command has to work in a cygwin terminal, but I imagine this command will be built into Windows, so it's worth saying I'm using ...
20
votes
6
answers
10k
views
How to check if cygwin mintty/bash is run as administrator?
Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"?
Why, specifically? I have typically several mintty terminals open when using ...
0
votes
1
answer
260
views
Cygwin terminal cannot find the installed package
I have install Cygwin in C:\cygwin64 and installed e2fsprogs package; but Cygwin terminal still cannot find e2fsck:
C:\cygwin64\var\log\setup.log:
2021/07/16 16:40:46 Starting cygwin install, version ...
2
votes
1
answer
389
views
Cygwin / mintty window size and GNU bash readline do not get along?
I have a problem with the Cygwin / mintty window size and the standard GNU bash readline shell. When I have 80 columns or less it works normally. But when I make the window wider then the bash (...
0
votes
0
answers
257
views
cygwin / mintty color scheme woes
I heavily rely on Cygwin (that uses mintty) and SSH to work on remote systems on command lines and then using emacs in text mode as editor. I find the default color schemes of the cygwin shell ...
0
votes
1
answer
44
views
Struggling with installing Audacious part 2
So I did install pkg-config just fine, I even saw signs that I installed it correctly. However, when I tried to compile Audacious again with cygwin, I get this message:
Package 'glib-2.0', required by ...
0
votes
2
answers
1k
views
How to force cygwin to run windows python executeable and not the one in its own bin directory
When I execute keyword python in cygwin, it runs the python that exists inside its own internal directory. I cannot remove this python since it is required for some other packages that were downloaded ...
1
vote
2
answers
4k
views
Cygwin's MinTTY takes about a minute to start up
When I open MinTTY from outside an existing MinTTY, the new terminal window takes about a minute to show up. My Windows shortcut is set to run C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -. The ...
59
votes
5
answers
37k
views
How can I get a block cursor in Vim in the Cygwin terminal?
I am used to having a block cursor in normal mode in Vim. This makes sense with the Vim paradigm; when you press x, it is clear which character will be deleted.
I've installed Cygwin on a Windows ...
21
votes
3
answers
42k
views
When trying to connect remote clients to Cygwin/X, I get 'Authorization required, but no authorization protocol specified'
I just installed Cygwin/X and I launch it with startxwin -- -listen tcp to allow remote clients to connect to it through tcp.
However, remote clients fail to connect to the remote display with the ...
0
votes
0
answers
98
views
Struggling with installing Audacious, which requires pkg-config
Title should be self-explanatory. I thought the pkg_config installation didn't give me errors at all, so I assumed it installed fine, but I got this error when installing Audacious.
How do I deal with ...
1
vote
1
answer
511
views
In cygwin usr/bin folder is missing
I have installed Cygwin and once I started to build a C++ file in Visual Studio Code with Cygwin GCC, I noticed that it uses some usr/bin folder. Then I went to check what is in Cygwin usr/bin folder. ...
0
votes
0
answers
279
views
How to setup Cygwin in Sublime Text in terminus?
I saw a post about how to set up Cygwin in Sublime Text in this link, but it's still not working in my case.
[
{
"keys": ["alt+o"], "command": "...
-1
votes
1
answer
1k
views
How to install latest GCC/Mingw in Windows 7 32 bit Operating System?
I know that I can download MinGW from Cygwin, MSYS, but I saw that they don't have the latest GCC compiler. And that's why I searched in Google that how to get latest GCC in windows, and I found ...
30
votes
4
answers
73k
views
Cygwin Dos2Unix Command not found
I am having some problems using cygwin. I am trying to use the dos2unix utility and cygwin is throwing -bash: dos2unix: command not found When I go back into the installer and look through the ...
9
votes
6
answers
14k
views
How can I Install Tmux in Cygwin?
I'm trying to install Tmux under a Cygwin 64-bit installation on Windows 7 64-bit.
I'm following these instructions: http://java.ociweb.com/mark/programming/tmuxInCygwin.html
I successfully compiled ...
0
votes
1
answer
7k
views
SFTP connection is getting closed after password
We have set up Cygwin on Windows 2012 and the services related to the tool are running fine on the server.
During installation we have created a local user cyg_server, we tried to create home folder ...
2
votes
4
answers
8k
views
How do I wipe a USB drive using dd on cygwin on Windows?
I am trying to use dd to wipe a usb drive using Cygwin on Windows. What should I use for the of argument?
dd if=/dev/null of=?
0
votes
2
answers
2k
views
Using variables with bc: syntax error
The original problem
This may be more of a bc or bash question than an FFmpeg one, although I would also appreciate being able to prevent ffprobe from printing carriage returns after its output.
In a ...
78
votes
10
answers
334k
views
How to completely uninstall/remove cygwin from Windows 7
How can I completely uninstall/remove cygwin? I don't think it is as simple as deleting C:\cygwin. Maybe alter registry?
1
vote
2
answers
270
views
Is there a program to remove trailing spaces and convert tabs to spaces in a lot of files at once using command-line? [closed]
I am using cygwin and have a lot of files in which I want to convert tabs to spaces and remove all space characters that exist at end of line. Is there a utility for this in Linux?
0
votes
1
answer
560
views
How to run cygwin tmux in cmd.exe
I run Cygwin bash inside windows command prompt. If I run tmux here, it says open terminal failed: not a terminal. It runs fine inside Cygwin Terminal.
Is there a way to run tmux inside windows ...
0
votes
1
answer
531
views
Changing default startup directory in CygWin and using alias
Following this post :
How do I change the default startup directory in Cygwin?
I was able to change the default directory by editing the .bashrc file.
I was curious about the alias : I created the ...
0
votes
1
answer
429
views
Where can I get a Cygwin /etc/skel directory
This is weird. I had to wipe my Windows 7 disk and am rebuilding it. I installed Cygwin and opened up the terminal. To my surprise, it did not start out by telling me it was copying the bash ...
2
votes
2
answers
5k
views
how can change default text editor in mingw32
I would like to change or add the ability to open files when working with mingw32 with a different text editor ( in my case sublime text 2 ) I have been googling around but I'm not sure i understand ...
1
vote
1
answer
444
views
Cygwin can't ssh (hangs, segmentation fault)?
I have cygwin installed on Windows 10 and am seeing that I cannot SSH to any of my servers.
When trying to ssh, I just see
➜ ~ ssh -vv me@myserver
OpenSSH_8.4p1, OpenSSL 1.1.1f 31 Mar 2020
and it ...
0
votes
0
answers
262
views
Mount ext3 filesystem in Cygwin
I've succesfully partitioned and created an ext3 file system on my SD Card using Cygwin.
Now I need to mount that partition in Cygwin to add some files to it.
Is this somehow possible with Cygwin, or ...
0
votes
0
answers
396
views
Installilng GiNaC and CLN on windows
I planned to move to Arch Linux but for the time being I'm unfortunately stuck with Windows.
I want to install GiNaC.
In its installation page it says to install CLN first so that is also something I ...