SlideShare a Scribd company logo
Configuring Perforce on a Local
        Area Network
          Imran Bashir
          Nov 5th, 2011
Why Use SCM?
• Having a SCM ‘Software Configuration Management’ tool is an
  efficient way to backup and update your data files. No need to
  backup data on CDs and DVDs.
• An SCM tool like Perforce stores data on a repository that can be
  locally stored on your machine or another machine on a local or
  remote network.
• Files are version controlled.
• A practical scenario: Use a separate machine (server) to store all of
  your data files while your workstation or laptop (client) only stores
  a subset of information from the dataset that you need. In this way,
  you can save resources on the machine you normally use for your
  day to day work.
• In these slides, I will show you how to configure two machines A
  (server) and B (client) both on a local network using Perforce.
Steps (1 of 5)
• There is a good YouTube demonstration video on installation of perforce
  on client and server. Type this in the search field “10-Minute Client and
  Server Setup on Windows”
• Using the procedure in video, install P4 server and P4V on machine A
  (server). No need for P4 Proxy unless you are remotely connecting to your
  local network. Install P4 server (optional) and P4V on machine B (client).
• Download Apple Bonjour application on both machines. You will need this
  to search for the server on machine A from machine B.
    – http://support.apple.com/kb/DL999
• Turn off firewalls one machine A and B. Test connections between
  machines using IP ping.
• On the Machine A, check to see if ‘Perforce’ process is running. Control
  Panel-> Admin Tools-> Services
• Open command window in System Admin mode (by right clicking on icon
  and selecting ‘Run as Admin’).
Steps (2 of 5)
•   On Machine A, enable Zeroconf for the ‘Perforce’ service. From the prompt type
     –    svcinst stop -n Perforce <Enter>
     –    p4 set -S Perforce P4ZEROCONF=1 <Enter>
     –    p4 set -S Perforce P4DESCRIPTION=“Machine A Server“ <Enter>
     –    svcinst start -n Perforce <Enter>
•   You can set other parameters too. Check the last slide for details. These entries are
    stored in the machine, so you do not need to do this every reboot. <phew!>
•   Now launch P4V on machine B. The startup wizard will launch and a menu will
    appear where Perforce will search for any perforce servers on the local network.
    You should see the name ‘Perforce’ and a description (that you typed in
    P4DESCRIPTION while configuring the server on Machine A) in the menu. This is
    the most critical point for the whole setup. If you do not see it, check the firewall
    setup on both machines. Make sure you can ping Machine A (server) from
    Machine B (client) at least.
Steps (3 of 5)
•   If nothing works, try using the ‘brute force’ method of configuring the ‘Perforce’ service on
    Machine A. Type in the settings in the right window of the figure below. You will need to stop
    the service first, type the settings in, and then start the service again. The settings in ‘Start
    Parameters’ is static i.e. they are lost as soon as you close that menu or reboot the computer.
Steps (4 of 5)
• If you can see the server from Machine B (client) but
  the software complains about not being able to
  resolve the server IP address and gives an error as
  follows:

• …then try to type the IP address and the port
  number (default 1666) as shown in the window
  below.
Steps (5 of 5)
• If you don’t have your workspace setup, you can do that later.
  The key thing is to be able to see the depot tree from
  Machine B which should mirror what is on Machine A. Try
  checking in some dummy text files on Machine A and then
  check the depot view on Machine B. See the screenshot
  below.
Configuring Windows Firewall
• The last step is to enable the firewall on Machine A. It will block
  Machine B from connecting to the server. You will have to add
  some exceptions to the firewall settings to allow seamless
  connection between the two machines. This screenshot shows
  configuration of the firewall on Windows XP.
•
    Setting a Perforce Service Manually
    Make sure to right click on ‘cmd’ and ‘run as administrator’
•   Example: Adding a second Perforce service.
•   You want to create a second Perforce service with a root in C:p4root2 and a service name of Perforce2. The svcinst
    executable is in the server root of the first Perforce installation you installed in C:perforce.
•   Verify that your p4d.exe executable is at Release 99.1/10994 or greater:
•   p4d -V
•   (If you are running an older release, you must first download a more recent release from http://www.perforce.com and
    upgrade your server before continuing.)
•   Create a P4ROOT directory for the new service:
•   mkdir c:p4root2
•   Copy the server executables, both p4d.exe (the server) and p4s.exe (the service), and your license file into the new
    directory:
•   copy c:perforcep4d.exe c:p4root2
    copy c:perforcep4d.exe c:p4root2p4s.exe
    copy c:perforcelicense c:p4root2license
