Tag Archives: sharepoint

Ubuntu Server + VMWare Workstation

0/ Have your own virtual machine in your desktop is not hard!

0.1/ Some Terminology

  • OS – Operating System
  • Host OS – Underlying OS – in this you install VMWare Workstation.
  • Host needs to be stared for the guest to be able to start.
  • Guest OS – The extra OS you install inside the host or in VMWare Workstation.
  • VM – Virtual machine.

1/ Pre-install

1.1/ Storage space, memory, CPU

What do you want to do?
Do you have enough of it?
My desktop has an Intel i7-920, 8GB RAM and two 500GB hard drives.
Generally when testing I would give it 1GB or maybe 2GB for Windows. This can be decreased later if you feel the need.
You can also increase storage, memory and CPU after you create your virtual machine.
It is easy to create a new virtual machine so do not worry if you make it too small or too big.

1.2/ Network setup, LAN, Bridged, Hidden.

Do you want to be able to access your VM from your LAN, Internet or do you want a completely private network between your virtual machines?

Especially if you do set up a Windows guest OS (perhaps to use as a client in your test environment) please do remember that before you connect it to the Internet (to install patches etc) you should definitely think about installing an anti-virus solution on it.
I recommend Microsoft Security Essentials (MSE) – it is free and takes up little resources.
I read recently that the time you have until your unprotected computer is infected is about 10 seconds. But if your computer is behind a NAT – broadband router (so it has an IP like 192.168.x.x or 10.x.x.x or 172.16.x.x.x) then it is safer, but not safe from other computers on your network.

2/ Install the OS

2.2/ Download Ubuntu, easy setup wizard

There are two versions of Ubuntu – desktop and server version. If this is your first time with Linux you may be better of starting with the desktop variant. I used the server version (uses less resources – no graphical user interface).

Here is a guide for using the Ubuntu Virtual Kernel with VMWare Workstation.

2.3/ Windows 2008 R2?

sharepoint-2010-foundation-windows-2008-r2-vmware-workstation

3/ Set up management

3.1/ sshd – autostart if you reboot host OS / Windows.

I haven’t managed to set up autostart of the VM when rebooting the OS.
But then again, I do not run “life-critical” services in the virtual machine, just some cheap bash-script and an EyeOS. Not sure if I want to have it autostart, I like to have a fast reboot.

3.2/ Timezone, time.

Quite frustrating, but here is how it worked out in Linux: time-sync-for-linux-vms-in-vmware-workstation

4/ Post-Installation Joy

4.1/ Something simple like screen + irssi

This is really easy to set up.
Basically all you need to do is install these in a Debian style Linux (like Ubuntu):

sudo-apt get screen irssi openssh-server

then start a screen session called chat and the command ‘irssi’

screen -S chat irssi

It then starts irssi in a screen.
You can hit CTRL+A+D (or, CTRL+A D also works) to detach it and get back to the terminal. You can then close the terminal / log off from the server. Next time you log on you can just type:

screen -rdx chat

Irssi is my IRC tool of choice, it’s slim and well, I’ve gotten used to it. It has scripts and you can do encryption and lots of nice little things with it if you want to.

Of course the screen does not resume when you restart the whole server / virtual machine.

4.2 Other ideas:

Red Hat Enterprise Linux in VMWare Workstation.
How small VM can you have for just IRSSI?
File share from Windows to Ubuntu in a VM.
EyeOS – OS in your web browser.


Sharepoint – Part 3

The previous posts:
Part 1 – installing Sharepoint 2010 Foundation.
Part 2 – basic features in the web interface.

I said I was going to look into the RSS updates, how to manually edit the database and look into the underlying structure of the Sharepoint. But, only went through the last of the obvious administration tools :p

Other management tools

Under the start menu there are three new programs:

Central Administration –

This opens a page to http://win2k8:48820/default.aspx – I could log on with my extra account (the one with admin/owner privileges).

The sections are:

Application Management

Manage web apps, create site collections, service apps, content databases.

Under Manage Web apps there are some nice stuff you can change on each site. Select the site you want to work on and click on “General Settings”.

The central admin is it’s own site so by default there are two and the changes you make on one does not replicate over to the other one.
For example you can set timezone, resource throttling, outgoing e-mail, workflow, enable/disable some features.

