5 Copyright (c) the Notion team 2010-2014.
6 Copyright (c) Tuomo Valkonen 1999-2009.
11 Building and installing
12 -----------------------
16 https://sourceforge.net/apps/mediawiki/notion/index.php?title=Development
18 1. Get the source code.
19 git clone git://notion.git.sourceforge.net/gitroot/notion/notion
21 2. In addition to the standard C library headers and the GNU toolchain, you
22 will need the following tools and libraries for building Notion.
24 * Lua 5.1 interpreter and header files <http://www.lua.org/>
25 * Xlib header files <http://cgit.freedesktop.org/xorg/lib/libX11/>
26 * libXext header files <http://cgit.freedesktop.org/xorg/lib/libXext/>
27 * libSM header files <http://cgit.freedesktop.org/xorg/lib/libSM/>
28 * gettext <http://www.gnu.org/software/gettext/>
30 If you want to build the mod_xinerama and mod_xrandr module, which provide
31 enhanced multihead support, you will further need the following libraries.
33 * Xinerama header files <https://sourceforge.net/projects/xinerama/>
34 * XRandR header files <http://www.x.org/wiki/Projects/XRandR/>
36 On a Debian based system, these dependencies are provided by the following
38 build-essential lua5.1 liblua5.1-0-dev libx11-dev libxext-dev libsm-dev gettext
39 libxinerama-dev libxrandr-dev
41 3. If the default build settings don't suit you, review system-autodetect.mk
42 and either override values from the environment or in a newly added
43 system-local.mk or make changes directly to system-autodetect.mk.
45 4. If you want to build some extra modules now or do not want to build
46 some of the standard modules, edit `modulelist.mk`.
48 5. Run `make`. Note that `make` here refers to GNU make which is usually
49 named `gmake` on systems with some other implementation of make as
52 6. Run `make install`, as root if you set `$PREFIX` in `system.mk` to a
53 directory that requires those privileges.
55 YOU SHOULD NOT SKIP THIS STEP unless you know what you are doing. Notion
56 will refuse to start if it can not find all the necessary uncorrupt
57 configuration files either in `$PREFIX/etc/notion/` or in `~/.notion/`.
59 7. How to best set up `startx` or whatever to start Notion instead of your
60 current window manager depends on your system's setup. A good guess
61 is creating or modifying an executable shell script `.xsession` in your
62 home directory to start Notion. This should usually (but not always) work
63 if you're using some X display/login manager. If `~/.xsession` does not
64 help and you're not using a display manager, modifying `~/.xinitrc` or
65 creating one based on your system's `xinitrc` (wherever that may be;
66 use `locate`) may be what you need to do. Note that unlike `.xsession`,
67 a `.xinitrc` should usually do much more setup than simply start a few
68 programs of your choice.
71 Some optional installation steps
72 --------------------------------
74 1. The F5 and F6 keys expect to find the program `run-mailcap` to select
75 a program to view a file based on its guessed MIME type. Unless you are
76 using Debian, most likely you don't have it, but any other similar
77 program (or just plain old text editor) will do as well -- just modify the
78 bindings in `cfg_notioncore.lua`. Of course, if you don't want to use the
79 feature at this time or never, you may simply skip this step. If you want
80 to use `run-mailcap`, it can be found from the following address, as a
81 source tarball as well:
83 <http://www.debian.org/Packages/unstable/net/mime-support.html>
85 2. Notion supports caching known man-pages in a file for faster man-page
86 completion in the F1 man page query. To enable this feature, you must
87 periodically run a cronjob to build this list. To create a system-wide
88 man page cache, run `crontab -e` (might vary depending on platform) as
89 root and enter a line such as follows:
91 15 05 * * * $SHAREDIR/ion-completeman -mksyscache
93 Replace `$SHAREDIR` with the setting from `system.mk`. This example
94 runs daily at 05:15, but you may modify the run times to your needs;
95 see the crontab manual.
97 If you can't or do not want to build a system-wide man page cache, run
98 `crontab -e` as your normal user and replace `-mksyscache` with
99 `-mkusercache` above. The cache file will be `~/.notion/mancache`.
101 It may also be useful to run `ion-completeman` with the suitable
102 `-mk*cache` argument once manually to build the initial cache.
104 If the `MANPATH` environment variable is not set on your system and it
105 does not have the `manpath` command (or it does not print anything
106 sensible), you may also want to set the `ION_MANPATH` environment
107 variable to the list of paths where the system stores manual pages.
113 For help on modifying Notion's configuration files, PLEASE READ THE DOCUMENT
114 "Configuring and extending Notion with Lua" available from the Notion web page,
115 listed at the top of this file.
118 Questions, comments, problems?
119 ------------------------------
121 If the available documentation does not answer your question, please
122 post it to the mailing list. Details can be found on the Notion web page
123 listed at the top of this file.
129 Notion was written by the Notion team, based on Ion which was written by Tuomo
132 The dock module was written by Tom Payne and Per Olofsson.
134 `utils/ion-completefile/ion-completefile.c` is based on editline, (c)
135 1992 Simmule Turner and Rich Salz. See the file for details.
137 The code that `de/fontset.c` is based on seems to have been originally
138 written by Tomohiro Kubota, but see the file for details.
140 Various (minor) patches have been contributed by other individuals
141 unlisted here. See the mailing list archives and the darcs source
142 repository history at <http://iki.fi/tuomov/repos/>. For translators
143 see the individual `.po` files in `po/`.
145 The code in `de/unicode' (producing `de/precompose.c') is taken from
148 See `libtu/README` for code by others integrated into libtu.