User login

GNU-Linux

Using Subversion's "include" functionality– the svn:externals property

DEPRECATED: Use Piston

In this case we're using svn externals to have a module in two places in a repository, but of course it works just as well for a truly external repository.

Check out Drupal version to a specific directory from CVS

Check out Drupal 5 to a directory called "drupal5" -- note the use of the -r and -d flags, and the final drupal is not the directory you put it in, but the directory you are getting it from on Drupal.org!

Current model for getting core for Agaric's centrally managed system:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-5-9 -d drupal-5 drupal

And then update to version numbers:

cvs update -r DRUPAL-6-5 -dP

White screen of death on MAMP: increasing memory limit in php.ini

In MAMP, php.ini for PHP5 often needs to be edited because it is set to only 8MB by default, leading to white screen of death. It is found here (using Terminal or iTerm):

vi /Applications/MAMP/conf/php5/php.ini

And in Vi you can search for memory limit by typing /memory, and i to start editing text.

You can then go to the MAMP application and stop servers and start them again.

(Posted as comment to handbook here.)

Git the Agaric Way: using shell scripts to add and update projects

Update: Forget it. Complication outweighs benefits.

Note: Before you start doing any of this, you would need to copy Agaric's git directory structure-- note that this is not a single git repository, but many git repositories. More on that elsewhere, this is about using the system properly set up.

What finally works:

Navigate to the pseudo-repository's sites directory:

cd /RCS/git/agaric-sites/
Ebony-II:agaric-sites ben$ git-new-site.sh 5 test

Including a file in a bash script: that's what dot file does

To source a file in a shell script is similar to the way one can include or require a file in PHP.

http://humanreadable.nfshost.com/sdeg/bash_startup.htm

Upgrade Drupal a version with an automatic patch

http://2bits.com/articles/upgrading-drupal-5-2-installations-to-5-3-security-releases-using-a-single-patch.html

Agaric has modified version the shell command version (listed by Khalid right above the comments) to be a script that can patch Drupal regardless of the name of its current directory..

Agaric's version is attached.

Installing Munin, the site monitor named after a Norse god's crow

sudo aptitude install munin-node

sudo aptitude install munin 

sudo vi /etc/munin/munin.conf

a simple host tree

[wsf.grassrootsconnection.org]
address 127.0.0.1
use_node_name yes

Skipping this for now -- and I think this assumes both munin and munin-node on one server:

As a security measure, we are going to change so the node bind itself to the loopback interface.
So go and edit /etc/munin/munin-node.conf and make sure the host value looks like this:

Syndicate content