1. Preparation

1.1. Needed tools

You find all the additional tools on our FTP Server: ftp://ftp.devil-linux.org/pub/devel/sources/tools/

1.1.1. LFTP

LFTP is used to download and keep the source files up to date. Download this program and install it into your main distribution, if you don't already have it.

1.1.2. JRE

FIXME Java Runtime Environment v1.3 to create documentation

1.2. The build environment

Devil-Linux needs a special build environment, so that you don't run into problems and don't mess up your current system. We use a "Linux From Scratch" System (here called LFS ) to do this.

Goto ftp://ftp.devil-linux.org/pub/devel/sources/ and download the file that starts with lfssystem from the directory which matches the DL version you want to build. Unpack the lfssystem file in a directory, such as /usr/src or any other directory you prefer.

1.3. CVS

1.3.1. Information

When you're new to working with CVS, take a look at the documentation on http://www.cvshome.org, this will give you some more information what CVS is and how it works.

1.3.2. Inital check out

The next step is to get the build system from our Sourceforge CVS Server.

The files from our CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. When prompted for a password for anonymous, simply press the Enter key.

Go into your LFS System directory (e.g. /usr/src/lfssystem)

cvs -d:pserver:anonymous@devil-linux.cvs.sourceforge.net:/cvsroot/devil-linux login

cvs -z3 -d:pserver:anonymous@devil-linux.cvs.sourceforge.net:/cvsroot/devil-linux co build

You find now the build systetem in the sub directory build/ .

[Tip] Tip

To get i.e. the stable 1.4.x release, use the following command:

cvs -z3 -d:pserver:anonymous@devil-linux.cvs.sourceforge.net:/cvsroot/devil-linux co build

1.3.3. Getting updates

Because other users are also working on the build system, you should get the updated version of our build system on a regular basis.

Just go into the build/ directory and execute the following command:

cvs update -d -P

[Tip] Tip

You should update from the CVS server on a regular basis, in order the build an up-to-date system.

[Caution] Caution

After updating the CVS files, make sure you use the latest sources. Otherwise the compile could fail or you use an outdated system.

1.3.4. CVS branches and tags

The HEAD branch contains always the latest development.

Question: How can I get a list of all tags in a project?

Answer 1: http://www.zevils.com/doc/cvsbook/cvsbook_6.html#SEC127

Answer 2: http://devil-linux.cvs.sourceforge.net/cgi-bin/viewcvs.cgi/devil-linux/build

1.4. Source files

Getting the source files is fairly easy, just go into the build/ directory and execute the script ./update_src.

[Tip] Tip

You can keep your source up-to-date, by executing this command on a regular basis.

[Caution] Caution

The update deletes all file which are not on the FTP server, so be carefull with your own extensions.

1.5. Make your life easier

It's a good idea to create an alias for often used commands, best is to create the aliases in your ~/.bashrc file.

alias cr='chroot /usr/src/lfssystem /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash -login' You will need this command every time you create a DL system.