Skip to content

Commit

Permalink
Up-to-date and tested Debian installations
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed May 22, 2017
1 parent b4ee91b commit 17de125
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 24 deletions.
8 changes: 8 additions & 0 deletions _sass/_base.scss
Expand Up @@ -144,6 +144,14 @@ h1, h2, h3, h4, h5, h6 {

.post-content table {
line-height: 80%;
border-spacing: 0;
td, th {
border-bottom: 1px solid;
border-right: 1px solid;
padding: 5px 5px;
vertical-align: middle;
text-align: center;
}
}

/**
Expand Down
161 changes: 137 additions & 24 deletions documentation/agent/installation/linux/deb.md
Expand Up @@ -5,21 +5,60 @@ redirect_from:
- /wordpress/debian/
---

# Using FusionInventory Debian (and Ubuntu) packages

Installation with the debian packages

## -- METHODE 1
***
METHOD 1:

## FusionInventory Agent is also available in Debian Backports repository
# Using FusionInventory Debian (and Ubuntu) packages

echo "deb http://backports.debian.org/debian-backports wheezy-backports main" >> /etc/apt/sources.list
{% include info.html param="
<table>
<thead>
<tr class='header'>
<th>Debian version</th>
<th>Agent version</th>
<th>&nbsp;</th>
<th>Ubuntu version</th>
<th>Agent version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Wheezy - Debian 7 - OldStable</td>
<td>2.2.3-8</td>
<td>&nbsp;</td>
<td>Ubuntu 16.04.2 LTS (xenial)</td>
<td>2.3.16-1</td>
</tr>
<tr>
<td>Jessie - Debian 8 - Stable</td>
<td>2.3.10.1-1</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Sid - Unstable</td>
<td>2.3.16-1</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>" %}


## Install Agent 2.3.10 on Debian 7 using debian-backports repository

echo "deb http://httpredir.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install -t wheezy-backports fusioninventory-agent

## FusionInventory own repository
## Install Agent 2.3.16 from old FusionInventory repository

{% include info.html param="Tested on Debian 7 - Wheezy, Debian 8 - Jessie, Debian 9 - Stretch/Testing<br/>
Debian packaging for recent version is under developement" %}

The FusionInventory project maintains an up-to-date debian package of the most recent version, in a extra repository.
The FusionInventory project maintained a debian package until 2.3.16 version, in a extra repository.

First, you need to import the repository GnuPG key, if apt-key is available you can use these command as root:

Expand All @@ -36,6 +75,10 @@ Now you can install the agent.
apt-get update
apt-get install fusioninventory-agent

Note: On Debian Testing, you need to fix the `/etc/apt/sources.list` update so you use jessie repo. You can better replace the second line from the previous commands with:

echo "deb http://debian.fusioninventory.org/debian/ jessie main" >> /etc/apt/sources.list

The content of the [dists](http://debian.fusioninventory.org/debian/dists/) pages can help you do identify support operating system.

## Install the additional packages
Expand All @@ -52,34 +95,104 @@ Deploy task:

apt-get install fusioninventory-agent-task-deploy

***
METHOD 2:

{% include info.html param="
<table>
<thead>
<tr class='header'>
<th>Tested date</th>
<th>Agent version</th>
<th>Debian version</th>
</tr>
</thead>
<tbody>
<tr>
<td>2017/05/22</td>
<td>2.3.19</td>
<td>Debian 8 minimal</td>
</tr>
<tr>
<td>2017/05/22</td>
<td>2.3.19</td>
<td>Debian 9 minimal (stretch/testing)</td>
</tr>
<tr>
<td>2017/05/22</td>
<td>2.3.18</td>
<td>Debian 9 minimal (stretch/testing)</td>
</tr>
</tbody>
</table>" %}

# Install from source

## Install dependencies :

apt-get -y install wget dmidecode nmap make hwdata
apt-get -y install perl perl-modules libmodule-build-perl libmodule-install-perl
apt-get -y install libfile-which-perl libfile-copy-recursive-perl libuniversal-require-perl
apt-get -y install libtest-http-server-simple-perl libhttp-server-simple-authen-perl libhttp-proxy-perl
apt-get -y install libio-capture-perl libipc-run-perl libnet-snmp-perl libnet-telnet-cisco-perl
apt-get -y install libtest-compile-perl libtest-deep-perl libtest-exception-perl
apt-get -y install libtest-mockmodule-perl libtest-mockobject-perl libtest-nowarnings-perl
apt-get -y install libxml-treepp-perl libproc-daemon-perl libproc-pid-file-perl
apt-get -y install libparallel-forkmanager-perl libnet-ip-perl libparse-edid-perl
apt-get -y install libdigest-sha-perl libtext-template-perl libsocket-getaddrinfo-perl

#########
## Download

## -- METHODE 2
wget https://github.com/fusioninventory/fusioninventory-agent/releases/download/2.3.19/FusionInventory-Agent-2.3.19.tar.gz
tar xvzf FusionInventory-Agent-2.3.19.tar.gz
cd FusionInventory-Agent-2.3.19

## Build and install

## Install dependancies :
### on Debian Stable (tested on Debian 8.8)

apt-get install dmidecode nmap make
perl Makefile.PL
make
make install

### on Debian Testing (tested on Debian 9.0)

Update serveur to Debian Jessie ( no work for me with wheezy-backports )
modify sources.list and "apt-get update && apt-get upgrade && apt-get dist-upgrade" execute
perl -I. Makefile.PL
make
make install

## Fix installation:

### For Fusioninventory-Agent v2.3.19

You also need to edit installed `/usr/local/share/fusioninventory/lib/setup.pm` so it contains:

```
package setup;
apt-get install libmodule-install-perl libmodule-build-perl libhttp-server-simple-psgi-perl libhttp-proxy-perl libio-captureoutput-perl libipc-run-perl libnet-snmp-perl libnet-telnet-cisco-perl libpoe-component-client-dns-perl libpoe-component-resolver-perl libtest-compile-perl libtest-deep-perl libtest-exception-perl libtest-most-perl libhttp-server-simple-authen-perl libio-capture-perl libio-captureoutput-perl libpoe-component-client-ping-perl libtest-http-server-simple-perl libtest-mockmodule-perl libtest-mockobject-perl libtest-nowarnings-perl libtest-failwarnings-perl libtest-warnings-perl libfile-copy-recursive-perl libxml-treepp-perl libproc-daemon-perl libproc-pid-file-perl
use strict;
use warnings;
use base qw(Exporter);
## Download
our @EXPORT = ('%setup');
wget http://forge.fusioninventory.org/attachments/download/1690/FusionInventory-Agent-2.3.13.tar.gz
tar -xvzf FusionInventory-Agent-2.3.13.tar.gz
cd FusionInventory-Agent-2.3.13
our %setup = (
confdir => '/usr/local/etc/fusioninventory',
datadir => '/usr/local/share/fusioninventory',
libdir => '/usr/local/share/fusioninventory/lib',
vardir => '/usr/local/var/fusioninventory',
);
1;
```

## Make
perl Makefile.PL
make
make install
### For Fusioninventory-Agent v2.3.18

Install Data::Structure::Util:

apt-get install libdata-structure-util-perl

## Configure
- edit `/usr/local/etc/fusioninventory/agent.cfg`

***

0 comments on commit 17de125

Please sign in to comment.