musings, mumblings, and murmurs

Installing OS X Snow Leopard From a USB Drive

Just like with most other versions of OS X, 10.6 Snow Leopard can be installed from a USB drive which is especially beneficial if you're a Macbook Air user...

Before you start make sure that you have enough space , Leopard is just a shy over 6.2Gigs, and that your USB drive is bootable.

  1. Using DiskUtility select the USB drive
  2. Format it as Mac OS Extended (Journaled.) Give it a sensible name in case you need it later
  3. Still in Disk Utility, use the restore option with source = DVD and destination = USB drive
  4. Start the restore and wait. Should be less than 15 minutes
  5. Connect the USB drive to the MAC and reboot / boot it holding the option/alt key down until you see a list of available volumes.
  6. Select the USB volume and install.

Download the COMPLETE Development Environment for SharePoint Server 2010 Farm

Microsoft has released two Virtual Machine for demonstrating SharePoint 2010:

These virtual machines contain:
  1. Windows Server 2008 SP2 Standard Edition x64, running as an Active Directory Domain Controller for the "CONTOSO.COM" domain with DNS and WINS
  2. Microsoft SQL Server 2008 SP2 Enterprise Edition with Analysis, Notification, and Reporting Services
  3. Microsoft Office Communication Server 2007 R2
  4. Visual Studio 2010 Beta 2 Ultimate Edition
  5. Microsoft SharePoint Server 2010 Enterprise Edition Beta 2
  6. Microsoft Office Web Applications Beta 2
  7. FAST Search for SharePoint 2010 Beta 2
  8. Microsoft Project Server 2010 Beta 2
  9. Microsoft Office 2010 Beta 2
  10. Microsoft Office Communicator 2007 R2 Virtual machine
  11. Windows Server 2008 R2 Standard Evaluation Edition x64, joined to the "CONTOSO.COM" domain
  12. Microsoft Exchange Server 2010 Active directory has been preconfigured over 200 "demo" users with metadata in an organizational structure.


In order to run this demo you will need the following:
  • Windows Server 2008 R2 with the Hyper-V role enabled
  • Drive Formatting: NTFS
  • Processor: Intel VT or AMD-V capable
  • RAM: 8 GB or more recommended
  • Hard disk space required for install: 50 GB

SharePoint 2010: PowerShell New-SPConfigurationDatabase : The user does not exist or is not unique.

When running a PowerShell workaround to get SP2010 installed on a standalone Server 2008 R2 machine [here.] I came across a new error.

New-SPConfigurationDatabase : The user does not exist or is not unique. At line:1 char:28 + New-SPConfigurationDatabase <<<< + CategoryInfo : InvalidData: (Microsoft.Share...urationDatabase: SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase], SPCmdle tException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPCon figurationDatabase New-SPConfigurationDatabase : The user does not exist or is not unique. At line:1 char:28 + New-SPConfigurationDatabase <<<< + CategoryInfo : InvalidData: (Microsoft.Share...urationDatabase: SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase], COMExce ption + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPCon figurationDatabase

A fewposts I found out there seemed to be focused on the particular version of the Geneva Framework installed. That was not the root cause for me. The solution I got to work was to:
  1. Create a new local user "svc_sharepoint"
  2. Add it to the Administrators group
  3. Delete the Config and AdminContent databases via SQL Server Management Studio
  4. Reopen PowerShell and run New-SPConfigurationDatabase with the following
  • DatabaseName: SharePoint2010_Config
  • DatabaseServer: [SERVERNAME]
  • FarmCredentials [SERVERNAME\ACCOUNT]
  • PassPhrase: [PASSWORD]
Notes:
  • If anything fails close and reopen PowerShell
  • Use your servername in the FarmCrendtials section


jqPlot: jQuery plotting and charting

jqPlot is a plotting and charting plugin for the jQuery Javascript framework. jqPlot produces beautiful line, bar and pie charts with many features:
Numerous chart style options.
Date axes with customizable formatting.
Up to 9 Y axes.
Rotated axis text.
Automatic trend line computation.
Tooltips and data point highlighting.
Sensible defaults for ease of use.

http://www.jqplot.com/

Using PowerShell to see how many features are enabled in SharePoint 2010

Pretty simple...

$features = Get-SPFeatures -limit All | where-object {$_.Scope -eq 'Farm'}
$features.Count

Enabling anonymous access for a Web application in SharePoint Server 2010

Here's how to enable anonymous access for a Web application in SharePoint Server 2010.
  1. In Central Administration, go to the Security section.
  2. Under Anonymous Access, select Enable Anonymous.
  3. Click Save.
  4. Go to the site for the Web application you are working with.
  5. Select Site Actions.
  6. Select Site Permissions.
  7. On the ribbon, select Anonymous Access.
  8. Select either Entire Web Site or Lists and Libraries, depending on how you want to scope anonymous access for this site.

SharePoint 2010 Installation Error - The specified user is a local account. Local accounts should only be used in stand alone mode.

So, you're installing the beta (thanks for redefining that one Google...) and you're trying to do a complete installation on a single server using a non-domain account. (As most have done because we're using VirtualBox local VMs which are not connected to any domain...) All of a sudden, something most of us can do in our sleep with 2007 now suddenly gets complicated as it requires the use of domain accounts instead of local machine accounts.

Specifically you get something like this: SharePoint Products Configuration Wizard version 14.0.4514.1009. Copyright (C) Microsoft Corporation 2010. All rights reserved.
The specified user NNNNN is a local account.
Local accounts should only be used in stand alone mode.

Well don't fret as Windows PowerShell is your savior here, as New-SPConfigurationDatabase allows you to specify non domain credentials for the farm.

To execute this command launch the SharePoint 2010 management shell (in the same location as the central admin link), type the New-SPConfigurationDatabase and press enter. It will ask you for stuff such as the database name e.g. "SharePoint2010_Config", user, password etc. but overall is easy and interactive.

After it has completed you will find your brand new configuration database sitting next to an admin content database. (The fact that the GUID is existent almost feels like punishment.)

Just make sure you have SQL 2008 updated to at least CU2...

Note that often no matter how many CUs you apply to the RTM, if 2010 says it needs SP1, then it will continue to fail. You simply have to install up to SP1 (10.00.2531) and then install the SP1 CUs to roll forward the version to 10.00.2714. So you're really going to be looking to run SQLServer2008-KB975977-x64.exe


Build numbers are structured like:
  • 1xxx is RTM
  • 2xxx is SP1
  • 3xxx will be SP2
and so on.

Useful reading: http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx

Virtualbox: the 'correct' way to clone machines.

I recently had to clone a virtual machine and did my usual copy and paste. Not the best idea. Virtualbox, my preferred virtualization solution, definitely did not like that approach as each machine image has its own uuid which is stored in the actual image... The right way to do it is with the clonehd tool. That said, if the uuid is 'in' the file in theory it should be editable and when I have time I intend to test that theory out.

The actual steps to clone a machine on a windows (concept is the same for FreeBSD and OS X) host are as follows.

  1. Open a Command Prompt window on the host machine.
  2. Change to the VirtualBox VDI directory (you do know where your images are...? and you know what spindle contention is...?)
  3. Run the VBoxManage command with clonevdi command option. The following example shows the creation of a copy of Server_2008.vdi named Server_2008_Base.vdi.

"C:\Program Files\Sun\xVM VirtualBox\VBoxManage.exe" clonevdi "Server_2008.vdi"
"Server_2008_Base.vdi"

Which then produces a not very informative dialogue box...

VirtualBox Command Line Management Interface Version 2.0.4 (C) 2005-2008 Sun Microsystems, Inc. All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

And that's it.