Debian Install 2 0
Version 10 (Mary Laser, 04/16/2012 11:52 pm)
| 1 | 1 | Mary Laser | h1. Installing FOSSology on Debain |
|---|---|---|---|
| 2 | 1 | Mary Laser | |
| 3 | 1 | Mary Laser | Packages for deb based distributions are available from different sources, depending on release. Consult the appropriate instructions below for the line to add to your /etc/apt/sources.list file. |
| 4 | 1 | Mary Laser | |
| 5 | 1 | Mary Laser | |
| 6 | 2 | Mary Laser | |
| 7 | 1 | Mary Laser | h2. Debian squeeze (currently stable) |
| 8 | 1 | Mary Laser | |
| 9 | 1 | Mary Laser | FOSSology 2.0 debs, produced by the FOSSology team. These debs have not yet been submitted to debian upstream. Older versions of FOSSology are available from the debian and ubuntu repositories. To use the FOSSology produced debs add the line below to your /etc/apt/source.list file. |
| 10 | 1 | Mary Laser | |
| 11 | 1 | Mary Laser | deb http://fossology.org/debian/2.0/squeeze ./ |
| 12 | 1 | Mary Laser | |
| 13 | 1 | Mary Laser | h2. Debian sid (currently testing) |
| 14 | 1 | Mary Laser | |
| 15 | 1 | Mary Laser | FOSSology 2.0 debs, produced by the FOSSology team. These debs have not yet been submitted to debian upstream. Older versions of FOSSology are available from the debian and ubuntu repositories. To use the FOSSology produced debs add the line below to your /etc/apt/source.list file. |
| 16 | 1 | Mary Laser | |
| 17 | 1 | Mary Laser | deb http://fossology.org/debian/2.0/sid ./ |
| 18 | 1 | Mary Laser | |
| 19 | 1 | Mary Laser | h2. Debian wheezy (unstable) |
| 20 | 1 | Mary Laser | |
| 21 | 1 | Mary Laser | The latest version of fossology is not available in wheezy. Use the fossology debs. |
| 22 | 2 | Mary Laser | |
| 23 | 2 | Mary Laser | h2. Single vs. Multi-system installs: |
| 24 | 2 | Mary Laser | |
| 25 | 2 | Mary Laser | The FOSSology software has been split into separate packages by function and analysis agent in order to make it easy to add, update and install individual agents. |
| 26 | 2 | Mary Laser | |
| 27 | 2 | Mary Laser | *For a single system package install*, (as root) type @apt-get install fossology@ This will install all packages needed to run FOSSology on a single system. |
| 28 | 2 | Mary Laser | |
| 29 | 4 | Mary Laser | *For a cluster install*, follow these steps (as root): |
| 30 | 4 | Mary Laser | # Install the FOSSology server... db, web server, agents, etc... |
| 31 | 4 | Mary Laser | @apt-get install fossology@ |
| 32 | 1 | Mary Laser | # Install the "agent" systems where the analysis agents will run. |
| 33 | 1 | Mary Laser | @apt-get install fossology-common fossology-buckets fossology-copyright fossology-delagent fossology-mimetype fossology-nomos fossology-pkgagent fossology-ununpack fossology-wgetagent@ |
| 34 | 4 | Mary Laser | # edit fossology.conf & Db.conf on the server and copy to the agents |
| 35 | 1 | Mary Laser | +Db.conf+ |
| 36 | 6 | Mary Laser | <pre> |
| 37 | 4 | Mary Laser | dbname=fossology; |
| 38 | 4 | Mary Laser | host=<server_hostname>; |
| 39 | 4 | Mary Laser | user=fossy; |
| 40 | 4 | Mary Laser | password=fossy; |
| 41 | 6 | Mary Laser | </pre> |
| 42 | 4 | Mary Laser | +fossology.conf+ |
| 43 | 6 | Mary Laser | <pre> |
| 44 | 5 | Mary Laser | ; proxy settings that will be used by fossology agents |
| 45 | 5 | Mary Laser | ; examples: |
| 46 | 1 | Mary Laser | ;http_proxy = http://server:8080 |
| 47 | 1 | Mary Laser | ;ftp_proxy = http://server:3128 |
| 48 | 5 | Mary Laser | ;no_proxy = localhost,10.1.2.3 |
| 49 | 6 | Mary Laser | </pre> |
| 50 | 6 | Mary Laser | <pre> |
| 51 | 1 | Mary Laser | [HOSTS] |
| 52 | 10 | Mary Laser | localhost = localhost /etc/fossology 10 |
| 53 | 10 | Mary Laser | <agent1_hostname>= <agent1_hostname> /etc/fossology 10 |
| 54 | 10 | Mary Laser | <agent2_hostname>= <agent2_hostname> /etc/fossology 10 |
| 55 | 6 | Mary Laser | </pre> |
| 56 | 6 | Mary Laser | <pre> |
| 57 | 1 | Mary Laser | [REPOSITORY] |
| 58 | 1 | Mary Laser | <server_hostname>[] = * 00 55 |
| 59 | 1 | Mary Laser | <agent1_hostname>[] = * 56 aa |
| 60 | 1 | Mary Laser | <agent2_hostname>[] = * ab ff |
| 61 | 6 | Mary Laser | </pre> |
| 62 | 6 | Mary Laser | +Don't forget to copy these conf files to each of your agents!+ |
| 63 | 6 | Mary Laser | # Make your repository available to the entire cluster. This is highly dependent on your storage and filesystem type. These instructions are for a distributed, nfs cross-mounted repository as per the [REPOSITORY] section of the fossology.conf file above. |
| 64 | 8 | Mary Laser | a) Cross-mount filesystems for your repository data on all systems (in this case, the 3 systems are _server, agent1 & agent2_) and create a link called localhost pointing to the host where it's created (there is an outstanding bug #1809 to create the localhost link): |
| 65 | 7 | Mary Laser | <pre> |
| 66 | 7 | Mary Laser | root@server# ls -al |
| 67 | 7 | Mary Laser | total 20 |
| 68 | 7 | Mary Laser | drwxrwx--- 5 fossy fossy 4096 Apr 12 15:58 . |
| 69 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 15:12 .. |
| 70 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 13:27 agent1 |
| 71 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 05:40 agent2 |
| 72 | 7 | Mary Laser | lrwxrwxrwx 1 root root 5 Apr 12 15:58 localhost -> server |
| 73 | 7 | Mary Laser | drwxrwx--- 2 fossy fossy 4096 Apr 10 14:32 server |
| 74 | 7 | Mary Laser | </pre> |
| 75 | 7 | Mary Laser | <pre> |
| 76 | 7 | Mary Laser | root@agent1# ls -al |
| 77 | 7 | Mary Laser | total 20 |
| 78 | 7 | Mary Laser | drwxrwx--- 5 fossy fossy 4096 Apr 12 15:58 . |
| 79 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 15:12 .. |
| 80 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 13:27 agent1 |
| 81 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 05:40 agent2 |
| 82 | 7 | Mary Laser | lrwxrwxrwx 1 root root 5 Apr 12 15:58 localhost -> agent1 |
| 83 | 7 | Mary Laser | drwxrwx--- 2 fossy fossy 4096 Apr 10 14:32 server |
| 84 | 7 | Mary Laser | </pre> |
| 85 | 7 | Mary Laser | <pre> |
| 86 | 7 | Mary Laser | root@agent2# ls -al |
| 87 | 7 | Mary Laser | total 20 |
| 88 | 7 | Mary Laser | drwxrwx--- 5 fossy fossy 4096 Apr 12 15:58 . |
| 89 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 15:12 .. |
| 90 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 13:27 agent1 |
| 91 | 7 | Mary Laser | drwxrwx--- 3 fossy fossy 4096 Apr 10 05:40 agent2 |
| 92 | 7 | Mary Laser | lrwxrwxrwx 1 root root 5 Apr 12 15:58 localhost -> agent2 |
| 93 | 7 | Mary Laser | drwxrwx--- 2 fossy fossy 4096 Apr 10 14:32 server |
| 94 | 7 | Mary Laser | </pre> |
| 95 | 7 | Mary Laser | Make sure your user:group is fossy:fossy and permission are 770 on all systems in your cluster. |
| 96 | 8 | Mary Laser | b) Create repository sub-directories on all systems in the cluster (there is an outstanding bug #1809 to perform this step during install): |
| 97 | 7 | Mary Laser | <pre> |
| 98 | 7 | Mary Laser | cd localhost |
| 99 | 7 | Mary Laser | mkdir files gold logs ununpack wget |
| 100 | 7 | Mary Laser | chown -R fossy:fossy * |
| 101 | 1 | Mary Laser | chmod 770 * |
| 102 | 1 | Mary Laser | </pre> |
| 103 | 9 | Mary Laser | # Other configuration? |
| 104 | 9 | Mary Laser | a) postgresql? |
| 105 | 9 | Mary Laser | b) apache2? |
| 106 | 9 | Mary Laser | c) php? |