On Wed, Oct 15, 2003 at 01:37:44AM -0200, Ronaldo Reis Jr. wrote:
> Pessoal,
> 
> Instalei os programas, o diretorio e o formulario abrem e aparentemente etao 
> funcionando, mas o curriculo da a seguinte mensagem:

vc executou algum teste para ter certeza disto?

> 
> Your user name and password are not defined. Ask your database administrator 
> to setup a firebird login.
> 
> O que seria isto? Como setar isto? Esta mensagem aparece tanto para o usuario 
> quanto para o root.
> 
> Alguem ja conseguiu isto?

eu consegui da seguinte forma:
instalei o curriculo lattes, deixando a opção de iniciar o aplicativo 
após a instalação ***SEM*** marcar.

configurei o Firebird, criando um script para iniciar o superserver a
partir do /etc/init.d (script colado abaixo), utilizando a senha default
(veja o arquivo README no diretório de instalação).

iniciei o firebird (/etc/init.d/firebird start)

rodei novamente o programa de instalação do curriculo, invertendo as
seleções: ***NÃO*** instalei o Firebird e ***MARQUEI*** rodar o
Curriculo Lattes.

ele demorou uns 30s na minha máquina para aparecer a interface gráfica
(PIII 733MHz 256MB RAM).

aparentemente, está tudo funcionando, inclusive a importação de dados da
base do CNPq via internet.

é isto!

script para ser colocado no /etc/init.d/firebird
----------corte aqui------------------
#! /bin/sh
#
# skeleton      example file to build /etc/init.d/ scripts.
#               This file should be used to construct scripts for /etc/init.d.
#
#               Written by Miquel van Smoorenburg <[EMAIL PROTECTED]>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <[EMAIL PROTECTED]>.
#
# Version:      @(#)skeleton  1.9.1  08-Apr-2002  [EMAIL PROTECTED]
#
# description: Start/Stop firebird database server
#
# This file belongs in /etc/init.d where it will be run
# on system startup and shutdown to start the background
# Firebird/interbase database server daemon



INTERBASE=/opt/interbase
ISC_PASSWORD=masterkey
ISC_USER=SYSDBA
FBRunUser=root
# WARNING: in a real-world installation, you should not put the
# SYSDBA password in a publicly-readable file.
# Eventually this file should not need to contain any passwords.
# as root user alone should be sufficient privledge to stop/start
# the server.
#
# uma sugestão é colocar a senha em arquivo no diretório do root e
# fazer um cat neste arquivo:
# ISC_PASSWORD=`cat /root/.firebird-password`


export INTERBASE
export ISC_USER
export ISC_PASSWORD


# Check the file is there and is executable.
#[ -x $INTERBASE/bin/ibmgr ] || exit 0

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/interbase/bin
DAEMON=$INTERBASE/bin/ibmgr
NAME=ibmgr
DESC="FireBird Database"

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: $NAME"
        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON -- -start -forever
        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC: $NAME "
#       start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
#               --exec $DAEMON -- -shut -user $ISC_USER -password $ISC_PASSWORD
#  o start-stop-daemon não estava parando o banco; fiz direto
        $DAEMON -shut -user $ISC_USER -password $ISC_PASSWORD 
        echo "."
        ;;
  #reload)
        #
        #       If the daemon can reload its config files on the fly
        #       for example by sending it SIGHUP, do it here.
        #
        #       If the daemon responds to changes in its config file
        #       directly anyway, make this a do-nothing entry.
        #
        # echo -n "Reloading $DESC configuration..."
        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
        #       /var/run/$NAME.pid --exec $DAEMON
        # echo "done."
  #;;
  restart|force-reload)
        #
        #       If the "reload" option is implemented, move the "force-reload"
        #       option to the "reload" entry above. If not, "force-reload" is
        #       just the same as "restart".
        #
        echo -n "Restarting $DESC: $NAME"
        start-stop-daemon --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON -- -shut
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON -- -start -forever
        echo "."
        ;;
  *)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
#---------------corte aqui---------------------------

espero que isto ajuda

-- 
Mario O.de Menezes, Ph.D.    "Many are the plans in a man's heart, but
    IPEN-CNEN/SP                is the Lord's purpose that prevails"
http://www.ipen.br/~mario                  Prov. 19.21
    

Responder a