git install

NOTE: We install .ssh first, because cloning .config first creates ~/.ssh/known_hosts, and git then refuses to clone into ~/.ssh with the error "destination path '.ssh' already exists and is not an empty directory" because the directory isn't empty. If you cloned .config first, remove ~/.ssh before attempting to clone .ssh.

1.

Clone .ssh repository:

cd $HOME && git clone mjs@grace.beebo.org:/var/lib/git/ssh .ssh

2.

Fix permissions

cd $HOME/.ssh && make fix

3.

Clone .config repository:

cd $HOME && git clone mjs@grace.beebo.org:/var/lib/git/config .config

4.

Install config files:

cd $HOME/.config && make install

Or, if make isn't installed:

cd $HOME/.config && ./install

5.

Log out, and log back in again.

svn install from github (not recommended--use git if available)

svn install (deprecated)

1.

If subversion is installed, skip to step 6.

2.

Set PLATFORM environment variable.

export PLATFORM="freebsd"

3.

Create lconfigure alias:

alias lconfigure='./configure --prefix=$HOME/local --exec-prefix=$HOME/local-$PLATFORM'

4.

Get subversion; try:

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260

(You'll probably want the subversion-deps-* package as well, which uncompresses to the subversion-XXX directory.)

5.

Configure, compile and install:

lconfigure && make && make install

6.

Set SVNROOT environment variable:

export SVNROOT="svn+ssh://svn.beebo.org/srv/svn"

7.

Use subversion to check out .config:

cd $HOME && svn co $SVNROOT/config/trunk .config

8.

Install config files:

cd $HOME/.config && make install

Or, if make isn't installed:

cd $HOME/.config && ./install

9.

Log out and log back in again.

10.

Get ssh configuration, keys:

export SVNROOT="svn+ssh://svn.beebo.org/srv/svn" cd $HOME && svn co $SVNROOT/ssh/trunk .ssh

(You may need to enter your password twice.)

11.

Run "make fix" to fix permissions:

cd $HOME/.ssh && make fix

12.

Log out and ssh in again. This time, no password should be required.