Blog

Try It!

Williams, JasonĀ 5:40 PM
Is it lazy that I just pressed Fn-Space instead of getting off the sofa to turn on a light?

McCallum, JaniceĀ 5:40 PM
What does that do?

Williams, JasonĀ 5:41 PM
Turns on a light.

Try it!

McCallum, JaniceĀ 5:41 PM
AMAZEBALLS

It is not lazy – it is awesome.

Williams, JasonĀ 5:41 PM
Ctrl-Alt-DownArrow makes it brighter.

McCallum, JaniceĀ 5:41 PM
Nice try

Shrapnel

Asian Cwgrl

Is there such a thing as #FollowFriday on tumblr?

I hope not, because it’s Thursday but I’m nevertheless going to tell you that you should be following Asian Cwgrl (her spelling, not mine)

šŸ˜‰

Blog

Installing SharePoint Foundation in a VirtualBox Virtual Machine

For a while now I’ve been vaguely threatening to write a post or two about my work with SharePoint, but so far I havenā€™t actually managed to get around to it.

The reason is essentially simple: SharePoint is a huge tool my company makes available to me, and everybody else that works there. They installed and maintain it on their servers, and I am but a lowly user.

Thatā€™s fine. The whole point of the development work I do on top of SharePoint is that anybody could do it. I donā€™t need any special admin rights and I donā€™t need to get the technical guys involved. The problem is that when it comes to blogging about my work on SharePoint, all my work is on my companyā€™s internal intranet. If I wanted a SharePoint site for testing purposes Iā€™d have to put a request in and I’m not sure it would be approved, I donā€™t want to build test things on an existing site, and I certainly donā€™t want to risk accidentally revealing some proprietary information in a screenshot or something.

So, I’m going to install my own copy of SharePoint in a virtual machine and take you through it in this blog post.

Wait, what? Why?

SharePoint server is a big, enterprise-grade tool that powers intranet and internet sites across the world. Why would I want to install it at home? Well aside from using it to blog about my work, I plan on using it to help me work.

When I develop new SharePoint tools for my job I keep then hidden at the start. Itā€™s kind of a security-through-obscurity type deal, and even though I’m typically developing on a live site your average SharePoint user wonā€™t find what youā€™re working on if there isn’t a link to it on their screen. This is great when youā€™re launching new things, but if you want to update a tool thatā€™s already been rolled out and is in use it presents some challenges. What do you do in this situation? The choices are either to create an entirely new version of the tool and possibly a duplicate of the data that powers it, or just bite the bullet and make changes to the live production code. Iā€™d rather have my own sandbox environment I can play in without fear of breaking something.

Isn’t SharePoint server expensive?

Yes. But also no! Thereā€™s a version calledĀ SharePoint FoundationĀ that Microsoft makes available for free, and itā€™s perfect for our needs. Itā€™s designed to run on Windows Server 2008 or 2012, but it can also be installed on 64-bit versions of Vista or Windows 7, which is what I’m going to do.

Why a virtual machine?

To setup SharePoint server you do need to install some pre-requisites and change some operating system options, and I donā€™t want to do that on my desktop computer.

OK, I’m in. Letā€™s go!

Great!

Start by downloading and installing some virtualization software. My environment of choice isĀ VirtualBoxĀ so thatā€™s what I’m going to be using. If you donā€™t have an existing preference for something else, then Iā€™d recommend you do the same.

Creating the VirtualBox VM

  1. Open VirtualBox and hit theĀ newĀ button in the top left
  2. Give your virtual machine a name, select the correct OS type (Microsoft Windows) and version (Windows 7 64 Bit), and hitĀ next.
    image
  3. Set the VMā€™s memory size. Microsoft says SharePoint foundation requires 4gb of RAM. In a bold decision that may come back to bite me later on, I’m going to give it 1gb.
    image
  4. Complete the remainder of the VM provisioning with the default options. Youā€™ll end up with a 25gb virtual hard drive, but itā€™s dynamically sized so it wonā€™t take up 25gb of your real-life hard drive.
  5. Your now back to the main VirtualBox window, and your virtual machine has been created ā€“ but is empty.Ā  Itā€™s time to install Windows 7. Right-click your new virtual machine at the left of the VirtualBox window, go to the storage tab, select the DVD drive and click the little disc icon on the far-right of the window to point the virtual drive to the Windows 7 install media. This could be a physical disc in your drive, or an ISO disc image.
    image
  6. Back at the main VirtualBox window, hit theĀ startĀ button up top. The virtual machine will open, and the windows install will begin. Iā€™m not going to take you through all the install steps, but itā€™s no different to installing Windows 7 on a real computer. When you create a user you can call it whatever you want, but you must set a password.
    image

Installing prerequisites and configuring windows

image

Now that we have Windows 7 installed and running in our virtual machine, itā€™s time to install a few prerequisites before we dive into installing SharePoint itself.

If you’ve already downloaded SharePoint Foundation then you may have noticed it includes an option entitledĀ Install Prerequisites. Bad news ā€“ this only works on Windows Server and not Windows 7 or Vista, so you have some work to do.

Youā€™ll need to download and install:

Next, we need to set a few options in the operating system. Open upĀ control panelĀ and go toĀ Turn Windows features on or off.

Here are the options weā€™re going to set:
image
image

Time to install SharePoint

Finally, weā€™re ready!

  1. If you havenā€™t done so already, downloadĀ SharePoint Foundation 2010Ā from Microsoftā€™s website. Make sure you save the file rather than running it, becauseā€¦
  2. ā€¦running it doesn’t work. As I noted, SharePoint is designed to be a server application available to large groups of people, and it requires Windows Server as a result. Except it doesn’t. Read on.
    image
  3. What we need to do is manually unpack the installation file, and change a setting before we can install.
    1. Move the downloaded file into a folder somewhere (on your desktop is fine), open a command prompt, and navigate to that folder.
    2. Type the following command, and extract the files from the archive into the same folder
      SharePoint_SP2_en-us /extract

      image

    3. The installation files are now extracted into the folder. Navigate to the FilesSetup folder. Thereā€™s a file in there called config.xml. Open this with a text editor (notepad is fine)
    4. Inside the <Configuration> tag, paste the following line:
      <Setting id=ā€AllowWindowsClientInstallā€ Value=ā€Trueā€ />

      Save and close the file, and navigate back to the root of the folder you created.

  4. Run setup.exe by double-clicking, and weā€™re pretty much good to go! When asked to choose the installation you want, make sure you selectĀ Standalone
    image

It may take a while, but if you’ve followed all the steps correctly, SharePoint Foundation 2010 will now install correctly. The final step of the installation is a configuration wizard. Donā€™t skip this step! Despite its name there are no options you need to select, but you do need to make sure that you run it. It will set everything up for you, and weā€™re done! When the configuration wizard is complete it will open the site automatically. You may need to log in with your windows username and password.

imageĀ  Ā