Setting up Cygwin

There are several reason why I am  making this post because I have several programs that need Cygwin in order to run.You only need minimum install for my programs. What is Cygwin can be answered at Cygwin Website. Basically Cygwin  gives you some basic Linux commands at your fingertip and will make your Windows machine more productive.  I will include instructions for setting up Cygwin on D: drive from scratch using Windows 7 and make a partition for Cygwin assuming there is just a C: Drive.The first two steps can be found online by googleing or clicking on the Click Here link.

Step 1.) Defrag your hard drive.Click Here

Step 2.)Make a system image of Windows 7Click Here

I recommend putting Windows 7 system image on a USB Hard Drive.  After you have both steps above done start making a partition by shrinking your C: drive. This is not for beginners I assume you know Windows 7 well.Goto Control Panel->System and Security then under Administrator Tool click on “Create and format hard disk partitions”:


You should see something like this :


Now right click on your C: drive and click on Shrink Volume…

This will take a little while depending on the size of your drive.

This is where my numbers will be different then yours. You will get a dialog like this depending what size you want you need enough room for Cygwin. Change the shrink amount to 9000 this will equal 9 Gig it will give you plenty of room for Cygwin and any files you like to store there. One note this dialog shows 60632 make sure you enter 9000 only. If you don’t want 9 Gig then you need at least minimum of 900 which is in MB already enter 900 in dialog then hit Shrink.

If everything went OK you’ll get the following :

Now right click on Unallocated amount and click on New Simple Volume and you get this dialog.

Click Next

Click Next then assign a drive letter(default should be fine).

Format Drive:

Your Done


Now goto Cygwin Website and download the latest setup.exe and copy to the new drive you just set up. Cygwin setup is fairly easy but I’ll post images for each steps. I suggest installing openssh because I ssh into my box to get files. You can skip this step when when I get there. With Dropbox and SkyDive you can get files on all your devices so I think shelling into a box is becoming obsolete. Lets start installing Cygwin now.

Click on setup.exe :

Click Next

Install on new drive you setup for Cygwin I am using D:

Click Next

Leave on D:\

Click Next

Pick out where to download Cygwin (pick a ftp) click Next

First time message Hit OK

This is where you add package if you want openssh follow next screen.

Enter ssh in search under net Net make sure openssh is selected. I will have a post setting up ssh and WinSCP.

Click Next and your done it will ask to install shortcut on Desktop after its done installing packages.

Setup sSMTP on Mint Linux

How To Setup Email Alerts on Mint Linux Using sSMTP

Here’s how to setup mail and ssmtp to send alerts to your gmail account.

This technique is meant for your Linux box sitting in your house acting as a home server. In fact, since many home ISPs block regular outbound email, you might find this technique a great way to ensure you still get administration emails, even from your home servers.


Configuring the Email sending ability for a machine immediately gives us the upshot that a lot of the system’s administration problems and critical alerts will be automatically sent to that system’s designated administrator. The most noteworthy example is that cron job execution errors fall into this category and therefore will notify the admin that there was a problem with scheduled jobs such as backups as soon as they happen including the standard error (stderr) output in the report. We will also be able to incorporate emailing from bash scripts.

Don’t worry—it usually doesn’t spam you with too much information and you can just de-configure it if it becomes to annoying.

On Debian based systems, other then a lot of very versatile emailing related programs there is also the ssmtp package, which is well suited if all you want to do is have an agent to send emails using another email server (MTA), without having to setup an entire postfix or sendmail configuration to do so.

Prerequisites and assumptions

Before we get started, you’ll want to make sure that all of these conditions are met:

  • You have an SMTP server that can receive the emails from your machines and send them to the recipient (i.e. your corporate exchange or Gmail).
  • You have the credentials for a user that is able to send Email on that server (i.e. a mailbox or a Gmail account).
  • This procedure has been used and tested on Mint.
  • You will see me use gedit as the editor program, this is just because I’m used to it… you may use any other editor that you’d like.


To install the ssmtp (Simple S.M.T.P) package, use the following command:

sudo apt-get install ssmtp

Now edit config file:

sudo gedit /etc/ssmtp/ssmtp.conf

Config ssmtp.conf file for sSMTP

# Config file for sSmtp
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.

# MX records are consulted. Commonly mailhosts are named
AuthUser=Gmail username
AuthPass=Gmail password

#For TLS and SSL

# Where will the mail seem to come from?

# The full hostname

# Are users allowed to set their own From:?
# YES - Allow the user to specify their own From:
# NO - Use the system generated From: address

Now edit a new config file:

sudo gedit /etc/ssmtp/revaliases

Insert       // note:  $ whoami      # gives user

Confirming setup


sudo apt-get install mailutils

Now you can test something like this.

sudo df -h | mail -s "Disk Info"

If all goes well, you should be getting the Email in a couple of seconds.

To troubleshoot start with checking your mail log.

sudo tail -f /var/log/mail.log

Setup Sendmail Wamp Server

Download fake sendmail from Here then follow these instructions Here. One note this gave me an error at first but just edit your php.ini at the end of file just add sendmail_path = “C:\wamp\sendmail\sendmail.exe -t -i” and smtp_port = 465. I had to add smtp_port = 465 or it defaulted to port 25 and didn’t work.

Working on CMDCenter

Here is CMDCenter as it stands now. I found out running as Administrator with no restrictions make this utility a very powerful tool. I will check into making a user with Administrator rights. I found myself having to make provisions to prevent writing to c: drive and it was becoming overwhelming at times. Running as Administrator gives full control and overall a more useful utility.

Switching over Today

I am switching today to new web site because I still can’t get an image to show up in my  old blog. I am changing name from Putnam Computer to Small Program Design because I want my blog subjects to be about my programs.