Professional Documents
Culture Documents
3
Configuraci del servidor
1. Installa CentOS 6.3 i386 minimal
2. Configura la interfcie de xarxa
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
HWADDR="08:00:27:D7:9B:C2"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
UUID="f17abfb3-7772-47de-ad27-575585b15644"
GATEWAY="192.168.1.1"
NETMASK="255.255.255.0"
IPADDR="192.168.1.XXX"
DNS1="194.179.1.100"
DNS2="8.8.8.8"
enabled=1
servername
Canvia:
#ServerName www.example.com:80
Per:
ServerName 192.168.1.XXX
Enter
PASSWORD
PASSWORD
... Success!
Pgina 2 de 13
symbolic-links=0
escriu:
max_allowed_packet=16M
PASSWORD
Pgina 3 de 13
Enter
Enter
Enter
Enter
Enter
Pgina 4 de 13
Enter
Enter
Enter
Enter
Enter
+----------------------------------------------------------+
| Checking for Make utility...
|
+----------------------------------------------------------+
OK, Make utility found at </usr/bin/make> ;-)
+----------------------------------------------------------+
| Checking for Apache mod_perl version...
|
+----------------------------------------------------------+
Checking for Apache mod_perl version 1.99_22 or higher
Found that mod_perl version 1.99_22 or higher is available.
OK, Apache is using mod_perl version 1.99_22 or higher ;-)
+----------------------------------------------------------+
| Checking for Communication server log directory...
|
+----------------------------------------------------------+
Communication server can create detailled logs. This logs can be enabled
by setting interger value of LOGLEVEL to 1 in Administration console
menu Configuration.
Where to put Communication server log directory [/var/log/ocsinventory-server] ?
Enter
OK, Communication server will put logs into directory /var/log/ocsinventoryserver ;-)
+----------------------------------------------------------+
| Checking for required Perl Modules...
|
+----------------------------------------------------------+
Checking for DBI PERL module...
Pgina 5 de 13
Enter
+----------------------------------------------------------+
| OK, looks good ;-)
|
|
|
| Configuring Communication server Perl modules...
|
+----------------------------------------------------------+
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::Ocsinventory
+----------------------------------------------------------+
| OK, looks good ;-)
|
|
|
| Preparing Communication server Perl modules...
|
+----------------------------------------------------------+
+----------------------------------------------------------+
| OK, prepare finshed ;-)
|
|
|
| Installing Communication server Perl modules...
|
+----------------------------------------------------------+
+----------------------------------------------------------+
| OK, Communication server Perl modules install finished;-)|
|
|
| Creating Communication server log directory...
|
+----------------------------------------------------------+
Creating Communication server log directory /var/log/ocsinventory-server.
Fixing Communication server log directory files permissions.
Configuring logrotate for Communication server.
Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NG
Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-server
+----------------------------------------------------------+
| OK, Communication server log directory created ;-)
|
|
|
| Now configuring Apache web server...
|
+----------------------------------------------------------+
To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,
Setup can name Communication Server Apache configuration file
'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'.
Do you allow Setup renaming Communication Server Apache configuration file
to 'z-ocsinventory-server.conf' ([y]/n) ?
Enter
Pgina 6 de 13
Enter
+----------------------------------------------------------+
| Checking for Administration Server directories...
|
+----------------------------------------------------------+
CAUTION: Setup now install files in accordance with Filesystem Hierarchy
Standard. So, no file is installed under Apache root document directory
(Refer to Apache configuration files to locate it).
If you're upgrading from OCS Inventory NG Server 1.01 and previous, YOU
MUST REMOVE (or move) directories 'ocsreports' and 'download' from Apache
root document directory.
If you choose to move directory, YOU MUST MOVE 'download' directory to
Administration Server writable/cache directory (by default
/var/lib/ocsinventory-reports), especialy if you use deployement feature.
Do you wish to continue ([y]/n)?
Enter
/var/www
/var/www
Pgina 7 de 13
ocs_db_name
Canvia:
Per:
Cerca:
ocs_db_local
Canvia:
Per:
Cerca:
ocs_db_pwd
Canvia:
Per:
post_max
Canvia:
post_max_size = 8M
Per:
post_max_size = 200M
Cerca:
upload_max
Canvia:
upload_max_filesize = 2M
Per:
upload_max_filesize = 200M
Pgina 8 de 13
Pgina 9 de 13
amb
el
nom
d'usuari
admin
la
Pgina 10 de 13
Pgina 11 de 13
3. Descomprimeix i installa
tar zxvf Ocsinventory-Unix-Agent-2.0.5.tar.gz
cd Ocsinventory-Unix-Agent-2.0.5
env PERL_AUTOINSTALL=1 perl Makefile.PL
make
make install
/usr/bin/perl postinst.pl
Do you want to configure the agent
Please enter 'y' or 'n'?> [y]
Where
0 ->
1 ->
2 ->
?>
Enter
2
Enter
192.168.1.XXX
Enter
Enter
tag?>
tallerXXX
Enter
Enter
Enter
Enter
Enter
Enter
Pgina 12 de 13
Pgina 13 de 13