Can't open cygwin terminal after installation - cygwin

I just installed cygwin in my windows7 pc. After installation when i click on 'Cygwin Terminal' from start menu it shows a message like this - message title: Missing Shortcut "Windows is searching for mintty. To locate the file yourself, click Browse" with two buttons below "Browse" and "Cancel".
Then if I select mintty.exe manually from "C:\cygwin\bin" by clicking Browse button it doesn't load anything. How can I be get rid of this?

Open the Cygwin Terminal properties (by right click on the icon and go to properties) check the path of 'mintty'. If everything looks right and it is still giving error, change the 'mintty' to 'mintty.exe'. This solved my problem.

For Installing Cygwin follow the steps given here-
-Link is now dead-
http://www.news.amigowork.com/how-to-install-unix-in-windows/
if problem is still there
then
go to installation directory and open Cygwin.bat
or
go to bin folder of installation directory and open mintty.exe.
it will solve your problem.

Open the Cygwin Terminal properties (by right click on the icon and go to properties) check the path of 'mintty'. If it is not as per your minty(you will get it inside bin folder) location change it.

I had installed cygwin in e drive. But the path (in property, by right click on icon )showed c drive. When i changed it to e, the problem went away. It was on Windows 7 and cygwin installation was latest on 4th Jan 2018.

Related

Sublime text 3 with Git-Bash

I was wondering how you can open Sublime text 3 with Git-Bash I keep getting errors saying that bash: subl: command not found does anyone know how to get the file to open up??
You need to add the folder containing subl.exe to your PATH. Here's how to do that in Windows 10:
Open the Windows menu and click on Settings.
In the search box, type in path. Choose the following from the dropdown: Edit environment variables for your account. This window should open:
In the top pane, click on Path, then click the Edit… button. A new window will open up.
Click the New button, then (carefully) type in C:\Program Files\Sublime Text 3. This is assuming you used the installer and didn't choose a custom location for a portable install. If you do have a portable install, use the Browse… button and select the installation folder that way.
Hit OK to close the window, then OK again to close the other one. Finally, close out of Settings.
Completely close out of and restart Git Bash. subl should now be available on the command line.

PyCharm does not find pygame [duplicate]

I've downloaded pygame-1.9.1release.tar.gz from the Pygame website. I extracted and installed it and it's working fine in the command line Python interpreter in Terminal (Ubuntu). But I want to install it for some IDE, like PyCharm. How can I do it?
Well, you don't have to download it for PyCharm here. You probably know how it checks your code. Through the interpreter! You don't need to use complex command lines or anything like that. You need to is:
Download the appropriate interpreter with PyGame included
Open your PyCharm IDE (Make sure it is up to date)
Go to File
Press Settings (Or Ctrl + Alt + S)
Double click on the option that looks like Project: Name_of_Project
Click on Project Interpreter
Choose the interpreter you want to use that includes PyGame as a module
Save your options
And you are ready to go! Here is an alternate (I have never done this, please try to test it)
Add PyGame in the same folder as your PyCharm file (Your PyCharm stuff is always in
a specific file placed by you during installation/upgrade)
Please consider putting your PyCharm stuff inside a folder for easy access.
I hope this helps you!
For PyCharm 2017 do the following:
File - Settings
Double click on your project name
Select Project Interpreter
Click on green + button on the right side of the window
Type Pygame in search window
Click Install package.
Not I'm saying that the answers above won't work, but it might be frustrating to a newbie to do command line magic.
If you are using PyCharm and you are on a Windows 10 machine use the following instructions:
Click on the Windows start menu and type cmd and click on the Command Prompt icon.
Use the command pushd to navigate to your PyCharm project which should be located in your user folder on the C:\ drive. Example: C:\Users\username\PycharmProjects\project name\venv\Scripts.
(If you are unsure go to the settings within PyCharm and navigate to the Python Interpreter settings. This should show you the file path for the interpreter that your project is using. Credit to Anthony Pham for instructions to navigate to interpreter settings.)
HINT: Use copy and paste in the command prompt to paste in the file path.
Use the command pip install pygame and the pip program will handle the rest for you.
Restart you Pycharm and you should now be able to import pygame
Hope this helps. I had a fun time trying to find out the correct way to get it installed, so hopefully this helps someone out in the future.
I just figured it out!
Put the .whl file in C:\Program Files\Anaconda3
While in the folder, click on the blue File tab in the upper left corner of the Window Explorer (assuming you're using Windows)
Click on Open Windows PowerShell as administrator
Write or just copy and paste: py -m pip install pygame
It should start installing
Done!
I hope it works for you. I know it did for me.
I already had pygame installed with python38-32
since its working just fine with it. I used this version of python us my project interpreter.
1.File -settings
2.according to your settings look for project interpreter
3.click on your current project interpreter and click on the add symbol
4.choose system interpreter
5.select the python version thats works with pygame for you
6.Note: some versions of pygame don't work with some versions of python be sure
of what are you doing.
7.hope it works.

How to run cmder from start menu

I have been vexed by what I felt should be an easy issue to solve. I have been trying to run the cmder executable from the start menu. But when I type the Cmder in the Run box, Cmder.exe does not show up in the list
But I can see from the cmd that Cmder.exe is present and when I run that exe in cmd , Cmder opens up.
Is there some reason that Cmder.exe does not appear in my start/run command?
Thanks in advance
The reason for this is that Cmder isn't installed like a typical Windows application.
The solution is to add Cmder to your computer's path. See Henrik Sommerfeld's blog post.
Additionally, if you're interested in learning more about what is being used for your searches, click the Filters button. See image below:
Instead of using the Start Menu, install Keypirinha. Then add the folder where you store Cmder and similar tools, to the Keypirinha and you can get rid of the Start Menu.
Keypirinha is faster and much more flexible than the Start Menu - e.g. let you pick the apps from somewhere on your machine.
I have a lot of XCopy-deployable tools like Cmder (and Keypirinha too) in an "Application" Git repository. If I have to provision a new developer machine with all the beloved developer tools, now the fast way is:
install Chocolatey
install Git Extensions via Chocolatey
clone my "Application" Git repository
This a done in less than 10 minutes and it covers 95% of my toolset.
To have CMDER on Windows Context Menu (right click) wherever you want.
Open a terminal as an Administrator
Navigate to the directory you have placed Cmder
Execute .\cmder.exe /REGISTER ALL
If you get a message "Access Denied" ensure you are executing the command in an Administrator prompt.
In a file explorer window right click in or on a directory to see "Cmder Here" in the context menu.
From: https://github.com/cmderdev/cmder#shortcut-to-open-cmder-in-a-chosen-folder
Tip: put the CMDER files in c:\Program Files\CMDER

Getting the targetdir variable must be provided when invoking this installer while installing python 3.5

I have Python 2.7 on my Window 7. Problem is with python 3.5 and 3.6 version only.
Hey just right click on exe file and run as a administrator.It worked for me :)
There are 2-3 ways to solve the issue:
As suggested above, Right-click on exe file and run as administrator.
Open command prompt in administrator mode.
Just take a note of where your setup file location is present.
Use cd C:\Users\ABC\Downloads
Type C:\>python-3.7.0.exe TargetDir=C:\Python37
Note: my setup file was python-3.7.0.exe
Follow the steps
3.Please try to do the custom installation and choose a clean folder location. In custom installation, we can tick or un-tick some option. Choose only 1/2 option which are required. Leave rest. Sometimes this troubleshoot step also help to install.
4.Go to properties of python Setup file. Go to advance setting and change the owner to administrator. Also go to compatibility and tick on "Run as administrator"
This worked for me.
Right Click on the setup file and Run as administrator

Add Sublime Text 2 to the right click context menu in Ubuntu 12.04

Title pretty much sums my question. I want to open a folder in sublime text by right clicking the folder and clicking on "open folder in sublime text" context menu. I am using Ubuntu 12.04
Assuming you followed guide on:
http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/
You simply need to add a %f to your Exec line in sublime.desktop like:
Exec=sublime %f
This is what I have managed to get Right click context menu for Sublime Text 3:
Using Nautilus-Actions Configuration Tool, either installed through Ubuntu software center with this link or through ubuntuupdates.org
This will allow you to create right click context menus and actions to your liking.
I have created such an extension:
Nautilus-Actions_XML_Schema
OR
Nautilus-Actions_Schema
For further information check out: blog.ndroidians.com
Right click -> open with other application -> show all applications -> open with sublime text
This guide worked form me on Ubuntu and Mint. http://www.technoreply.com/how-to-install-sublime-text-2-on-ubuntu-12-04-unity/
Make sure that you have copied the sublime .desktop file into the /usr/share/applications/ directory. That should work resolve this issue.
To open a folder in sublime from nemo by right clicking in the pane for that directory, go into the folder "usr/share/nemo/actions" as sudo and create the file "subl.nemo_action" and put the following contents into it:
[Nemo Action]
Name=Open folder in Sublime Text
Comment=Open current folder in Sublime Text
Icon-Name=subl
Selection=any
Extensions=any
EscapeSpaces=true
Exec=/bin/sh -c "cd %P && subl ."
Dependencies=subl;
I found this solution HERE, but had to change "subl3" to "subl" for my case, and had to find where to locate the file.

Resources