-
Notifications
You must be signed in to change notification settings - Fork 68
Installing DC
You'll need to have some prerequisites to use Design Center.
-
CFEngine version 3.4.2 or higher. For more information and instructions for downloading and installing CFEngine 3.4.2, see http://www.cfengine.com.
-
Perl 5 must be installed. Note that most Linux distributions already have Perl installed. If Perl is not installed, please see http://www.perl.org/ for more information about downloading and installing Perl.
-
You must have installed Make. (On a Debian-style Linux machine this is usually covered by the
build-essential
package. On a Redhat-style Linux machine you can install make with themake
package.)
If you have git installed, you can check out the entire design-center repository and install cf-sketch from there.
You may choose any directory you want instead of /tmp
as the base
directory; /tmp
is usually a temporary location and you may lose its
contents when your system reboots.
# cd /tmp
# git clone https://github.com/cfengine/design-center/
Cloning into design-center...
remote: Counting objects: 2236, done.
remote: Compressing objects: 100% (1173/1173), done.
remote: Total 2236 (delta 1162), reused 2076 (delta 1005)
Receiving objects: 100% (2236/2236), 481.79 KiB | 416 KiB/s, done.
Resolving deltas: 100% (1162/1162), done.
# cd design-center/tools/cf-sketch
# make install
If you don't have git installed, you can download a tar or zip containing the entire repository, unpack it, and install cf-sketch:
# wget -O design-center-master.tar.gz https://github.com/cfengine/design-center/archive/master.tar.gz
# tar zxvf design-center-master.tar.gz
# cd cfengine-design-master/tools/cf-sketch/
# make install
By default cf-sketch will be installed at /usr/local/bin/cf-sketch
and its libraries in /usr/local/lib/cf-sketch/
. If you want to
install it somewhere else, you can pass the PREFIX
variable to
make
. For example:
# make install PREFIX=$HOME/bin
You can simply run cf-sketch.pl
directly:
# cd cfengine-design-master/tools/cf-sketch/
# ./cf-sketch.pl
That's it! You are ready to go.
A public repository for customizable CFEngine design patterns and code.