Team Foundation Server 2005 (Chs) Setup Step by Step

yuzhangqi發表於2010-05-27

In my recent project,I use Team Foundation Server as source control and project management tool. It is the first time I have a chance to touch TFS, and it has taken me nearly a week time to setup and config it successfully. It is really not a simple job to setup TFS if you are newer to it.

I would like to share my expierence with you, I hope it can give you helps and save your time.

Goal

I'd like to adapt Team Foundation Server Single-Server Deployment.

Hardware Requirements

Processor : 2.2 GHz Pentium IV or Athlon
RAM: 2 GB
Hard Disk: 30 GB of available space

Software Requirements
Server Softwre
Microsoft Windows Server 2003 Enterprise Edition plus Service Pack 2.
Microsoft SQL Server 2005 Enterprise Edition plus Service Pack 3.
Windows SharePoint Services 2.0 plus Service Pack 2.
Windows SharePoint Services language pack.
Client Software
Microsoft Office Excel 2003 with .NET Programmability Support.
Microsoft Office Project Professional 2003 with .NET Programmability Support.

Setup Process

1. Install Windows Server 2003 Enterprise Edition,and use Windows Update to install the newest Service Pack.

2. Create the user accounts required for TFS setup.

The user account requirements depend on the deployment model: single-server or dual-server.
In a single-server deployment, you have the option of using Active Directory domain user accounts or local user accounts.
Because my server is in workgroup mode, I create 3 local user accounts.

TFSSETUP :
Used to run Team Foundation Server Setup.
This account must be an administrator on Team Foundation Server computers.
This account must be a member of the same domain as the following two service accounts. For example, you cannot have the two service accounts on a domain and then use a local account to run setup.

TFSSERVICE:
Used as the service account by Team Foundation Server Windows services (Code Coverage Analysis Service and TFSSchedulerService), and the SharePoint Timer Service.
Used as the application pool identity by the Team Foundation Server application pool (VSTF AppPool), and the Windows SharePoint Services application pools (TFWSS and WSS_AppPool).
Must have the Log on locally permission on Team Foundation Server computers.
For optimal security, this service account:
Should not be an administrator on Team Foundation Server computers.
Should have the option Account is sensitive and cannot be delegated selected for Active Directory on the domain.

TFSREPORTS:
Used as the service account by SQL Server Reporting Services data sources.
This account should not be an administrator on Team Foundation Server computers.
This account must have the Log on locally permission on Team Foundation Server computers.

3. Install Internet Information Services (IIS) 6.0. Enable ASP.NET and restart the computer(Start Menu --&gt Control Panel --&gt Add or Remove Programs --&gt Add or Remove Windows Components).
Make sure you do NOT install FrontPage Server 2002 Extensions.

4. Install Microsoft SQL Server 2005 Standard or Enterprise Edition as the default instance of SQL Server (MSSQLSERVER) on this computer. Use local system for the service account.

On the Components to Install page, select the following components and then click Advanced, chose the following components:
SQL Server Database Services
Analysis Services
Reporting Services
Integration Services
Workstation components, Books Online, and development tools.

On the Service Account page, select Use the built-in System account and from the list select Local system. In Start services at the end of setup, select all services: SQL Server, SQL Server Agent, Analysis Services, Reporting Services, and SQL Browser.
Note:
1)You must install Internet Information Services (IIS) 6.0 before installing Microsoft SQL Server 2005.
Notification Services are not required by Team Foundation Server.
2)Windows Authentication Mode is preferred, but you can use username/password mode.

5. Verify your Microsoft SQL Server 2005 installation.

To verify that the services are running:
From the Start menu, click All Program, click Microsoft SQL Server 2005, click Configuration Tools, and then click SQL Server Configuration Manager.Select SQL Server 2005 Services and verify that each service has a green arrow which indicates that the service is running.
Select SQL Server 2005 Network Configuration, click Protocols for MSSQLServer, and then verify that TCP/IP is enabled.

To verify a connection to the server:

From the Start menu, click All Program, click Microsoft SQL Server 2005, and then click SQL Server Management Studio.
In the Connect to Server dialog box, select Database Engine in Server type, type the name of the server to which you want to connect, and then click Connect.
In Object Explorer, verify that a green arrow appears next to the server name.
Note:
After SQL Server is installed successfully, Do not run the Reporting Services Configuration Tool at this point.

6. Install SQL Server 2005 Service Pack 3 (I use SQLServer2005SP3-KB955706-x86-CHS.exe), then restart the computer.

7. Install Windows SharePoint Services with Service Pack 2 for use with Team Foundation Server, then restart the computer.

On the Type of Installation page, select Server Farm, and then click Next.
You must install Windows SharePoint Services by using the Server Farm option. This configures Windows SharePoint Services to use a remote SQL Server. Later, Team Foundation Server Setup will configure Windows SharePoint Services to use the same SQL Server instance as the rest of Team Foundation Server.
When the installation is complete, a Web browser window opens and displays the Configure Administrative Virtual Server page. Do not make any changes on the page that appears. Later, Team Foundation Server Setup will configure Windows SharePoint Services to use the same instance of SQL Server as the rest of Team Foundation Server.

8. Install the Windows SharePoint Services language pack.