In the bar on the top there is the possibility to change policy settings.

Back one step to App Management there is the possibility to add more databases and database servers.

System Settings

Manage farms and alternate access mappings.
Like adding features and solutions, change outgoing e-mail settings (notifications)

Backup and Restore

What ^^ says.
“To recover the data, use the PowerShell restore command Restore-SPSite.”

Monitoring

Review problems and solutions, check job status.

Security

manage farm admin group and configure service accounts

also you can specify anti-virus settings, block file types, and self-service site creation

Upgrade and Migration

check product, patch and upgrade status
for example you can see what versions you have installed:
I have:

Microsoft SharePoint Foundation 2010  – 14.0.4763.1000
Microsoft SharePoint Foundation 2010 1033 Lang Pack – 14.0.4763.1000
Microsoft SharePoint Foundation 2010 Core – 14.0.4763.1000

General Application Settings

configure send to connections, convert document settings, report services,

Configuration Wizards

none by default

Management Shell

This did not work, gave me this error: “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”

Sharepoint 2010 Foundation – Part 2

Overview

See the installation guide which I published recently.

This article is a brief look what to do in Sharepoint after it has been installed!

Accounts

I don’t want to log on with the built-in Administrator account anymore.
Still no AD services installed.
Created a new standard account with no password – could not log on.
Logged on with account and set a password – could log on but

Error: Access Denied

In computer management there are three new groups:
WSS_ADMIN_WPG – write access to “system resources” for Sharepoint Foundation
WSS_WPG – read access to “system resources” for Sharepoint Foundation
Added my new user to both – did not work. Neither did if it’s in “administrators” group.
Then in side the web page, up in the left corner there is something called “site actions”.
Added my new user as a member/contributor” and whoopsie now it can log in!
This account can however not see all the actions under “site actions”.
So put it in the “owner” group – and now the account can see most of the settings.

– Now over to the fun stuff! All the things we can do inside the Sharepoint.

Site Administration

Set locale, RSS (niice! don’t think google reader will work for me), search/indexing (presuming robot.txt stuff), workflow(maybe authoring – reviews etc of documents?)

Site Features

You can create pages (wiki – so Sharepoint is like a wiki as well, never saw that part when I’ve used it before, I’ve only used it to upload documents :) – anyway – nice).
Calendar, lists, discussions, share documents (libraries), tasks, announcements, links, surveys, subsites and workspaces.

Change home page.

Apparently some stuff requires me to install another Software – Sharepoint Designer. Free.

Anyway, you cannot go into pages and then click on Home to edit the front page.
To edit the home page: go to the Home Page click on -> site actions and then Edit Page.

In there it feels free, you can add pictures, write things, change font, size, color, etc and you can drag things around.

Galleries

Here you can make fancy changes to what appears to be relatively complicated things such as defining content types, columns, templates, themes, master pages (default?) and dom-dom-dom Solutions.

Looksie Feelsie

Here you can change name of sharepoint, customize the menu on the left or on the top (top appears to only be able to give URL:s)

Stay tuned, there will be more things coming about Sharepoint!
I will look into the RSS updates, how to manually edit the database and look into the underlying structure of the Sharepoint.

Sharepoint 2010 Foundation + Windows 2008 R2 + VMWare Workstation

Overview

I just write down notes from the installation.
But intended as a guide for how to set up your own sharepoint lab.

Guides and Documentation

Sharepoint server on technet: http://technet.microsoft.com/en-us/library/cc303422.aspx

SQL Server 2008 R2 and Sharepoint 2010 server I downloaded the trial from Microsoft.

Terminology

VM – Virtual Machine
Host OS – I installed VMWare Workstation on my home desktop, so the Host OS will in my case be Windows 7 as that’s what’s installed on it.
Guest OS – On this host OS I have installed Windows 2008 R2 – this will be running inside VMWare Workstation.
NAT – Network Address Translation

Installation

  1. Install VMWare Workstation
  2. Install Windows 2008 R2
  3. Install a client – Windows 7 x64 – or connect from the host os.
  4. Install SQL Server 2008 R2
  5. Install Sharepoint