•   Use Perforce's svcinst.exe (the service installer) to create the "Perforce2" service:
•   svcinst create -n Perforce2 -e c:p4root2p4s.exe -a
•   After you create the Perforce2 service, set the service parameters for the Perforce2 service:
•   p4 set -S Perforce2 P4ROOT=c:p4root2
•   p4 set -S Perforce P4NAME=MyPerforceServer
•   p4 set -S Perforce P4ZEROCONF=1
•   p4 set -S Perforce P4DESCRIPTION="Connect here for SCM goodness“
•   p4 set -S Perforce2 P4PORT=1667
•   p4 set -S Perforce2 P4LOG=log2
•   p4 set -S Perforce2 P4JOURNAL=journal2
•   Finally, use the Perforce service installer to start the Perforce2 service:
•   svcinst start -n Perforce2.
•   The second service is now running, and both services will start automatically the next time you reboot.
•   Can setup multiple services
•   Once settings are set, the remain in effect for that server.

More Related Content

PPTX
Install Salsa Windows 2012 Three Servers
PPT
01c. Starting A Router
PDF
PowerShell install Windows Feature
PDF
Router and switch basics configuration
PPT
Chapter4ccna
TXT
Unattend
DOCX
thanh
TXT
Basic command for Time sync (Domain Controllers)
Install Salsa Windows 2012 Three Servers
01c. Starting A Router
PowerShell install Windows Feature
Router and switch basics configuration
Chapter4ccna
Unattend
thanh
Basic command for Time sync (Domain Controllers)

What's hot (18)

PDF
Install and Configure DHCP role on Windows Server 2012
PPT
Chapter5ccna
PPT
Free Pbx Ot
DOCX
Cara upgrade dan downgrade tcu
DOC
First steps after free pbx installation
DOC
I module dmz
TXT
Install notes
PDF
What is netapp system firmware
PDF
Remote vnc printer
DOCX
Oracle forms and reports 11g installation on linux
PPT
Ciso 4 ospf
DOCX
Captaris_Redesign_Stephen Delissio
PDF
test
PDF
QualTest Host User Guide
PPT
Ciso ospf
TXT
Backup and restore router configuration
PDF
Install vtiger crm version 6
PDF
mail server
Install and Configure DHCP role on Windows Server 2012
Chapter5ccna
Free Pbx Ot
Cara upgrade dan downgrade tcu
First steps after free pbx installation
I module dmz
Install notes
What is netapp system firmware
Remote vnc printer
Oracle forms and reports 11g installation on linux
Ciso 4 ospf
Captaris_Redesign_Stephen Delissio
test
QualTest Host User Guide
Ciso ospf
Backup and restore router configuration
Install vtiger crm version 6
mail server
Ad

Similar to Perforce Setup (20)

PDF
Fault tolerance ease of setup comparison: NEC hardware-based FT vs. software-...
PDF
Oracle database 12c client quick installation guide 2
PDF
Oracle database 12c client quick installation guide
PDF
Lamp Server With Drupal Installation
PPTX
How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...
PPTX
ansible-presentation-with-documentation.pptx
PPTX
Ansible_Presentation our score increases as you pick a
PPTX
Ansible_Presentation and learn ansible playbook
PPTX
System installation in CCTV
PDF
Fire Eye Appliance Quick Start
PDF
Oracle database 12c client quick installation guide 4
PPTX
Ansible_Automation_tools that used in devops
PDF
Oracle database 12c client quick installation guide 7
DOCX
V mware converter best practices
PPTX
Ansible.pptx
PDF
Practical solutions for connections administrators
PDF
Oracle database 12c client quick installation guide 3
PDF
Release notes 3_d_v61
PDF
Prokonmanual 140505223324-phpapp01
PPTX
Deploying Foreman in Enterprise Environments
Fault tolerance ease of setup comparison: NEC hardware-based FT vs. software-...
Oracle database 12c client quick installation guide 2
Oracle database 12c client quick installation guide
Lamp Server With Drupal Installation
How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...
ansible-presentation-with-documentation.pptx
Ansible_Presentation our score increases as you pick a
Ansible_Presentation and learn ansible playbook
System installation in CCTV
Fire Eye Appliance Quick Start
Oracle database 12c client quick installation guide 4
Ansible_Automation_tools that used in devops
Oracle database 12c client quick installation guide 7
V mware converter best practices
Ansible.pptx
Practical solutions for connections administrators
Oracle database 12c client quick installation guide 3
Release notes 3_d_v61
Prokonmanual 140505223324-phpapp01
Deploying Foreman in Enterprise Environments
Ad

More from imranbashir (7)

PDF
Bashir_09192016
PDF
Bashir_04142016
PDF
RM03D-3_DCOBISC_06_07_09_Final
PPT
Edge Tx With Mitigation Of Osc Pulling
PPT
All Digital Phase Lock Loop 03 12 09
PPT
Amplifier Design
PPT
On Chip Calibration And Compensation Techniques (11 03 08)
Bashir_09192016
Bashir_04142016
RM03D-3_DCOBISC_06_07_09_Final
Edge Tx With Mitigation Of Osc Pulling
All Digital Phase Lock Loop 03 12 09
Amplifier Design
On Chip Calibration And Compensation Techniques (11 03 08)

