How to Install Perforce Helix Core on Ubuntu 24.04
Step 1: Add the Perforce Repository
- Download the Perforce GPG Key:
1wget -qO /usr/share/keyrings/perforce-archive-keyring.gpg https://package.perforce.com/perforce.pubkey - Add the Repository:
1echo "deb [signed-by=/usr/share/keyrings/perforce-archive-keyring.gpg] http://package.perforce.com/apt/ubuntu jammy release" | sudo tee /etc/apt/sources.list.d/perforce.list - Update Package Lists:
1sudo apt update
Step 2: Install Helix Core (p4d)
Install the Perforce Helix Core server using:
1 |
sudo apt install helix-p4d |
Step 3: Configure the Server
- Create a Directory for the Server:
12sudo mkdir -p /opt/perforce/servers/mastersudo chown perforce:perforce /opt/perforce/servers/master
- Set Up the
p4dctl
Service:1sudo nano /etc/perforce/p4dctl.conf.d/master.confAdd the following content:
12345678910111213master {Description = "Helix Core Server Master Instance"Executable = /usr/sbin/p4dRoot = /opt/perforce/servers/masterUser = perforceGroup = perforceEnvironment {P4PORT = 1666P4ROOT = /opt/perforce/servers/masterP4LOG = /opt/perforce/servers/master/logs/logP4JOURNAL = /opt/perforce/servers/master/checkpoints/journal}} - Verify the Configuration:
1sudo -u perforce p4dctl list
- Start the Server:
1sudo -u perforce p4dctl start master
Or start all configured services:
1sudo -u perforce p4dctl start -a
Step 4: Test the Server
- Check Server Status:
1sudo -u perforce p4dctl status
- Connect to the Server: Use the
p4
CLI tool or a graphical client like P4V to connect to the server on port1666
.
Step 5: Optional – Install the Helix Visual Client (P4V)
For a graphical interface, install the Helix Visual Client:
1 |
sudo apt install helix-p4v |
Launch it by typing:
1 |
p4v |
Common Troubleshooting
- Error: “NO_PUBKEY”
Ensure the key is correctly downloaded and saved:1wget -qO - https://package.perforce.com/perforce.pubkey | gpg --dearmor | sudo tee /usr/share/keyrings/perforce-archive-keyring.gpg > /dev/null - Error: “No services configured” with
p4dctl
Ensure the file/etc/perforce/p4dctl.conf.d/master.conf
is correctly formatted and points to the appropriate directories.