Windows 2008 R2

Easy Setup may not be the best choice -> when I did it took the timezone I was in and decided that Ukrainian would be a good language.

In the beginning it’s probably best to have the VMs connected to the Internet (so you can apply patches) – setting is called NAT when setting up the VM. I chose 2GB RAM and 40GB disk space (guide says 4GB RAM and 80GB disk).

The password/account you specify needs to meet the Windows 2008 password requirements.

Install patches
Set up remote desktop – so you can connect from your host and connect your host OS local disk drive to the guest OS – good way to share files between them.

I did not read the documentation or find a good step-by-step, figured I would try it out without any of that – this way I would learn better.

Initial Roles

Figured that a domain would be good to start with.

Select AD Domain Services and install. This installed .net 3.5.1 and then asked me to run dcpromo.

DCpromo – new forest – fqdn: guldmyr.lan – forest functional level: 2008 R2. Then it examines DNS configuration, takes forever, probably because I don’t have a DNS server installed. A while later it asks if you want to install the DNS server. Which recommends having a static IP. Changed ip to 192.168.232.10. Then it asks something about delegation, went to next and there you see a summary – with install DNS selected. That went without a hitch. Restarting. You get to set a special AD password as well. Reboot.

To test that the AD was probably installed – you now can either install a new VM with a client to try to log on. Or you can use the remote desktop and authenticate with a domain account. Also a “ping win2k8” or “ping guldmyr.com” showed that dns might be working as well. After the reboot the DNS server in the ipv4 configuration was changed to localhost – 127.0.0.1.

This worked for me with only the above steps – pretty easy!

When I open server manager there are some errors but none seems to awful. There are best practices you can run to improve things / harden the setup – but this is not so important at the moment – I just want to get a sharepoint server up and running.

SQL Server 2008 R2

Installing this package: SQLFULL_ia64_ENU of 1.4GB.
This extracts everything inside and takes roughly 2GB of space.
Turns out the IA64 does not work on an x64 system.
So then I tried to download SQL Express 2008 R2 instead, and it’s free and only 250MB!
http://www.microsoft.com/express/Database/

Let’s see how this goes :)
Installing this package: SQLEXPRWT_x64_ENU of 250MB

New installation, accept, chose default settings in regards to directories and what to install, named instance – default settings,  Create an account – I named it SQL – click on browse to select it – format is GULDMYR\SQL. Then you get to specify SQL Server Admins. After that it’s installing. Completed without any hitches. Pathces. Reboot.

SQL Server Management Studio – could not connect.

Uninstalling SQL Server 2008 R2. Selected the R2 x64. That took care of most. ALso ENU and native client I uninstalled. Because in the hardware/software requirements this is mentioned Preparation Tool installs “SQL Server 2008 Express with SP1”

Sharepoint Server 2010

Couldn’t install –  error: “installation of this package failed”
Couldn’t extract the file either – broken download. Re-downloaded.

OK, this extracted.
Now it says that the language is not supported.
Stupid Ukrainian.
Reinstalling Win2k8

Reinstalled win2k8 – chose “install OS later” to get rid of the auto-install.
Also changed RAM to 3GB and disk to 40GB (it doesn’t use space until it’s used).

Now all is in English!

Did not install AD services this time.
Did not configure a second account, doing the install with the Administrator account.

Downloading Sharepoint 2010 Foundation instead of the server version.

Selected “install software pre-requisities”.
This installed lots of stuff successfully. Reboot. Install continues afterwards.
Ran installation file again, chose standalone setup. Completed OK.
Then a wizard runs. Completed.

Opens http://win2k8/ – log on with administrator

And now we got a sharepoint!

Summary

With the Foundation version there are a minimal amount of settings to configure when following the wizards. No choice in terms of storage, sql server, accounts. Just click-click-click!

Total size of the VM after all this is 13.6GB (14 661 324 079 bytes).

  1. Install Windows 2008 R2
  2. Patch it.
  3. Run Sharepoint 2010 Foundation pre-requisities install
  4. Run Sharepoint 2010 Foundation install
  5. Point your web browser to http://localhost or http://servername. OR http://ip (this will work from the host os).

Next post will be about what to do inside sharepoint!