root/trunk/0install4lfs.txt

Revision 909, 4.6 kB (checked in by tushar, 4 years ago)

Header corrections

Line 
1 AUTHOR: Ilja Honkonen <ilja.honkonen@helsinki.fi>
2
3 DATE: 2004-06-18
4
5 LICENSE: GNU Free Documentation License Version 1.2
6
7 SYNOPSIS: How to install Zero Install on LFS
8
9 DESCRIPTION:
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.
16
17
18 PREREQUISITES:
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.
22
23 You will need the following packages:
24
25 Zero Install from
26 http://prdownloads.sourceforge.net/zero-install/zero-install-0.1.24.tar.gz.gpg?download
27
28 LazyFS kernel module from
29 http://prdownloads.sourceforge.net/zero-install/lazyfs-linux-0.1.23-smp.tgz.gpg?download
30
31 dbus from http://freedesktop.org/Software/dbus/releases/dbus-0.21.tar.gz
32
33 These are needed too, but they are also installed in BLFS 5.
34
35 wget from http://ftp.gnu.org/gnu/wget/wget-1.9.1.tar.gz
36
37 expat from http://prdownloads.sourceforge.net/expat/expat-1.95.7.tar.gz?download
38
39 gnupg from http://public.ftp.planetmirror.com/pub/gnupg/gnupg-1.2.4.tar.bz2
40
41 glib from http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/glib-1.2.10.tar.gz
42
43 Python from http://www.python.org/ftp/python/2.3.4/Python-2.3.4.tar.bz2
44
45 pkgconfig from
46 http://freedesktop.org/Software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz
47
48
49 HINT:
50
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:
53
54 Wget-1.9.1
55 ./configure --prefix=/usr --sysconfdir=/etc && make && make install
56
57 expat-1.95.7
58 ./configure --prefix=/usr && make && make install
59
60 GnuPG-1.2.4
61 ./configure --prefix=/usr --libexecdir=/usr/lib && make && make install &&
62 chmod 4755 /usr/bin/gpg
63
64 Glib-1.2.10
65 ./configure --prefix=/usr && make && make install
66
67 pkgconfig-0.15.0
68 ./configure --prefix=/usr && make && make install
69
70 Python-2.3.4
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
74
75
76 Then install dbus which is required by zero-install
77 dbus-0.21
78 ./configure --prefix=/usr && make && make install
79
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
83 that is ok...
84
85 Now install the kernel module that is required by 0install
86 LazyFS-0.1.23
87 ./configure && make && make install
88
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
93
94 groupadd zeroinst &&
95 useradd -c 0install -d /dev/null -g zeroinst -s /bin/sh zeroinst
96
97 Then 0install itself:
98
99 ./configure --prefix=/usr --with-user=zeroinst \
100 --with-initdir=/etc/rc.d/init.d && make && make install
101
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
105
106 then try this command
107 cat /uri/0install/zero-install.sourceforge.net/demo/test.txt
108
109 If it prints
110 It worked!
111 then... it worked!!
112
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
117 pipe is)
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
120
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 &
124
125 and find many programs like so
126 /uri/0install/rox.sourceforge.net/rox /uri/0install/zero-install.sourceforge.net/links
127
128
129 For additional information the Zero Install homepage is your friend:
130 http://zero-install.sourceforge.net/
131
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...
134
135 CHANGELOG:
136 [2004-6-18]
137 * Initial hint.
Note: See TracBrowser for help on using the browser.