Perforce Public Knowledge Base - Installing a Linux Helix Server
× PRODUCTS SOLUTIONS CUSTOMERS LEARN SUPPORT
Downloads Blog Company Integrations Careers Contact Try Free
Menu Search
Perforce
Reset Search
 

 

Article

Installing a Linux Helix Server

« Go Back

Information

 
Problem
How do I install a Helix Server on Linux?
Solution
  1. Create a Linux user named "perforce".
You can use the "adduser" command to create a new user in Linux.
 
$ cd /home/perforce/p4root
$ mkdir perforce
$ cd perforce
$ mkdir p4root
$ cd /home/perforce/p4root

 
  1. As Linux user perforce, create a Perforce root directory
In this example, /home/perforce/p4root is the P4ROOT directory.
 
  1. Obtain p4d and p4 from ftp.perforce.com
username: anonymous
password: any password will work
Type the following in bold.

$ cd /home/perforce/p4root
$ ftp ftp.perforce.com

Connected to ftp.perforce.com (107.1.244.159).        
220-                                                  
220-Welcome to ftp.perforce.com! This system now handles only outbound file
220-distribution. If you are looking for our FTP upload facility, please   
220-use upload.perforce.com.                                               
220-                                                                       
220-Please note that we no longer permit anonymous uploads.                
220-You will need to obtain login credentials from Perforce Support        
220-in order to access upload.perforce.com.                                
220                                                                        
Name (ftp.perforce.com:rfong): anonymous                                   
331 Please specify the password.                                           
Password:  enter                                                              
230 Login successful.                                                      
Remote system type is UNIX.                                                
Using binary mode to transfer files.                                       
ftp> ls
227 Entering Passive Mode (107,1,244,159,39,74).
150 Here comes the directory listing.           
drwxr-xr-x    2 ftp      ftp          4096 Sep 22  2015 jam
drwxr-xr-x   26 ftp      ftp          4096 Oct 24 10:45 perforce
drwxrwx--x    3 ftp      ftp          4096 Mar 17  2017 private
drwxr-xr-x    2 ftp      ftp          4096 Dec 23  2014 pub     
226 Directory send OK.                                          
ftp> cd perforce                                                
250 Directory successfully changed.                             
ftp> ls                                                         
227 Entering Passive Mode (107,1,244,159,39,132).               
150 Here comes the directory listing.                           
drwxr-xr-x    6 ftp      ftp          4096 Oct 11  2016 r11.1   
drwxr-xr-x    8 ftp      ftp          4096 Nov 14  2016 r12.1   
drwxr-xr-x    5 ftp      ftp          4096 Nov 14  2016 r12.2   
drwxr-xr-x    3 ftp      ftp          4096 Nov 14  2016 r12.3   
drwxr-xr-x   13 ftp      ftp          4096 Nov 14  2016 r13.1   
drwxr-xr-x   15 ftp      ftp          4096 Nov 14  2016 r13.2   
drwxr-xr-x   14 ftp      ftp          4096 Nov 14  2016 r13.3   
drwxr-xr-x    4 ftp      ftp          4096 Nov 14  2016 r13.4   
drwxr-xr-x   19 ftp      ftp          4096 Nov 14  2016 r14.1   
drwxr-xr-x   16 ftp      ftp          4096 Nov 14  2016 r14.2   
drwxr-xr-x    9 ftp      ftp          4096 Nov 14  2016 r14.3   
drwxr-xr-x    7 ftp      ftp          4096 Sep 02  2016 r14.4   
drwxr-xr-x   32 ftp      ftp          4096 Nov 16  2016 r15.1   
drwxr-xr-x   25 ftp      ftp          4096 Nov 16  2016 r15.2   
drwxr-xr-x    5 ftp      ftp          4096 Nov 16  2016 r15.3   
drwxr-xr-x    5 ftp      ftp          4096 Nov 16  2016 r15.4   
drwxr-xr-x   24 ftp      ftp          4096 Nov 16  2016 r16.1   
drwxr-xr-x   21 ftp      ftp          4096 Feb 01  2017 r16.2   
drwxr-xr-x    8 ftp      ftp          4096 Dec 15  2016 r16.3   
drwxr-xr-x   19 ftp      ftp          4096 Jun 28 09:13 r17.1   
drwxr-xr-x   18 ftp      ftp          4096 Oct 23 12:55 r17.2   
drwxr-xr-x   11 ftp      ftp          4096 Oct 25 12:41 r17.3   
drwxr-xr-x    5 ftp      ftp          4096 May 12 14:07 snapshot
drwxr-xr-x    9 ftp      ftp          4096 Jun 16 12:25 tools   
226 Directory send OK.                                          
ftp> cd r17.2                                                   
250 Directory successfully changed.                             
ftp> ls                                                         
227 Entering Passive Mode (107,1,244,159,39,195).               
150 Here comes the directory listing.                           
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.darwin90x86
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.darwin90x86_64
drwxr-xr-x    2 ftp      ftp          4096 Oct 10 11:51 bin.java          
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.linux26x86    
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.linux26x86_64
drwxr-xr-x    2 ftp      ftp          4096 Oct 02 09:54 bin.macosx1011x86_64
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.macosx105x86    
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.macosx105x86_64
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.mingw64x64
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.mingw64x86
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.mingwx86
drwxr-xr-x    2 ftp      ftp          4096 Aug 29 15:45 bin.multiarch
drwxr-xr-x    2 ftp      ftp          4096 Aug 29 15:45 bin.noarch
drwxr-xr-x    2 ftp      ftp          4096 Oct 23 12:55 bin.ntx64
drwxr-xr-x    2 ftp      ftp          4096 Oct 24 14:34 bin.ntx86
drwxr-xr-x    5 ftp      ftp          4096 Oct 20 11:54 doc
226 Directory send OK.
ftp> cd bin.linux26x86_64
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (107,1,244,159,39,101).
150 Here comes the directory listing.
-r--r--r--    1 ftp      ftp           528 Oct 23 12:55 SHA256SUMS
-r--r--r--    1 ftp      ftp       9034717 Oct 12 20:03 helix-versioning-engine.tgz
-r-xr-xr-x    1 ftp      ftp       3923016 Oct 12 19:55 p4
-r--r--r--    1 ftp      ftp       4479925 Oct 12 19:57 p4api.tgz
-r-xr-xr-x    1 ftp      ftp       2940168 Oct 12 19:56 p4broker
-r-xr-xr-x    1 ftp      ftp       9364784 Oct 12 19:55 p4d
-r-xr-xr-x    1 ftp      ftp       3422368 Oct 12 20:01 p4p
-r--r--r--    1 ftp      ftp      67533214 Sep 29 11:46 p4v.tgz
lrwxrwxrwx    1 ftp      ftp            26 Aug 29 15:45 swarm.tgz -> ../bin.multiarch/swarm.tgz
226 Directory send OK.
ftp> get p4d
local: p4d remote: p4d
227 Entering Passive Mode (107,1,244,159,39,97).
150 Opening BINARY mode data connection for p4d (9364784 bytes).
226 Transfer complete.
9364784 bytes received in 0.197 secs (47522.98 Kbytes/sec)
ftp> get p4
local: p4 remote: p4
227 Entering Passive Mode (107,1,244,159,39,183).
150 Opening BINARY mode data connection for p4 (3923016 bytes).
226 Transfer complete.
3923016 bytes received in 0.0969 secs (40478.52 Kbytes/sec)
ftp> quit
221 Goodbye.
 
  1. Copy a license file into the P4ROOT directory
If there are more than five users, you need to obtain a license file.  The license file must be named "license" or "license.txt"
 
  1. Optionally create a start up script and make it executable
$ cd /home/perforce/p4root
$ echo './p4d -r `pwd` -p 1666 -J journal -L log -d' > perforce.sh
$ chmod 755 perforce.sh

The journal can include a path.  We recommend that the journal be placed into a path on a different local disk so if the Perforce database crashes, the journal will not crash with it.
 
  1. Start Perforce
To start Perforce at any time, log into the server as user perforce

$ cd /home/perforce/p4root
$ ./perforce.sh


Alternatively, start Perforce from the terminal window as user perforce
 
$ ./p4d -r `pwd` -p 1666 -J journal -L log -d
 
  1. Access Perforce
Run from the terminal window
 
$ cd /home/perforce/p4root
$ ./p4 info
$ ./p4 users
$ ./p4 changes

 
If you see output, then Perforce is running!
To stop Perforce, run
$ ./p4 admin stop

 
  1. Access Perforce
Have other users install P4V
See the client setup (the server is already set up)
https://www.perforce.com/video-tutorials/5-minute-client-and-server-setup-windows


You may have to open the Perforce server firewall to allow users to connect through port 1666.


 
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255