- FI MUNI – Brno - Programovanie v C++
- Format: PDF, SlideShare
23. November 2011
Mintty – resizable terminal for Windows
Update 31.12. 2012: new version of Mintty (see discussion).
Cygwin is great tool for Windows.
E.g. You can create shell script to access windows share via //computer/share_name. This saves a lot of time when you’re domain admin and you need to maintain many computers.
The only BIG drawback of Cygwin for Windows was terminal window. When you work on Mac or Linux you can resize terminal window as you need. Terminal (CMD) for Windows sucks. In default installation you can resize just in one direction. The other option would be to mix Cygwin with PowerShell, but then many things are not working at all.
Good news! Great news! There is new terminal window in Cygwin 1.7.x. It’s application mintty.
Installer will create link to this app with name Cygwin Terminal. It will launch mintty process and you can resize window without problem.
It works fantastic! After so many yeaars it is now possible to use full power of Windows and Linux together in one bundle. (Yes, I know about other terminals like rxvt or X-based stuff, but it required always some extra steps).
Some computers were complaining that /Cygwin-Terminal.ico was not found and I was not able to launch terminal. Solution was easy. Right click on launcher icon and remove icon parameters from Target. The result target command should look like: C:\cygwin\bin\mintty.exe
Hooray! BIG thank you goes to authors of mintty for Windows.
Follow Mintty T.
14. November 2011
How to compare 2 or 3 directories on Windows
Sometimes you need to find out what is the difference between two or three directories.
This is quite easy task when you’re Linux user. You just start Kdiff3 and it’s done.
Good news! This incredibly worthy tool is available also for Windows.
Just download installer. Install application. Select two or three directories, invoke context menu by right click in file explorer and select KDiff3 – Compare.
29. August 2011
Managing LDAP with Apache Directory Studio
One of key downsides of LDAP in past was lack of cross-platform tools for managing directory structure.
Recently I found very good implementation of LDAP management tool based on Eclipse. It is Apache Directory Studio.
It is possible to connect it also to Microsoft Active Directory. Good work!
28. August 2011
Windows and Linux as one Desktop – Seamless mode
Sometimes it’s necessary to work with Linux and Windows in the same time. Switching between OS is not a big problem with VirtualBox.
VirtualBox has very neat feature – Seamless Mode. Just install Guest Additions into guest systems and you can turn on Seamless Mode from View menu:
Your desktop environment from Linux and Windows will merge in seamless way:

27. August 2011
Try to create aux.h file on Windows 7
Try it
I was playing with one package from Linux. I grab source code of package using Cygwin. This source code contained one funny file: aux.h.
Windows version of Vim refused to open this file with error message: Permission denied.
Even Notepad refused to open this file.
Finally Visual Studio gave me interesting hint about this aux.h file name:

I tried to zip this file by 7Zip and extract it back. Result was that 7Zip decompressed file as _aux.h.
Interesting issue.
ImageMagick is quite handy tool for batch image conversion from command line.
Let’s say that there are 50 photos in one directory. We want to fix orientation based on Exif info and shrink images to 50% of size. We can achieve it by this shell command:
for i in *.jpg; do convert -auto-orient "$i" -resize 50% "$i"; done
If you need version for Windows then I recommend installing Cygwin.
19. April 2011
AIR apps for BlackBerry tablets
Adobe Flash Platform was released for BlackBerry tablets.
You can download BlackBerry emulator, SDK and further useful stuff from BlackBerry web site.
Supported systems are Linux, Mac and Windows.
9. April 2011
UNetbootin – quick way how to create bootable USB
Imagine situation: Boot procedure on Linux server is broken. You have SystemRescueCD, but CD-ROM is not working. You have notebook with Windows and USB key.
How to fix that server?
We can use USB key!
It’s quite tricky to create bootable Linux key from Windows. It requires several steps… It’s hard.
No, it’s quite easy! Just download simple tool UNetbootin and create bootable USB in few steps.
UNetbootin provides several Linux distributions. My choice was ISO image of Debian Live, because it’s quite small and it has support for XFS and other useful stuff.
Note: SystemRescueCD 2.0 ISO is not booting correctly.










