6 messages in com.perforce.perforce-user[p4] perforce gui on Solaris26
FromSent OnAttachments
David Kirwan20 Jul 2000 07:17 
Rick Macdonald20 Jul 2000 08:54 
Jeff A. Bowles20 Jul 2000 12:31 
Rick Macdonald20 Jul 2000 12:50 
Jim Jarrett21 Jul 2000 12:16 
Rick Macdonald21 Jul 2000 12:56 
Subject:[p4] perforce gui on Solaris26
From:Rick Macdonald (ric@vsl.com)
Date:07/20/2000 08:54:02 AM
List:com.perforce.perforce-user

On Thu, 20 Jul 2000, David Kirwan wrote:

Hi everyone,

I've been using Perforce on WinNt for so long it's painful to use the cmd line on Solaris. Any good GUI's that work reasonably well out there?

Well, I'm partial to tkp4: ;-)

http://web.cuug.ab.ca/~macdonal/tkp4

...RickM...

Received: from mail.nelson.monkey.org (identdIsStupid at
adsl-63-197-150-84.dsl.snfc21.pacbell.net [63.197.150.84]) by frankenrouter.perforce.com (8.9.3/8.9.1) with ESMTP id JAA02338 for <perforce-user at perforce.com>; Thu, 20 Jul 2000 09:22:03 -0700 (PDT) Received: (from nelson at localhost) by mail.nelson.monkey.org (8.9.3/8.9.3) id JAA31072; Thu, 20 Jul 2000 09:21:54 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="NskhvkEJL6" Content-Transfer-Encoding: 7bit Message-ID: <14711.10018.13640.65279 at syrah.nelson.monkey.org> Date: Thu, 20 Jul 2000 09:21:54 -0700 (PDT) From: nel@popularpower.com (Nelson Minar) To: "Kendall Bennett" <KendallB at scitechsoft.com> Cc: <perforce-user at perforce.com> Subject: Re: [p4] Linux init scripts? In-Reply-To: <200007191938475.SM00160 at KENDALLB> References: <38FC9049.7FC8850B at llnl.gov> <200007191938475.SM00160 at KENDALLB> Sender: perforce-user-admin at perforce.com Errors-To: perforce-user-admin at perforce.com X-BeenThere: perforce-user at perforce.com X-Mailman-Version: 2.0beta2 Precedence: bulk List-Id: Discuss Perforce with other users <perforce-user.perforce.com>

--NskhvkEJL6 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit

Since there are other users who already have this set up under Linux, does anyone else have startup script files for Linux that they can send me?

I'll attach what I use. I'll also attach a weekly cron job I run to verify Perforce, checkpoint the database.

I'm not sure the "stop" for the init script quite works right. Both of these scripts have the same problem; they really run better as user "nelson", because I have administrator access to the depot. So the weekly cron job runs as me. When the p4d startup script runs as root it seems to work OK, but the "p4 admin stop" doesn't work as root. I'm sure there's a clever workaround.

Also what user/group permissions should I set up for all the Perforce files on the server for security reasons? Does the p4d server end up running as root when you run it via rc.d, or is there a way to specify that it run as a different users, say p4d or something?

My script runs as user perforce.

The huge security issue of perforce, btw, is it has very little in the way of application-level security. Don't run it on a machine that someone on the Internet could connect to.

nelson at popularpower.com . . . . . . . . http://www.media.mit.edu/~nelson/

Make your computer useful 24 hours a day: http://www.popularpower.com/

--NskhvkEJL6 Content-Type: text/plain Content-Description: p4 startup script Content-Disposition: inline; filename="p4d" Content-Transfer-Encoding: 7bit

#!/bin/bash # # $Id: //p4support/p4/p4d.init#4 $ # # chkconfig: 35 95 05 # description: Perforce revision control system server. #

umask 022

# Source function library. . /etc/rc.d/init.d/functions

P4DIR=/home/perforce

# See how we were called. case "$1" in start) echo Starting p4d su -l perforce -c "$P4DIR/bin/p4d -q -v server=1 -L /var/log/p4d -r
$P4DIR/root -d" & touch /var/lock/subsys/p4d ;; stop) echo "Stopping p4d" su -l perforce -c "$P4DIR/bin/p4 -p localhost:1666 admin stop" rm -f /var/lock/subsys/p4d ;; status) status p4d ;; restart) $0 stop $0 start ;; *) echo "Usage: p4d {start|stop|status|restart}" exit 1 esac

exit 0

--NskhvkEJL6 Content-Type: text/plain Content-Description: p4 weekly cron job Content-Disposition: inline; filename="periodic-admin" Content-Transfer-Encoding: 7bit

#!/bin/sh # Do periodic admin tasks on Perforce depot # This must run as user nelson

P4=/usr/local/bin/p4 export P4CONFIG=/home/nelson/depot/.p4

# Do some verification checks $P4 verify -qu //... $P4 verify -q //... $P4 verify -q '#1,#1' $P4 verify -q '#head,#head'

# Checkpoint $P4 admin checkpoint -z

--NskhvkEJL6--

