]> git.donarmstrong.com Git - cran2deb.git/blob - branch/multisys/inst/doc/INSTALL_NOTES
4d47890900fa047990e26153de285fecf0dc8964
[cran2deb.git] / branch / multisys / inst / doc / INSTALL_NOTES
1 git clone git://github.com/blundellc/cran2deb.git
2
3 apt-get system requirements from DESCRIPTION
4 apt-get install cdbs
5
6 # install a web server
7 apt-get install thttpd
8
9 # add a group for cran2deb people
10 addgroup cran2deb
11 usermod -a -G cran2deb cb
12 usermod -a -G cran2deb edd
13
14 # set up web space
15 mkdir /var/www/cran2deb
16 chgrp cran2deb /var/www/cran2deb
17 chmod 3775 /var/www/cran2deb
18
19 # install prereq R packages
20 r -e "install.packages(c('ctv','RSQLite','DBI','digest'))"
21 R CMD INSTALL cran2deb
22
23 # set up cran2deb space, as per README
24 cp /usr/local/lib/R/site-library/cran2deb/exec/cran2deb  /usr/local/bin
25 root=$(cran2deb root)
26 mkdir /etc/cran2deb
27 chgrp cran2deb /etc/cran2deb
28 chmod 3775 /etc/cran2deb
29 copy ROOT/etc/* to /etc/cran2deb
30 ln -s /var/www/cran2deb/ /etc/cran2deb/archive
31 edit /etc/cran2deb/pbuilder.in:
32 OTHERMIRROR='deb http://localhost/users/cb/cran2deb/ unstable/$(ARCH)/ | deb http://localhost/users/cb/cran2deb/ unstable/all/'
33 MIRRORSITE='http://ftp.debian.org/debian/'
34 to
35 OTHERMIRROR='deb http://localhost/cran2deb/ unstable/$(ARCH)/ | deb http://localhost/cran2deb/ unstable/all/'
36 MIRRORSITE='http://ftp.at.debian.org/debian/'
37
38 # fix permissions for group usage.
39 mkdir /var/cache/cran2deb
40 chgrp cran2deb /var/cache/cran2deb
41 chmod 3775 /var/cache/cran2deb
42 chgrp -R cran2deb $root
43 chmod 3775 $root
44 chmod -R g+w $root
45
46 (log out then log in to get gid cran2deb)
47
48 # build pbuilder archive, initialise database
49 cran2deb update
50
51 # check it works
52 cran2deb build zoo
53
54 # is handy
55 apt-get install sqlite3
56