Instalacao Gnuteca Centos v.0.1
Instalacao Gnuteca Centos v.0.1
Instalacao Gnuteca Centos v.0.1
Por Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
1
1.1
1.1.1
1.1.2
1.2
1.3
1.4
1.4.1
1.4.2
1.4.3
1.4.4
2
2.1
COMANDOS TEIS:
TAR [PARMETROS] [NOME_DO_ARQUIVO_TAR] [ARQUIVOS_DE_ORIGEM]
RPM
INSTALAO DO OS CENTOS 5.4
BEM-VINDO
AMBIENTE GRFICO : INSTALAO DE PACOTES :
INSTALAO DE PROGRAMAS AUXILIARES:
INSTALAO DO APACHE 2.2 E PHP 5.3
INSTALAO DO POSTGRESQL 8.4
INSTALAO DO GNUTECA 3.2
2
2
2
3
3
3
4
4
4
6
7
10
10
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
3
Descompactar tar :
tar xf nomearquivo.tar
1.1.2 RPM
1.3 Bem-vindo
Ainda h mais alguns passos... : clicar Avanar.
Firewall : por enquanto marque ssh, www(http), WWW Seguro (HTTPS)
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
4
Ao clicar no boto sim... : Sim
SELinux : por enquanto: Ajuste do SELinux : Desabilitado
Clicar em : Sim
Criar Usurio : Nome do Usurio :
Placa de Som : Configuraes de volume 0%
CDs Adicionais : Terminar
O sistema deve ser reiniciado agora para que as suas selees
tenham efeito : OK
1.4.1.1 Ftp
# yum install vsftpd
# cd /etc/vsftpd
# cp vsftpd.conf vsftpd.conf.default
# vim vsftpd.conf
descomente : anon_upload_enable=YES
descomente : anon_mkdir_write_enable=YES
descomente : ascii_upload_enable=YES
descomente : ascii_download_enable=YES
salve e renicie o servio com
# service vsftpd restart
Aps transferir os arquivos, remova o programa ou comente as
instrues acima a fim de eliminar uma falha de segurana.
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
5
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epelrelease-5-4.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release5.rpm
# yum --enablerepo=remi install httpd php php-common
# yum install httpd php php-common
Selecione y para todas as perguntas.
# yum --enablerepo=remi install php-pear php-pdo php-pgsql phppecl-memcache php-gd php-mbstring php-mcrypt php-xml php-devel
# yum install php-pear php-pdo php-pgsql php-pecl-memcache php-gd
php-mbstring php-mcrypt php-xml php-devel
Selecione y para todas as perguntas.
Obs: removemos o pacote php-mysql por estar em conflito com outro
pacote. Incluimos mais tarde outro item: php-devel
Outras dependncias do Gnuteca3.2 :
# yum install gtk+ gd
Y para todas as perguntas
# service httpd start
# chkconfig --levels 235 httpd on
# vim /var/www/html/teste.php
Incluir e salvar:
<?php
phpinfo();
?>
Utilize o browser e digite o endereo localhost/teste.php ou
127.0.0.1/teste.php e veja se aparece a pgina de teste.
Alterar o arquivo /etc/httpd/conf/httpd.conf
# vim /etc/httpd/conf/httpd.conf
Comentar ServerRoot /etc/httpd
Timeout 300
KeepAlive On
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
6
Apartir da linha 306, prximo a mensagem de This should be
changed to whatever you set DocumentRoot to.:
Comentar DocumentRoot /var/www/html
Comentar <Directory /var/www/html>
Comentar Options Indexes FollowSymLinks
Comentar AllowOverride None
Comentar Order allow,deny
Comentar Allow from all
Comentar </Directory>
Acrescentar no final do arquivo:
<VirtualHost *:80>
DocumentRoot /var/www/miolo25-gnuteca/html
ServerName Nomedohost ou IP do micro exemplo :
172.20.101.34
<Directory "/var/www/miolo25-gnuteca/html">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
ServerSignature On
php_value memory_limit 512M
php_value magic_quotes_gpc On
php_value short_open_tag On
php_value session.gc_maxlifetime 18000
php_value error_reporting ~E_ALL
DirectoryIndex gnuteca.php index.php index.html index.htm
index.shtml
LogLevel debug
HostNameLookups off
</VirtualHost>
Salve e reinicie o servio httpd
* Como o gnuteca ainda no esta instalado, ao reinicar o servio
httpd um erro informando que a pasta miolo25-gnuteca no existe
ser mostrada. No se preocupe pois o pacote do RPM do gnuteca vai
criar o diretrio.
7
Digite y para todas as perguntas
# /etc/init.d/postgresql initdb
# chkconfig --level 35 postgresql on
# vim /var/lib/pgsql/data/postgresql.conf
alterar
###descomentar e alterar ssl = true
###descomentar e alterar log_line_prefix = %t
###descomentar e alterar data_directory = /var/lib/pgsql/data
###descomentar e alterar hba_file =
/var/lib/pgsql/data/pg_hba.conf
###descomentar e alterar ident_file =
/var/lib/pgsql/data/pg_ident.conf
###descomentar e alterar port = 5432
###descomentar e alterar unix_socket_directory =
/var/run/postgresql
# service postgresql start
###### rpm ivh
######ftp://mirror.switch.ch/pool/3/mirror/centos/5.6/updates/i386
/RPMS/postgresql84-8.4.7-1.el5_6.1.i386.rpm
###### ftp.centos.org/5.6/updates/i386/RPMS/postgresql84-8.4.71.el5_6.1.i386.rpm
##### yum enablerepo=remi downgrade postfresql84-libs
##### rpm ivh
http://mirror.centos.org/centos/5/os/i386/CentOS/postgresql848.4.5-1.el5_5.1.i386.rpm
8
Aps instalao criar a base de dados *conforme manual
disponiblizado pela solis. Aqui esto apenas os comandos:
# vim /var/lib/pgsql/data/pg_hba.conf
alterar o campo Method de ident para trust
salvar e reinicar o servio com :
# service postgresql restart
# createdb -U postgres gnuteca3 -E latin1 --locale=POSIX -T
template0
# psql -U postgres gnuteca3
no prompt do psql digite:
# \i /var/www/miolo25gnuteca/modules/gnuteca3/misc/sql/dump_gnuteca3.sql
# \i /var/www/miolo25gnuteca/modules/gnuteca3/misc/sql/dump_gnuteca3_users.sql
# \q
Alterar permisso de pastas seguintes pastas com:
# chown apache:apache /var/www/miolo25gnuteca/modules/gnuteca3/html/files/*
# chwon apache:apache /var/www/miolo25-gnuteca/var/log
1.4.4.2 Consideraes:
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
9
Teste o acesso a biblioteca localmente digitando no Navegador o
ipdamaquina ou localhost
Para acessar o mdulo de administrao, digite no seu navegador o
ip_da_maquina/index.php se voc informou o ip no VirtualHosts,
localhost/index.php ou 127.0.0.1/index.php.
O usurio/password inicial gnuteca/gnuteca.
Em Home/Configurao/Sistema/Conferir dependncias possvel
notar que h itens no resolvidos mas que at o momento no se
fizeram notar pelo seu efeito negativo. A saber:
Yaz instalada (usada pela Z3950): No conseguimos ainda realizar a
instalao apesar de, pelo que pudemos obter em pesquisa, estar no
pacote gtk+.
E-mail est configurado e enviando: no testado;
Impressora usando sistema de socket : no testado;
Verso do PHP: 5.1.6 5.3 ou maior: Como dito anteriormente o
gcron no roda da verso 5.4. O gcron responsvel por
possibilitar a pesquisa do acervo.
Verso do PostgreSQL : Cliente/Protocolo/Servidor8.1.22/3/8.4.75.2
ou maior : a principio a verso do cliente (pgsql) est correta
(8.4) mas aqui aparece como erro.
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
10
2.1 Planilhas:
As planilhas abaixo descritas foram obtidas da verso anterior do
Gnuteca:
Categoria
BA
Nvel
4
BK
CF
MU
Campos
000=020.a,041.a,090.a,090.b,017.a,
100=100.a,110.a,110.c,110.d,110.n,111.a,111.c,111.d,111.n,
200=240.a,245.a,245.b,245.c,246.a,246.b,250.a,260.a,260.b,260.c,
300=300.a,300.b,300.e,
400=440.a,
500=500.a,502.a,504.a,505.a,
600=600.a,650.a,650.z,
700=700.a,710.a,710.b,710.t,711.a,711.c,711.d,711.n,711.t,740.a,773.w,
900=901,902,903,904,
Exemplares=949,
000=020.a,041.a,041.h,090.a,090.b,017.a,
100=100.a,110.a,110.c,110.d,110.n,111.a,111.c,111.d,111.n,
200=240.a,245.a,245.b,245.c,246.a,246.b,250.a,260.a,260.b,260.c,
300=300.a,300.b,300.e,
400=440.a,
500=500.a,502.a,504.a,505.a,546.a,
600=600.a,650.a,
700=700.a,710.a,710.b,710.t,711.a,711.c,711.d,711.n,711.t,740.a,
900=901,902,903,904,950.a,
Exemplares=949,
Arquivo computador=024.a,024.c,024.d,024.z,024.2,040.a,040.b,041.a,041.b,041.h,
1xx=100.a,100.b,100.c,100.d,100.e,100.q,100.4,110.a,110.b,110.c,110.d,110.e,110.l,110.n,
110.4,111.a,111.c,111.d,111.e,111.k,111.l,,111.n,111.4,
2xx=240.a,240.d,240.f,240.g,240.h,240.k,240.l,240.m,240.n,240.o,240.p,243.a,243.d,243.f,
243.g,243.h,243.k,243.n,243.p,243.l,245.a,245.b,245.c,245.h,245.n,245.p,250.a,250.b,256.a
,260.a,260.b,260.c,
3xx=300.a,300.b,300.c,300.e,
4xx=440.a,440.n,440.p,440.v,440.x,
5xx=500.a,501.a,505.a,505.r,505.t,506.a,506.d,506.e,516.a,521.a,530.a,533.a,533.b,533.c,
533.d,534.a,534.b,534.c,534.e,534.p,534.t,538.a,565.a,565.b,565.c,565.d,565.e,590.a,590.b
,590.c,
6xx=600.a,600.b,600.c,600.d,600.e,600.f,600.l,600.n,600.p,600.q,600.t,600.v,600.x,600.y,6
00.z,600.2,610.a,610.b,610.c,610.d,610.e,610.f,610.l,610.n,610.p,610.q,610.t,610.v,610.x,6
10.y,610.z,610.2,611.a,611.c,611.d,611.e,611.k,611.l,611.n,611.t,611.v,611.x,611.y,611.z,6
11.2,650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=700.a,700.b,700.c,700.d,700.e,700.l,700.q,700.t,700.4,710.a,710.b,710.c,710.d,710.e,7
10.l,710.n,710.t,710.4,711.a,711.c,711.d,711.e,711.k,711.l,711.n,711.t,711.4,720.a,720.e,72
0.4,740.a,740.n,740.p,
8xx=856.a,856.b,856.c,856.d,856.q,856.u,856.f,856.2,
Msica=028.a,028.b,040.a,040.b,041.a,041.b,041.h,
1xx=100.a,100.b,100.c,100.d,100.e,100.q,100.4,110.a,110.b,110.c,110.d,110.e,110.l,110.n,
110.4,111.a,111.c,111.d,111.e,111.k,111.l,111.n,111.4,
2xx=240.a,240.d,240.f,240.g,240.h,240.k,240.l,240.m,240.n,240.o,240.p,243.a,243.d,243.f,
243.g,243.h,243.k,243.n,243.p,243.l,245.a,245.b,245.c,245.h,245.n,245.p,250.a,250.b,254.a
,256.a,260.a,260.b,260.c,260.e,260.f,260.g,
3xx=300.a,300.b,300.c,300.e,306.a,
4xx=440.a,440.n,440.p,440.v,440.x,
5xx=500.a,501.a,505.a,505.r,505.t,506.a,506.d,506.e,508.a,518.a,521.a,530.a,586.a,590.a,
590.b,590.c,
6xx=600.a,600.b,600.c,600.d,600.e,600.f,600.l,600.n,600.p,600.q,600.t,600.v,600.x,600.y,6
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
11
Categoria
Nvel
MX
SA
SE
SE
VM
Campos
00.z,600.2,610.a,610.b,610.c,610.d,610.e,610.f,610.l,610.n,610.p,610.q,610.t,610.v,610.x,6
10.y,610.z,610.2,611.a,611.c,611.d,611.e,611.k,611.l,611.n,611.t,611.v,611.x,611.y,611.z,6
11.2,650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=700.a,700.b,700.c,700.d,700.e,700.l,700.q,700.t,700.4,710.a,710.b,710.c,710.d,710.e,7
10.l,710.n,710.t,710.4,711.a,711.c,711.d,711.e,711.k,711.l,711.n,711.t,711.4,720.a,720.e,72
0.4,773.a,773.b,773.d,773.g,773.s,773.t,773.w,773.6,
8xx=856.a,856.b,856.c,856.d,856.q,856.u,856.2,
9xx=901,902,903,904,950.a,
Exemplares=949,
Materiais diversos=040.a,040.b,041.a,041.b,041.h,
1xx=100.a,100.b,100.c,100.d,100.e,100.q,100.4,110.a,110.b,110.c,110.d,110.e,110.l,110.n,
110.4,
2xx=240.a,240.g,240.h,243.a,243.g,243.h,245.a,245.b,245.c,245.h,245.n,245.p,245.y,250.a,
250.b,260.a,260.b,260.c,260.e,260.f,260.g,
3xx=300.a,300.b,300.c,300.e,
4xx=440.a,440.n,440.p,440.v,
5xx=500.a,501.a,505.a,505.r,505.t,506.a,506.d,506.e,520.a,520.b,521.a,530.a,533.a,533.b,
533.c,533.d,534.a,534.b,534.c,534.e,534.p,534.t,562.a,562.b,562.c,562.d,562.e,590.a,590.b
,590.c,591.a,
6xx=600.a,610.a,650.a,650.v,650.x,650.y,650.z,650.2,653.a,
7xx=700.a,700.t,700.4,710.a,710.g,710.n,710.t,720.a,740.a,
8xx=856.a,856.b,856.q,856.u,856.2,
9xx=901,902,903,904,950.a,
Exemplares=949,
Artigo=040.a,040.b,041.a,041.b,041.h,090.a,090.b,
1xx=100.a,100.e,110.a,110.e,111.a,111.e,
2xx=245.a,245.b,245.c,245.h,245.n,245.p,246.a,246.b,246.f,246.g,246.h,246.n,246.p,
3xx=300.a,300.b,300.c,300.e,362.a,
5xx=500.a,505.a,505.r,505.t,506.a,506.d,506.e,518.a,520.a,520.b,521.a,530.a,533.a,533.b,
533.c,533.d,534.a,534.b,534.c,534.e,534.p,534.t,562.a,562.b,562.c,562.d,562.e,590.a,590.b
,590.c,592.a,592.b,592.c,592.d,592.e,592.f,592.y,592.z,
6xx=600.a,600.b,600.c,600.d,600.e,600.f,600.l,600.n,600.p,600.q,600.t,600.v,600.x,600.y,6
00.z,600.2,610.a,610.b,610.c,610.d,610.e,610.f,610.l,610.n,610.p,610.q,610.t,610.v,610.x,6
10.y,610.z,610.2,611.a,611.c,611.d,611.e,611.k,611.l,611.n,611.t,611.v,611.x,611.y,611.z,6
11.2,650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=700.a,700.e,710.a,710.e,711.a,711.e,773.t,773.w,
8xx=856.a,856.b,856.c,856.d,856.q,856.u,856.2,
9xx=902.a,
Fascculo=022.a,022.y,022.z,040.a,040.b,041.a,041.b,041.h,090.a,090.b,
2xx=210.a,210.b,210.2,222.a,222.b,245.a,245.b,245.c,245.h,245.n,245.p,246.a,246.b,246.f,
246.g,246.h,246.i,246.n,246.p,
3xx=300.a,300.b,300.c,300.e,362.a,362.z,
5xx=500.a,505.a,505.r,505.t,506.a,506.d,506.e,518.a,520.a,520.b,521.a,530.a,533.a,533.b,
533.c,533.d,534.a,534.b,534.c,534.e,534.p,534.t,555.a,555.b,555.d,562.a,562.b,562.c,562.d
,562.e,590.a,590.b,590.c,
6xx=600.a,600.b,600.c,600.d,600.e,600.f,600.l,600.n,600.p,600.q,600.t,600.v,600.x,600.y,6
00.z,600.2,610.a,610.b,610.c,610.d,610.e,610.f,610.l,610.n,610.p,610.q,610.t,610.v,610.x,6
10.y,610.z,610.2,611.a,611.c,611.d,611.e,611.k,611.l,611.n,611.t,611.v,611.x,611.y,611.z,6
11.2,650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=773.w,
8xx=856.a,856.b,856.c,856.d,856.q,856.u,856.2,
9xx=902.a,
Exemplar=949,
Coleo=022.a,022.y,022.z,040.a,040.b,041.a,041.b,041.h,090.a,090.b,
2xx=210.a,210.b,222.a,222.b,245.a,245.b,245.c,245.h,246.a,246.b,246.g,246.h,246.i,260.a,
260.b,260.c,
3xx=300.a,300.b,300.c,300.e,310.a,310.b,321.a,321.b,362.a,362.z,
5xx=510.a,525.a,530.a,538.a,555.a,
6xx=650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=780.a,780.b,780.d,780.k,780.t,780.w,780.x,785.a,785.b,785.d,785.k,785.t,785.w,785.x,
8xx=856.u,856.3,
9xx=901.a,901.b,902.a,947.a,950.a,
Kardex=960,
Material visual=020.a,020.c,020.z,022.a,022.y,022.z,040.a,040.b,041.a,041.b,041.h,
1xx=100.a,100.b,100.c,100.d,100.e,100.q,100.4,110.a,110.b,110.c,110.d,110.e,110.l,110.n,
110.4,111.a,111.c,111.d,111.e,111.k,111.l,111.n,111.4,
2xx=240.a,240.d,240.f,240.g,240.h,240.k,240.l,240.m,240.n,240.o,240.p,243.a,243.d,243.f,
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011
12
Categoria
Nvel
Campos
243.g,243.h,243.k,243.n,243.p,243.l,245.a,245.b,245.c,245.h,245.n,245.p,250.a,250.b,260.a
,260.b,260.c,260.e,260.f,260.g,
3xx=300.a,300.b,300.c,300.e,306.a,
4xx=440.a,440.n,440.p,440.v,440.x,
5xx=500.a,501.a,505.a,505.r,505.t,506.a,506.d,506.e,520.a,520.b,521.a,530.a,533.a,533.b,
533.c,533.d,534.a,534.b,534.c,534.e,534.p,534.t,538.a,590.a,590.b,590.c,
6xx=600.a,600.b,600.c,600.d,600.e,600.f,600.l,600.n,600.p,600.q,600.t,600.v,600.x,600.y,6
00.z,600.2,610.a,610.b,610.c,610.d,610.e,610.f,610.l,610.n,610.p,610.q,610.t,610.v,610.x,6
10.y,610.z,610.2,611.a,611.c,611.d,611.e,611.k,611.l,611.n,611.t,611.v,611.x,611.y,611.z,6
11.2,650.a,650.v,650.x,650.y,650.z,650.2,651.a,651.v,651.x,651.y,651.z,651.2,653.a,
7xx=700.a,700.b,700.c,700.d,700.e,700.l,700.q,700.t,700.4,710.a,710.b,710.c,710.d,710.e,7
10.l,710.n,710.t,710.4,711.a,711.c,711.d,711.e,711.k,711.l,711.n,711.t,711.4,720.a,720.e,72
0.4,740.a,740.n,740.p,773.a,773.b,773.d,773.g,773.s,773.t,773.w,773.6,
9xx=901,902,903,904,950.a,
Exemplares=949,
Por: Cristiano Motta Antunes CRB 14/1194 e Mario Bastos de Souza Junior
Tutorial Instalao Gnuteca 3.2 no CentOS 5.4 v.0.1 - Florianpolis, mai. 2011