Received: from relay2.mail.uk.psi.net (relay2.mail.uk.psi.net [154.32.107.6]) by frankenrouter.perforce.com (8.9.3/8.9.1) with ESMTP id CAA00569 for <perforce-user at perforce.com>; Thu, 20 Jul 2000 02:52:15 -0700 (PDT) Received: from lightwork.co.uk ([195.152.206.2] helo=elvis.lightwork) by relay2.mail.uk.psi.net with esmtp (Exim 2.12 #2) id 13FCzx-0001II-00 for perforce-user at perforce.com; Thu, 20 Jul 2000 10:52:09 +0100 Received: from 192.9.200.207 ([192.9.200.207]) by elvis.lightwork with SMTP
(Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 3XDWP9QT; Thu, 20 Jul 2000 10:51:51 +0100 Date: Thu, 20 Jul 2000 10:53:07 +0100 From: Dair Grant <dair at kazoo3d.com> To: perforce-user at perforce.com X-Priority: 3 In-Reply-To: <200007191900.MAA96631 at frankenrouter.perforce.com> MIME-Version: 1.0 Content-Type: text/plain; Charset=US-ASCII X-Mailer: Mailsmith 1.1.4 (Bluto) Message-Id: <E13FCzx-0001II-00 at relay2.mail.uk.psi.net> Subject: [p4] Re: perforce-user digest, Vol 1 #283 - 8 msgs Sender: perforce-user-admin at perforce.com Errors-To: perforce-user-admin at perforce.com X-BeenThere: perforce-user at perforce.com X-Mailman-Version: 2.0beta2 Precedence: bulk List-Id: Discuss Perforce with other users <perforce-user.perforce.com>

Viktor Haag wrote:

Does anyone else have OS9 with the latest software updates available online from Apple, the latest version of the Perforce user command set, and the latest GM version of MPW (3.5.3 I believe) working?

We're using:

Mac OS 9.0.4 MPW 3.5b2 p4 Rev. P4/MAC/99.2/14790 (2000/03/24)

And a startup file that sets:

# Perforce environment variables set -e P4USER dair set -e P4PORT ramone:1666 set -e P4CLIENT itchy set -e P4EDITOR "LightWork:Projects:Perforce:Scripts:p4bbedit"

Where p4bbedit is a wrapper that opens BBEdit to edit changelists/etc.

You might want to try doing:

p4 clients

To see exactly what clients your server believes exist?

-dair

__________________________________________________ Dair Grant Software Engineer Kazoo 3D mailto:dair at kazoo3d.com http://www.kazoo3d.com/

Received: from relay2.mail.uk.psi.net (relay2.mail.uk.psi.net [154.32.107.6]) by frankenrouter.perforce.com (8.9.3/8.9.1) with ESMTP id CAA00569 for <perforce-user at perforce.com>; Thu, 20 Jul 2000 02:52:15 -0700 (PDT) Received: from lightwork.co.uk ([195.152.206.2] helo=elvis.lightwork) by relay2.mail.uk.psi.net with esmtp (Exim 2.12 #2) id 13FCzx-0001II-00 for perforce-user at perforce.com; Thu, 20 Jul 2000 10:52:09 +0100 Received: from 192.9.200.207 ([192.9.200.207]) by elvis.lightwork with SMTP
(Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 3XDWP9QT; Thu, 20 Jul 2000 10:51:51 +0100 Date: Thu, 20 Jul 2000 10:53:07 +0100 From: Dair Grant <dair at kazoo3d.com> To: perforce-user at perforce.com X-Priority: 3 In-Reply-To: <200007191900.MAA96631 at frankenrouter.perforce.com> MIME-Version: 1.0 Content-Type: text/plain; Charset=US-ASCII X-Mailer: Mailsmith 1.1.4 (Bluto) Message-Id: <E13FCzx-0001II-00 at relay2.mail.uk.psi.net> Subject: [p4] Re: perforce-user digest, Vol 1 #283 - 8 msgs Sender: perforce-user-admin at perforce.com Errors-To: perforce-user-admin at perforce.com X-BeenThere: perforce-user at perforce.com X-Mailman-Version: 2.0beta2 Precedence: bulk List-Id: Discuss Perforce with other users <perforce-user.perforce.com>

Viktor Haag wrote:

Does anyone else have OS9 with the latest software updates available online from Apple, the latest version of the Perforce user command set, and the latest GM version of MPW (3.5.3 I believe) working?

We're using:

Mac OS 9.0.4 MPW 3.5b2 p4 Rev. P4/MAC/99.2/14790 (2000/03/24)

And a startup file that sets:

# Perforce environment variables set -e P4USER dair set -e P4PORT ramone:1666 set -e P4CLIENT itchy set -e P4EDITOR "LightWork:Projects:Perforce:Scripts:p4bbedit"

Where p4bbedit is a wrapper that opens BBEdit to edit changelists/etc.

You might want to try doing:

p4 clients

To see exactly what clients your server believes exist?

-dair

__________________________________________________ Dair Grant Software Engineer Kazoo 3D mailto:dair at kazoo3d.com http://www.kazoo3d.com/