Tuesday, January 22, 2013

It's Cygwin

What is and why Cygwin,


Cygwin is a set of powerful tools to assist developers in migrating applications from UNIX/Linux to the Microsoft Windows platform. Cygwin delivers the open source standard Red Hat GNU gcc compiler and gdb debugger on Windows.

With Cygwin, administrators can login remotely to any PC, fix problems within a Posix/Linux/UNIX shell on any Windows machine, and run shell command scripts.

Installation

 

For this tutorial, I will use Red Hat Cygwin and install it on Windows XP SP3.
Red Hat Cygwin is supported on Windows 2000, XP, 2003 Server, Vista, 2008 Server, 7, and 2008 Server R2. Cygwin is a 32 bit platform that will operate on both 32 and 64 bit Windows installations.

1) Download the installer
ftp://ftp.ges.redhat.com/private/releng/cygwin-1.8/rhsetup.exe

2) run the setup file (rhsetup.exe)







 






















































































Similar to installing package in Linux, dependencies are resolved.













This shall give you enough time for a coffee break.










There it is, installation complete.














3) Using cygwin

There are many tools or application you can use, what I want to show is how to bring x application on Linux to your windows desktop.


You will find the cygwin terminal shortcut on the desktop, depending on what application you chose earlier, the linux program are ready to use e.g ssh









We first run the X Win Server, find it in the Windows start menu.

Showing is the xclock.












A connection using ssh -X to a Linux host.














Its gedit, lets write something and save.

You may call other GUI program as well.











That are some of what cygwin can do.

Saturday, January 19, 2013

11 Bizarre Things People Say About Linux


Well, it has been so many years Linux co-exist with other OS but misunderstanding is still there.


1. There is no anti-virus software in Linux
2. Linux always crashes.
3. Surely I cannot run any application on a Linux server?
4. What about the future?
5. Isn’t it easy to hack a Linux box with a root account?
6. Linux does not connect to my MS Windows machines.
7. Where does Linux leave UNIX?
8. Linux is not configurable or adaptable.
9. Linux isn’t international.
10. There is no commercial support for Linux servers and related software.

More details:

linuxit.com - flash format
linuxit.com - html

Thursday, January 17, 2013

DNS record, query returns different result.

Scenario:

Names resolution not consistence

A friend of mine complaining that the link to his company web app sometime working and sometime not.

Details:

http://myapp.hiscompany.com (accessible)

After few minutes / from other PC/host

http://myapp.hiscompany.com (page not found)

Resolutions:

Figure out whether DNS query such return consistence result. Using host and dig command from Linux and nslookup from Windows machine return no result.

Using web based lookup http://zoneedit.com/lookup.html returns result.

Nailing down by querying directly from hiscompany DNS server. The first server (ns1.hiscompany.com) resides within the company network while the second server (ns2.hiscompany.com) hosted at ISP.

Querying on first DNS server return result while not on the second server.
The record is not sync on both servers. It should by default the records are synced by zone transfer facility if using BIND in Linux.

Fact: 
DNS servers retrieve information from other DNS.