Perforce Setup

  • 1. Configuring Perforce on a Local Area Network Imran Bashir Nov 5th, 2011
  • 2. Why Use SCM? • Having a SCM ‘Software Configuration Management’ tool is an efficient way to backup and update your data files. No need to backup data on CDs and DVDs. • An SCM tool like Perforce stores data on a repository that can be locally stored on your machine or another machine on a local or remote network. • Files are version controlled. • A practical scenario: Use a separate machine (server) to store all of your data files while your workstation or laptop (client) only stores a subset of information from the dataset that you need. In this way, you can save resources on the machine you normally use for your day to day work. • In these slides, I will show you how to configure two machines A (server) and B (client) both on a local network using Perforce.
  • 3. Steps (1 of 5) • There is a good YouTube demonstration video on installation of perforce on client and server. Type this in the search field “10-Minute Client and Server Setup on Windows” • Using the procedure in video, install P4 server and P4V on machine A (server). No need for P4 Proxy unless you are remotely connecting to your local network. Install P4 server (optional) and P4V on machine B (client). • Download Apple Bonjour application on both machines. You will need this to search for the server on machine A from machine B. – http://support.apple.com/kb/DL999 • Turn off firewalls one machine A and B. Test connections between machines using IP ping. • On the Machine A, check to see if ‘Perforce’ process is running. Control Panel-> Admin Tools-> Services • Open command window in System Admin mode (by right clicking on icon and selecting ‘Run as Admin’).
  • 4. Steps (2 of 5) • On Machine A, enable Zeroconf for the ‘Perforce’ service. From the prompt type – svcinst stop -n Perforce <Enter> – p4 set -S Perforce P4ZEROCONF=1 <Enter> – p4 set -S Perforce P4DESCRIPTION=“Machine A Server“ <Enter> – svcinst start -n Perforce <Enter> • You can set other parameters too. Check the last slide for details. These entries are stored in the machine, so you do not need to do this every reboot. <phew!> • Now launch P4V on machine B. The startup wizard will launch and a menu will appear where Perforce will search for any perforce servers on the local network. You should see the name ‘Perforce’ and a description (that you typed in P4DESCRIPTION while configuring the server on Machine A) in the menu. This is the most critical point for the whole setup. If you do not see it, check the firewall setup on both machines. Make sure you can ping Machine A (server) from Machine B (client) at least.
  • 5. Steps (3 of 5) • If nothing works, try using the ‘brute force’ method of configuring the ‘Perforce’ service on Machine A. Type in the settings in the right window of the figure below. You will need to stop the service first, type the settings in, and then start the service again. The settings in ‘Start Parameters’ is static i.e. they are lost as soon as you close that menu or reboot the computer.
  • 6. Steps (4 of 5) • If you can see the server from Machine B (client) but the software complains about not being able to resolve the server IP address and gives an error as follows: • …then try to type the IP address and the port number (default 1666) as shown in the window below.
  • 7. Steps (5 of 5) • If you don’t have your workspace setup, you can do that later. The key thing is to be able to see the depot tree from Machine B which should mirror what is on Machine A. Try checking in some dummy text files on Machine A and then check the depot view on Machine B. See the screenshot below.
  • 8. Configuring Windows Firewall • The last step is to enable the firewall on Machine A. It will block Machine B from connecting to the server. You will have to add some exceptions to the firewall settings to allow seamless connection between the two machines. This screenshot shows configuration of the firewall on Windows XP.
  • 9. Setting a Perforce Service Manually Make sure to right click on ‘cmd’ and ‘run as administrator’ • Example: Adding a second Perforce service. • You want to create a second Perforce service with a root in C:p4root2 and a service name of Perforce2. The svcinst executable is in the server root of the first Perforce installation you installed in C:perforce. • Verify that your p4d.exe executable is at Release 99.1/10994 or greater: • p4d -V • (If you are running an older release, you must first download a more recent release from http://www.perforce.com and upgrade your server before continuing.) • Create a P4ROOT directory for the new service: • mkdir c:p4root2 • Copy the server executables, both p4d.exe (the server) and p4s.exe (the service), and your license file into the new directory: • copy c:perforcep4d.exe c:p4root2 copy c:perforcep4d.exe c:p4root2p4s.exe copy c:perforcelicense c:p4root2license • Use Perforce's svcinst.exe (the service installer) to create the "Perforce2" service: • svcinst create -n Perforce2 -e c:p4root2p4s.exe -a • After you create the Perforce2 service, set the service parameters for the Perforce2 service: • p4 set -S Perforce2 P4ROOT=c:p4root2 • p4 set -S Perforce P4NAME=MyPerforceServer • p4 set -S Perforce P4ZEROCONF=1 • p4 set -S Perforce P4DESCRIPTION="Connect here for SCM goodness“ • p4 set -S Perforce2 P4PORT=1667 • p4 set -S Perforce2 P4LOG=log2 • p4 set -S Perforce2 P4JOURNAL=journal2 • Finally, use the Perforce service installer to start the Perforce2 service: • svcinst start -n Perforce2. • The second service is now running, and both services will start automatically the next time you reboot. • Can setup multiple services • Once settings are set, the remain in effect for that server.