Tech:Open Source/Setup/Group Development

From Cyclopath

Jump to: navigation, search
up to: Tech:Open Source > Setup

[edit] Setup for Group Development

This section is targeted toward core developers and others who expect to develop in a group environment.

[edit] Scratch Space

For core developers, your home directory is stored somewhere on the network, so create a scratch space locally on your machine's drive. Otherwise, you'll quickly run out of space in your home directory.

mkdir /export/scratch/$USER

Make sure your new directory has the correct permission by running the GroupLens fixperms script.

fixperms /export/scratch/$USER

Though you could probably get by with a simple chmod. The 2775 mode is common in Web development -- the 2 turns on the sticky bit, so new sub-directories inherit the permissions of their parent, and the 775 makes everything owner- and group-read-write-executable and world-read-executable.

chmod 2775 /export/scratch/$USER

You'll also want to make sure other team members have group access, so correct the group.

chgrp -R grplens /export/scratch/$USER

NOTE If you're on another machine, you can find your scratch space under /scratch. I.e., on foobar.cs.umn.edu, the scratch directory is /export/scratch, but if you log in to a different machine, you'll find the scratch directory at /scratch/foobar.

[edit] Fix Services Permissions

Make sure pg_ident.conf is editable by the group.

sudo chmod 664 /etc/postgresql/8.3/main/pg_ident.conf
sudo chgrp grplens /etc/postgresql/8.3/main/pg_ident.conf

Also set

sudo chgrp -R grplens /etc/postgresql/8.3/main
sudo chgrp -R grplens /var/log/postgresql/
sudo chgrp -R grplens /etc/apache2
sudo chgrp -R grplens /var/log/apache2
Personal tools