Before installing Team Foundation Server on a localized version of Windows SharePoint Services, you must first install the Windows SharePoint Services language pack that matches the Team Foundation Server language you are going to install. For example, you must install the English Windows SharePoint Services language pack before you install the English version of Team Foundation Server.

9. Verify that the appropriate ports are open.

Required Ports for SQL Server 2005 Microsoft SQL Server 2005 (Developer, Standard, or Enterprise Edition) uses the following TCP ports.
Service or Application Context / TCP Port

SQL Server Reporting Service: 80
SQL Service: 1433
SQL Browser Service: 1434
SQL Monitoring: 1444
SQL Server Analysis Service Redirector: 2382
SQL Server Analysis Service: 2383

Required Ports for Windows SharePoint Services Windows SharePoint Services uses the following TCP ports:
Service or Application Context / TCP Port
Windows SharePoint Services: 80
SharePoint Central Administration: 17012

Required Ports for Team Foundation Server Team Foundation Server uses the following TCP ports:
Service or Application Context / TCP Port
Team Foundation Server: 8080
Team Foundation Server Proxy: 8081
Team Foundation Build Remoting1:9191

10. Install Team Foundation Server.

After you install Team Foundation Server, you should back up the Reporting Services Encryption key using the Reporting Services Configuration Tool. This step is not required to create team projects, but is part of best practices for managing Team Foundation Server.
Start -> Programs ->Microsoft SQL Server 2005 -> Configuration Tools -> Reporting Services Configuration,then click the "Connect" button,click "Encryption Keys"link on the left frame, the click "Backup" button on the right frame, and input your passwrd and the location of the encryption key file.

11. Install the prerequisites for Team Explorer.

If installing the Team Foundation client tier on the same computer as the Team Foundation application tier, complete the installation of the application tier prior to installing client tier components.

Install Microsoft Office Excel 2003. On the Type of Installation page of the installation wizard, select Complete Install.
Note:
If you chose to customize install features, you must install .NET Programmability Support to utilize Visual Studio Team System integration features.

Install Microsoft Office Project Professional 2003. On the Type of Installation page of the installation wizard, select Complete Install.
Note :
If you chose to customize install features, you must install .NET Programmability Support to utilize Visual Studio Team System integration features.

12. Internet Explorer Enhanced Security Configuration

If you are installing Team Explorer on Windows Server 2003, you need to apply Windows 2000 default Internet Explorer security settings to enable Team Foundation functionality for the client. To apply Windows 2000 default Internet Explorer security settings on Windows Server 2003, you must disable Internet Explorer Enhanced Security Configuration.

To apply Windows 2000 default Internet Explorer security settings
Open Control Panel, click Add or Remove Programs, and then click Add/Remove Windows Components.Clear the Internet Explorer Enhanced Security Configuration check box, and then click Next.Click Finish.Restart Internet Explorer to apply the changes.

13. To add users to Team Foundation Administration Group, install Team Explorer either locally or on another computer.

To allow team members to access the project portal from client side, Team Foundation Administrator must assign user previlleges.

  • Open the project portal
  • Click "Site Setting" link on the top
  • Under the "Administration" title, click "Manage users" link
  • On the Manage Users page, click "Add Users" action button.
  • On the first page of the wizard,input a group name of local system of the server. check "Contributor" role. click "Next".
  • Config User Email and Message to send. click "Finish".

14. Until now, we have successfully finished Team Foundation Server and Team Explorer installation. Next, We connect Team Explorer to Team Foundation Server.

To add a Team Foundation Server

Start Microsoft Visual Studio 2005.
On the Tools menu, click Connect to Team Foundation Server.The Connect to Team Foundation Server dialog box appears.Click Servers.The Add/Remove Team Foundation Server dialog box appears.Click Add.The Add Team Foundation Server dialog box appears.In the Team Foundation Server Name box, type the name of the computer hosting the Team Foundation Server application tier.

In the Port Number box, specify the port to use for this connection (the default port is 8080 for HTTP) and select the corresponding protocol.
Click OK to return to the Add/Remove Team Foundation Server dialog box.Click Close to return to the Connect to Team Foundation Server dialog box.

If any team projects exist on this Team Foundation Server, select the ones you want to use.Click OK.

To connect to a Team Foundation Server

Start Microsoft Visual Studio 2005.
On the Tools menu, click Connect to Team Foundation Server. The Connect to Team Foundation Server dialog box appears.In the Connect to a Team Foundation Server list, select the Team Foundation Server you want to use.

If any team projects exist on this Team Foundation Server, select the ones you want to use.Click OK.

To remove a Team Foundation Server

Start Microsoft Visual Studio 2005.
Note :
If you are currently connected to the server you want to remove, you need to disconnect by right-clicking the server name and clicking disconnect.
On the Tools menu, click Connect to Team Foundation Server. The Connect to Team Foundation Server dialog box appears.Click Servers.The Add/Remove Team Foundation Server dialog box appears.

In the Team Foundation Server List, select the Team Foundation Server to remove, and then click Remove.Click Close to return to the Team Foundation Server dialog box, and then click OK.

Finally, you can visit the project portal in the Team Explorer:
Team menu -> Show Project Portal.
If you can view the project portal home page without error, all is ok.

That's great!

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13651903/viewspace-1033973/,如需轉載,請註明出處,否則將追究法律責任。

相關文章