1 AUTHOR: Ilja Honkonen <ilja.honkonen@helsinki.fi>
5 LICENSE: GNU Free Documentation License Version 1.2
7 SYNOPSIS: How to install Zero Install on LFS
10 This hint describes how I installed Zero Install on my newly created
11 Linux From Scratch 5.0 system. Zero Install seems like a very good way of
12 (not :)) installing and using software that has been "packaged" by its
13 developers, thus eliminating the need for centralized packaging of software
14 like Debian and Red Hat have been doing. This hint should be suitable for
15 anyone who has built himself a LFS system.
19 I installed Zero Install on a Linux From Scratch 5.0 system. You could
20 probably use an earlier version of LFS and you should be able to use a later
21 version of LFS for this hint.
23 You will need the following packages:
26 http://prdownloads.sourceforge.net/zero-install/zero-install-0.1.24.tar.gz.gpg?download
28 LazyFS kernel module from
29 http://prdownloads.sourceforge.net/zero-install/lazyfs-linux-0.1.23-smp.tgz.gpg?download
31 dbus from http://freedesktop.org/Software/dbus/releases/dbus-0.21.tar.gz
33 These are needed too, but they are also installed in BLFS 5.
35 wget from http://ftp.gnu.org/gnu/wget/wget-1.9.1.tar.gz
37 expat from http://prdownloads.sourceforge.net/expat/expat-1.95.7.tar.gz?download
39 gnupg from http://public.ftp.planetmirror.com/pub/gnupg/gnupg-1.2.4.tar.bz2
41 glib from http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/glib-1.2.10.tar.gz
43 Python from http://www.python.org/ftp/python/2.3.4/Python-2.3.4.tar.bz2
46 http://freedesktop.org/Software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz
51 Start by installing wget, expat, gnupg, glib, python and pkgconfig as described
52 in Beyond Linux From Scratch 5.1. I have repeated the instructions below:
55 ./configure --prefix=/usr --sysconfdir=/etc && make && make install
58 ./configure --prefix=/usr && make && make install
61 ./configure --prefix=/usr --libexecdir=/usr/lib && make && make install &&
62 chmod 4755 /usr/bin/gpg
65 ./configure --prefix=/usr && make && make install
68 ./configure --prefix=/usr && make && make install
71 I have omitted instructions on patching python-2.3.3 as was done in BLFS 5.1
72 because I used python version 2.3.4. This worked for me...
73 ./configure --prefix=/usr --enable-shared && make && make install
76 Then install dbus which is required by zero-install
78 ./configure --prefix=/usr && make && make install
80 I used gpg to get zero-install and lazyfs-linux into extractable form:
81 gpg lazyfs-linux-0.1.23-smp.tgz.gpg
82 unless you have 0install authors key in your keyring gpg will complain but
85 Now install the kernel module that is required by 0install
87 ./configure && make && make install
89 Finally install Zero Install 0.1.24
90 0install homepage recommends to run zero install as a non root user, which
91 seems like a good idea. Below are the commands that I used to create a user
92 and a group named zeroinst, adapted from BLFS 5 instructions about apache
95 useradd -c 0install -d /dev/null -g zeroinst -s /bin/sh zeroinst
99 ./configure --prefix=/usr --with-user=zeroinst \
100 --with-initdir=/etc/rc.d/init.d && make && make install
102 Now you should have everyting installed and be able to try out 0install.
103 First start Zero Install with
104 /etc/rc.d/init.d/0install start
106 then try this command
107 cat /uri/0install/zero-install.sourceforge.net/demo/test.txt
113 Now since I had not installed anything else but LFS 5.0 and what is in this
114 hint, I could not use many of the packages that have been prepared, but I
115 found python and java which seemed to work fine using these commands (note
116 I used an Athlon machine, and this may take a while depending on how fat ur
118 /uri/0install/zero-install.sourceforge.net/links/AachenUniversity/python.org/2.3/Linux-ix86/bin/python
119 /uri/0install/zero-install.sourceforge.net/links/AachenUniversity/java.sun.com/j2re/Linux-ix86/1.4.2/bin/java
121 If you have a graphical working environment, gtk and friends installed, you
122 can use Zero Progress to monitor the progress of downloads
123 /uri/0install/zero-install.sourceforge.net/apps/ZeroProgress/AppRun &
125 and find many programs like so
126 /uri/0install/rox.sourceforge.net/rox /uri/0install/zero-install.sourceforge.net/links
129 For additional information the Zero Install homepage is your friend:
130 http://zero-install.sourceforge.net/
132 Now all that is left to do is to write to the developers of your favourite
133 software and ask them to start using/supporting Zero Install...