]> git.sur5r.net Git - i3/i3/blob - website/docs/building_ubuntu_9.04.html
Update „Building i3 on Ubuntu 9.04” howto
[i3/i3] / website / docs / building_ubuntu_9.04.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4 <head>
5 <title>i3 - an improved dynamic tiling window manager</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <style type="text/css">
8 body {
9         text-align: justify;
10         max-width: 800px;
11 }
12
13 li {
14         margin-bottom: 10px;
15 }
16 </style>
17 </head>
18 <body>
19
20 <h1>Howto build i3 on Ubuntu 9.04 for the amd64 architecture</h1>
21
22 <p>
23   Due to Ubuntu 9.04’s lack of recent libxcb* packages, we cannot simply provide a debian
24   package. The following howto will explain how to build one for yourself after downloading
25   the necessary libxcb* packages from Debian.
26 </p>
27
28 <p>
29   Clone the i3 repository
30 </p>
31
32 <pre>
33 $ git clone http://code.stapelberg.de/git/i3
34 </pre>
35
36 <p>
37   The Ubuntu repositories do not contain the required versions of several packages. Hence we need
38   to get them from Debian. Create a new directory for the .debs
39 </p>
40
41 <pre>
42 $ mkdir deb &amp;&amp; cd deb
43 </pre>
44
45 <p>
46   …and download the files
47 </p>
48
49 <pre>
50 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-wm0-dev_0.3.3-2+b1_amd64.deb"
51 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-aux0-dev_0.3.3-2+b1_amd64.deb"
52 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-wm0_0.3.3-2+b1_amd64.deb"
53 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-atom1-dev_0.3.3-2+b1_amd64.deb"
54 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-event1-dev_0.3.3-2+b1_amd64.deb"
55 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-property1-dev_0.3.3-2+b1_amd64.deb"
56 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-icccm1-dev_0.3.3-2+b1_amd64.deb"
57 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-wm0_0.3.3-2+b1_amd64.deb"
58 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-atom1_0.3.3-2+b1_amd64.deb"
59 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-icccm1_0.3.3-2+b1_amd64.deb"
60 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-property1_0.3.3-2+b1_amd64.deb"
61 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-event1_0.3.3-2+b1_amd64.deb"
62 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-aux0_0.3.3-2+b1_amd64.deb"
63 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-keysyms0_0.3.3-2+b1_amd64.deb"
64 $ wget "http://ftp.de.debian.org/debian/pool/main/x/xcb-util/libxcb-keysyms0-dev_0.3.3-2+b1_amd64.deb"
65 </pre>
66
67 <p>
68   We install these:
69 </p>
70
71 <pre>
72 $ sudo dpkg -i *.deb
73 </pre>
74
75 <p>
76   then change into the i3 directory and build the package:
77 </p>
78
79 <pre>
80 $ cd ../i3
81 $ dpkg-buildpackage
82 </pre>
83
84 <p>
85   and install it
86 </p>
87
88 <pre>
89 $ sudo dpkg -i ../i3-wm_1.0-1_amd64.deb
90 $ sudo dpkg -i ../i3_1.0-1_amd64.deb
91 </pre>
92
93 <p>
94   What remains is to configure i3. Create the default directory for i3’s config and copy the default config to it
95 </p>
96
97 <pre>
98 $ mkdir ~/.i3
99 $ cp /etc/i3/config ~/.i3/config
100 </pre>
101
102 <p>
103 Lastly, we need to set up i3 as default window manager. Create a new file ~/.xinitrc
104 </p>
105
106 <pre>
107 $ vim ~/.xinitrc
108 </pre>
109
110 <p>
111   and enter the following lines:
112 </p>
113
114 <pre>
115 #!/bin/sh
116 xsetroot -solid black 
117 exec /usr/bin/i3
118 </pre>
119
120 <p>
121   Close vim and create a link to ~/.xinitrc and link it to ~/.Xsession:
122 </p>
123
124 <pre>
125 $ ln -s ~/.xinitrc ~/.Xsession
126 </pre>
127
128 <p>
129   You are done. When you are in the login screen, select "Sessions", and switch to "Default" or "Xsession" to start i3.
130 </p>