Skip to content

Instantly share code, notes, and snippets.

@BlenderSleuth
Last active December 23, 2023 23:35
Show Gist options
  • Save BlenderSleuth/b05fddfc6f9aea6a055733d42317eb1b to your computer and use it in GitHub Desktop.
Save BlenderSleuth/b05fddfc6f9aea6a055733d42317eb1b to your computer and use it in GitHub Desktop.
Ubuntu 22.04 Perforce Setup Script (including git connector)
#!/bin/sh
# Add perforce package key and repo (from https://www.perforce.com/manuals/p4sag/Content/P4SAG/install.linux.packages.install.html)
wget -qO - https://package.perforce.com/perforce.pubkey | gpg --dearmor | sudo tee /usr/share/keyrings/perforce.gpg
sudo echo "deb [signed-by=/usr/share/keyrings/perforce.gpg] https://package.perforce.com/apt/ubuntu jammy release" > /etc/apt/sources.list.d/perforce.list
# Install p4d
sudo apt-get update
sudo apt-get install -y helix-p4d
# Allow port 1666 through firewall
sudo ufw allow 1666
# Run config script
sudo /opt/perforce/sbin/configure-helix-p4d.sh
@BlenderSleuth
Copy link
Author

To run:

wget https://gist.github.com/BlenderSleuth/b05fddfc6f9aea6a055733d42317eb1b/raw/1d34195ee97e7a94d86339a6d1df3c3e7be493fb/UbuntuPerforceSetup.sh
chmod +x UbuntuPerforceSetup.sh
sudo ./UbuntuPerforceSetup.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment