IIS7: What a change

In the next few weeks, I am required to use one of my most scariest server products I have used. IIS. I use to manage a small network that used IIS for hosting internal mail interface and other web based products our company used. Back then, we were running IIS6 on Server 2003 R2, and what a scary machine that was. IIS6 wasn’t very intuitive compared to other Microsoft server products at that time. When you needed to add a site or add a CGI extension, it always felt you had to hack it to get something to work and you never went back to it after it was working.

I was required to install it for a programming class and what a change. For someone that never had proper training on IIS, the new interface has defiantly been improved and is now very intuitive.

To install IIS7 was open Control Panel -> Programs and Features -> “Turn Windows feature on or off”. I checked the “Internet Information Service” in the list and that was it. Windows installed the service without needing the disks.

It was that easy to get the new web server up and running on my local development machine.

IIS7 Main screen
Browsed to http://localhost to make sure my new IIS server was running.

I remember spending hours in the server room trying to get PHP installed on the old IIS6 machine we were running. I thought, I wonder how easy it will be on IIS7? Turns out very easy! Microsoft now has an installation you can download that installs PHP 5.3.13 into your IIS.

A few things need to be done first. Make sure you have installed CGI. Windows does not do this by default.

CGI Installation
Be sure “CGI” is checked.

IIS is now ready for the PHP installation. Go to php.iis.net to download the executable. Once you have it download, run it and follow the on screen instruction.

That is it! You have now installed PHP on your IIS server. Create a phpinfo() file on the root of your web-server to make sure everything is working.

My phpinfo().

If you run into the error “Handler “PHP53_via_FastCGI” has a bad module “FastCgiModule” in its module list” it means CGI is not installed. Go back into Windows Features and check “CGI”.

Synergy with Ubuntu & Windows

Synergy let you share a single mouse and keyboard across multiple computers. In the following example, thewall is going to have our server and laptopnew is going to be our second computer. thewall, is to the right of laptopnew. thewall is also our linux box running Linux Mint (gnome). laptopnew is running Windows 7 x64.

First thing we need to do is install Synergy on our two machines. On the linux box run:

sudo aptitude install synergy

Next we need to install Synergy on our second computer. The version of Synergy in the Ubuntu repos is version 1.3 so we need to install that version. Click here for the download list.

Once you have it installed on both machines we need to create our configuration file. The following is an example of my configuration file.

gedit ~/.synergy

Configuration file:

section: screens
thewall:
laptopnew:
end

section: aliases
laptopnew:
192.168.1.24
end

section: links
thewall:
left = laptopnew
laptopnew:
right = thewall
end

section: options
screenSaverSync = false

end

For this to work correctly you must use the hostnames of both machines. Now we can open a terminal and run:

synergys

This will start the server; next we want to hit the start button on the client. You should now be able to move your mouse between the two computers! Synergy also allows you to copy and paste (text only) between the machines.

To get the synergy server to run on startup we can just add it to the gnome startup. Menu -> Preferences -> Start Up Applications.

The next time you reboot Synergy should start automatically. That concludes this tutorial, if you have any questions or comments please leave them below.

Mounting Windows Share using smbfs in Kubuntu

On my new Kubuntu box, I wanted to mount my “My Documents” folder that resides on a Windows Server 2003 R2 box. I have always had problems mounting folders due to the nature of Active Directory.

In KDE you can easily mount a share using the built in wizard, but I wanted to mount it as folder so I could access it using command line. First thing to do is install smbfs.

sudo aptitude install smbfs

Next thing we want to do here is make a folder to mount this remote location. I’m going to make it in the /media folder.

sudo mkdir "/media/My Documents"

The quotes are there to allow spaces in the directory name.

After that is this interesting line. If the share your connecting to  has any spaces in the name, you will need to put that option in quotes. Here is my complete line.

sudo mount -t smbfs -o username=blake,password=PASSWORDHERE "//server/UserData/blake/My Documents" "/media/My Documents"

I have made this into a script so I can easily run it when I need to connect.

I hope this has helped you getting your Linux box talking to your Active Directory protected share.

Mac vs PC

A battle that might never end between Mac and PC users. A battle that is won but no one on the PC side will admit it.

The battle between Mac and PC have been going on for years and years. This history behind Apple and Microsoft has always been to “out do” the other. Microsoft I hate to brake it to you… but you lost.

I recommended my second Mac out to a friend of myna who was getting a laptop to do her writing on. She got it in November and has never had a issue with it. My laptop is a little older but still has some good hardware in it. I run XP Pro hooked to my domain at home. Over the time she has had her nice running Mac, I have formatted my Windows based laptop 10 times. That’s right, 10 times. And not only just the formatting but I don’t think any peace of software has worked correctly on it. Even Miro couldn’t play video back with out horrid lag and being very choppy.

Every since the last format, it’s been acting really weird with the file sync to my home server but today was the day it finally died.

It’s funny because I sit here writing this and reading the slides during the XP Pro install.
“Music and entertainment just got better” This is a great line. I have always had issues playing 340kbps music files.
“Now it’s easier to get help — and to help others!” Yeah it’s easy if grandma can forward the ports through her router.
“The computer will be faster and more reliable” Lets just all take a minute and laugh.
“Get support for the latest hardware and software” It goes on about Direct X 9 after that. Does that mean Miro should have been able to play my shows?
“Surfing the Internet: safe, fast and flexible” If you use Firefox 😛
“Explore your creative side with photos and videos” but they can’t be to big or else explore will crash.
“Windows Movie Maker makes it easy and fun to capture, and edit video” Yeah right. If your trying to make a video slid show of picture, Windows will crash due to buffering issues.

So to sum up. Windows sucks. I’ll let you know how much better it is now that it’s formatted.

Edit: Ok I haven’t even posted this yet and I already have my first issue. USB stick with all my drivers on it won’t come up in My Computer… O look 5th times the charm!

Linux vs Windows

As most of you know I am fluent in both Windows and Linux. Yesterday in the #mybb IRC channel, tension was tight between us Linux people and the Windows fan boy Matt (owner of msubuntu who will be sued when the site is launched) A good friend of myn, DrPoodle had had it with Matt. So with the help of MiNT we started to produce a list of all the reasons why Linux was better then windows. For any of you Windows fan boys… eat this…

1) Linux is free.
2) Linux is faster (another IRC user, tmhai, was astounded earlier today at how his laptop booted in under 30 seconds with Ubuntu, compared to the 30 minutes it took Windows to boot on it).
3) Linux is Open Source (which means bugs and security holes are found and fixed quicker).
4) With Linux, you own your Operating System. With Microsoft Windows, you don’t actually “own” the Operating System, you simply have a license that says you can use it. Every installation of Windows is owned by Microsoft.
5) Linux has better support. This is debatable, but there are a lot of community forums out there, and usually errors in Linux are much more readable than Windows errors, which leads to quicker solutions.
6) Linux has package managers. Most distros come with some form of package manager, a utility that installs safe and secure programs, and then updates them automatically.
7) Linux has daily updates. Most distros release daily updates of core files, as well as updates for programs.
8) Linux has releases every 6 months. Most distros release their next version every 6 months without fail. So instead of waiting an uncertain amount of time for the next Windows release, you know exactly when the next version of your OS will be out.
.. To read all the reasons, click Here.

If any of you Windows people have anything that could possibly have a case against Linux. I ask you to sign up on my forums and post your reasoning.