I installed Cygwin, to be disappointed that bash by default runs within “cmd.exe”. I googled around and found Console2. It’s not a particularly well-designed application, as doing adjustments is slightly painful, although most of the time it works well.
I am still looking for a better way to survive in a Windows environment as even Console 2 occasionally crashes e.g. when trying to resize my terminal when editing in vim and there are plenty of other annoyances that I’m really not satisfied with.
Any ideas? I tried using Cygwin via PuTTY and that was an equally bad user experience.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
MinTTY – here.
It makes Cygwin entirely usable on Windows. I would be lost without it. Based on the original PuTTY code, but integrates straight into Cygwin (and in fact, is bundled with Cygwin).
Start it with,
C:cygwinbinmintty.exe -
Or where-ever you installed it. The ‘-‘ is key.
There are a few other useful additions for Cygwin as well, one being apt-cyg. It’s not perfect, but it’s better than running setup.exe every time you remember you’re missing a package.
Even with Cygwin/X, I still use MinTTY as my primary terminal (I hate the scroll bars on xterm).
Method 2
Reviving an old thread; however, I stumbled across this while doing my own search. So rather than make a new thread – Here’s what I found:
The core of Babun consists of a pre-configured Cygwin. Cygwin is a
great tool, but there’s a lot of quirks and tricks that makes you lose
a lot of time to make it actually ‘usable’. Not only does babun solve
most of these problems, but also contains a lot of vital packages, so
that you can be productive from the very first minute.
It installs quickly and sets up the environment for you, which is great, and installs pact (a package manager similar to yum / apt-get)
Uses mintty as the console.
Overall, I’d say it’s a great project and the more people that use it, the better it will become.
Method 3
Install Cygwin/X and use xterm. (And then you’ll probably either want their version of gvim or the Windows native one.)
Method 4
Alternatively, you can try AndLinux and work with a real terminal.
Method 5
I added C:cygwinbin (the Cygwin installation path) to the System environment variable: Path. It solves two problems:
- You need not
cdto a particular folder (go to a folder, press<alt+d>, typecmd, and press<enter>) - Use Cygwin Terminal as the default cmd in Windows
Method 6
I realize this is very old, but since things have changed, ConEmu is the best in my opinion. It lets me run all variety of tabbed shells with massive customization, hot keys, etc. My primary use case is a series of named Cygwin zsh instances.
https://github.com/Maximus5/ConEmu
Method 7
I’ve been using Poderosa for a long time.
It works beautifully with Cygwin.
It has a dedicated button to launch a Cygwin terminal, while being a capable terminal itself. It’s a tabbed terminal, has the ability to send commands to all your tabs (using a plugin), display profiles (text/background color) per session, copy-by-select, etc.
I mainly use it to test awk/sed scripts on Cygwin before running it on the server.
Method 8
To answer the wider question about surviving on a Windows box coming from a Linux world, I’d like to recommend MobaXterm from Mobatek. It’s a self-contained Windows application, works on Windows 7 & 8, and includes a plugin for Cygwin. You get the nice wide console that you don’t get from the pre-packaged Windows cmd.exe. You can easily create session shells to Linux boxes from your windows machine. It’s got X server capabilities so you can launch Linux apps and have them served up locally on the Windows box.
My primary machine at work is (unfortunately) Windows. But, I’m able to quite easily access and work with remote Linux boxes using my favorite GUI interfaces — all popping up quite nicely in Windows. Quick examples of things I run include gtkterm, gedit, and Eclipse.
I have no affiliation with the company. Just a very satisfied customer who simply loves how easy it is to install and use. Download the standalone version, run the executable, and you’ll be going in no time. Seriously. The Home Edition works just as well as the Pro Edition with some session count limitations that I honestly never even ran into before I became a paying customer.
Method 9
Personally I don’t think there is a great solution on Windows unfortunately. I’ve opted to install the gvim windows package and use that for most of my editing (it adds a nice option in your right click menu to open with Vim).
As for CLI, you can keep using bash if you’d like. Other options include Windows PowerShell. I haven’t bothered to learn it, but I’ve heard its pretty good.
The last solution is to run a VM in VirtualBox or VMWare Workstation. May not be ideal, but it lets you get Linux and edit/manipulate files from Windows via SMB Share or Shared Folders.
Method 10
rxvt is nice.
From my blog (currently down, thanks Google cache!):
My buddy Bill told me there is now a Cygwin command xhere and a setup command chere that will do all the Registry insertions for you. So launch Cygwin in the default crappy shell (with admin privs) and you can type:
chere -i -af -t rxvt -o "-bg black -fg white -sr -sl 1000 -fn "FixedSys" -ls" -s bash -e "Bash prompt here"
You can change -af to -cf for current user only if you don’t have admin on the machine.
Because he was kind enough to give it to me, I will give you his command which seriously hurts my eyes. 🙂 I also prefer the default size and expand it if needed.
chere -i -af -t rxvt -o "-ls -sr -sl 1000 -bg grey70 -fg black -geometry 120x65+300+15 -fn 10x16 -title Bash" -s bash -e "Bash prompt here"
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0