[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Install Help Net install info
From: |
Geordie |
Subject: |
[Gnumed-devel] Install Help Net install info |
Date: |
Thu, 21 Aug 2008 13:43:18 -0400 |
User-agent: |
KMail/1.9.9 |
Karsten
You give me idea inthe last post So I did the net install in root. It failed
Here is what transpired
address@hidden:/home/Geordie# #!/bin/bash
address@hidden:/home/Geordie#
address@hidden:/home/Geordie# #
============================================
address@hidden:/home/Geordie# #
$Source:
/sources/gnumed/gnumed/gnumed/server/bootstrap/net_install-gnumed_server.sh,v
$
address@hidden:/home/Geordie# # $Id: net_install-gnumed_server.sh,v 1.6
2008/08/01 10:38:25 ncq Exp $
address@hidden:/home/Geordie# #
============================================
address@hidden:/home/Geordie#
address@hidden:/home/Geordie# # try to determine distribution of target
system
address@hidden:/home/Geordie# # SUSE
address@hidden:/home/Geordie# if [ -f /etc/SuSE-release ]; then
> DEPS="gnumed-common postgresql postgresql-plpython cron tar coreutils mailx
openssl bzip2 gpg2 mc rsync python-psycopg2 gzip"
> PKG_INSTALLER="zypper install"
> SYS_TYPE="SuSE"
> fi
address@hidden:/home/Geordie# # Debian
address@hidden:/home/Geordie# if [ -f /etc/debian_version ]; then
> DEPS="gnumed-common postgresql postgresql-client cron anacron tar hostname
coreutils mailx openssl bzip2 gzip gnupg mc rsync python-psycopg2 sudo wget"
> PKG_INSTALLER="apt-get install"
> SYS_TYPE="Debian"
> fi
address@hidden:/home/Geordie# # Mandriva
address@hidden:/home/Geordie# if [ -f /etc/mandriva-release ]; then
> DEPS="gnumed-common postgresql postgresql-client cron anacron tar hostname
coreutils mailx openssl bzip2 gnupg mc rsync python-psycopg2 gzip"
> PKG_INSTALLER="urpmi"
> SYS_TYPE="Mandriva"
> fi
address@hidden:/home/Geordie#
address@hidden:/home/Geordie# echo ""
address@hidden:/home/Geordie#
echo "================================================"
================================================
address@hidden:/home/Geordie# echo "This GNUmed helper will download and
install the"
This GNUmed helper will download and install the
address@hidden:/home/Geordie# echo "latest GNUmed server onto your
${SYS_TYPE} machine."
latest GNUmed server onto your Debian machine.
address@hidden:/home/Geordie# echo ""
address@hidden:/home/Geordie# echo "It will also take care to also install
the"
It will also take care to also install the
address@hidden:/home/Geordie# echo "dependancies needed to operate GNUmed
smoothly."
dependancies needed to operate GNUmed smoothly.
address@hidden:/home/Geordie#
echo "================================================"
================================================
address@hidden:/home/Geordie#
address@hidden:/home/Geordie# # prepare environment
address@hidden:/home/Geordie# mkdir -p ~/.gnumed/server-installation/
address@hidden:/home/Geordie# cd ~/.gnumed/server-installation/
address@hidden:~/.gnumed/server-installation# rm -r GNUmed-v?
address@hidden:~/.gnumed/server-installation# rm -f
GNUmed-server.latest.tgz
address@hidden:~/.gnumed/server-installation#
address@hidden:~/.gnumed/server-installation# # install dependancies
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# echo "Installing
dependancies ..."
Installing dependancies ...
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# echo "Do you want to install
the following dependancies"
Do you want to install the following dependancies
address@hidden:~/.gnumed/server-installation# echo "needed to smoothly
operate the GNUmed server ?"
needed to smoothly operate the GNUmed server ?
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# echo "${DEPS}"
gnumed-common postgresql postgresql-client cron anacron tar hostname coreutils
mailx openssl bzip2 gzip gnupg mc rsync python-psycopg2 sudo wget
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# read -e -p "Install
dependancies ? [y/N]: "
Install dependancies ? [y/N]: if test "${REPLY}" == "y" ; then
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# echo "You may need to enter
the password for \"${USER}\" now:"
You may need to enter the password for "root" now:
address@hidden:~/.gnumed/server-installation# sudo ${PKG_INSTALLER}
${DEPS}
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnumed-common is already the newest version.
gnumed-common set to manually installed.
postgresql is already the newest version.
postgresql-client is already the newest version.
cron is already the newest version.
anacron is already the newest version.
tar is already the newest version.
hostname is already the newest version.
coreutils is already the newest version.
openssl is already the newest version.
bzip2 is already the newest version.
gzip is already the newest version.
gnupg is already the newest version.
mc is already the newest version.
rsync is already the newest version.
python-psycopg2 is already the newest version.
python-psycopg2 set to manually installed.
sudo is already the newest version.
wget is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
ledgersmb: Depends: libconfig-std-perl but it is not going to be installed
Depends: postgresql-client-8.1 but it is not installable or
postgresql-client-8.2 but it is not installable
mailx: Depends: bsd-mailx but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a
solution).
address@hidden:~/.gnumed/server-installation# fi
bash: syntax error near unexpected token `fi'
address@hidden:~/.gnumed/server-installation#
address@hidden:~/.gnumed/server-installation# # get and unpack package
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# echo "Downloading
package ..."
Downloading package ...
address@hidden:~/.gnumed/server-installation# echo ""
address@hidden:~/.gnumed/server-installation# wget -c
http://www.gnumed.de/downloads/server/GNUmed-server.latest.tgz
--2008-08-21 13:09:44--
http://www.gnumed.de/downloads/server/GNUmed-server.latest.tgz
Resolving www.gnumed.de... 213.239.197.11
Connecting to www.gnumed.de|213.239.197.11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 565910 (553K) [application/x-gzip]
Saving to: `GNUmed-server.latest.tgz'
100%[======================================>] 565,910 123K/s in 5.0s
2008-08-21 13:09:50 (112 KB/s) - `GNUmed-server.latest.tgz' saved
[565910/565910]
address@hidden:~/.gnumed/server-installation# tar -xzf
GNUmed-server.latest.tgz
address@hidden:~/.gnumed/server-installation# BASEDIR=`ls -1 -d GNUmed-v?`
address@hidden:~/.gnumed/server-installation# mv -f
GNUmed-server.latest.tgz ${BASEDIR}-server.tgz
address@hidden:~/.gnumed/server-installation#
address@hidden:~/.gnumed/server-installation# # run bootstrapper
address@hidden:~/.gnumed/server-installation# cd
${BASEDIR}/server/bootstrap/
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo ""
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo "Installing database ..."
Installing database ...
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo ""
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo "The GNUmed server version \"${BASEDIR}\" has been"
The GNUmed server version "GNUmed-v8" has been
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo "prepared for installation in the directory"
prepared for installation in the directory
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo ""
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo " ["`pwd`"]"
[/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap]
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo ""
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo "The GNUmed database is about to be installed."
The GNUmed database is about to be installed.
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
echo "You may need to enter your password now:"
You may need to enter your password now:
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
sudo ./bootstrap-latest.sh
ln: creating symbolic link `Gnumed': File exists
/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap
===========================================================
Bootstrapping latest GNUmed database.
This will set up a GNUmed database of version v8
with the name "gnumed_v8".
It contains all the currently working parts including
localizations for countries you don't live in. This does
not disturb the operation of the GNUmed client in your
country in any way.
===========================================================
1) Dropping old baseline gnumed_v2 database if there is any.
Database "gnumed_v2" will be permanently removed.
Are you sure? (y/n) y
Please answer "y" or "n".
Are you sure? (y/n) y
Password:
dropdb: could not connect to database postgres: FATAL: password
authentication failed for user "postgres"
==========================
2) bootstrapping databases
#################################################################################
#
# log file is
[/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap/bootstrap-latest-v2.log]
#
# Please email this file to <address@hidden> if you encounter problems.
#
#################################################################################
=======================================
Bootstrapping GNUmed database system...
=======================================
Using config file
[/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap/bootstrap-local_first.conf].
You are about to install the following parts of GNUmed:
-------------------------------------------------------
-------------------------------------------------------
This script can be used to run SQL files local to a site
*before* bootstrapping the rest of the database.
Thereby things that are only needed locally can be
integrated with the bootstrapping process and need not
be run manually after re-bootstrapping.
It is "guaranteed" that this file will never be changed
by the GNUmed team, hence keeping local modifications
in a safe place.
Do you really want to install this database setup ?
Type yes or no: yes
Using config file
[/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap/bootstrap-monolithic_core.conf].
You are about to install the following parts of GNUmed:
-------------------------------------------------------
bundle "config" in <gnumed> (or overridden) on <>
bundle "reference" in <gnumed> (or overridden) on <>
bundle "demographics" in <gnumed> (or overridden) on <>
bundle "clinical" in <gnumed> (or overridden) on <>
bundle "documents" in <gnumed> (or overridden) on <>
bundle "office" in <gnumed> (or overridden) on <>
-------------------------------------------------------
This will set up a monolithic GNUmed backend with all bundles
in one database named [gnumed]. It will contain the core schema
without country or language-specific components. Those will
have to be added by using one of the bootstrap-XX.conf file
where XX represents the ISO country code.
Currently this file will also import the test accounts which
MUST be removed prior to real use.
Do you really want to install this database setup ?
Type yes or no: yes
==> bootstrapping "config" ...
We are about to check whether we need to create the
database user who owns all GNUmed database objects.
The database owner already exists.
Please provide the password previously used for it.
I need the password for the GNUmed database user [gm-dbo].
Please type password:
Cannot bootstrap bundles.
Please check the log file for details.
Bootstrapping "gnumed_v2" did not finish successfully. Aborting.
address@hidden:~/.gnumed/server-installation/GNUmed-v8/server/bootstrap#
Then as Geordie$
#!/bin/bash
# ============================================
#
$Source:
/sources/gnumed/gnumed/gnumed/server/bootstrap/net_install-gnumed_server.sh,v
$
# $Id: net_install-gnumed_server.sh,v 1.6 2008/08/01 10:38:25 ncq Exp $
# ============================================
# try to determine distribution of target system
# SUSE
if [ -f /etc/SuSE-release ]; then
DEPS="gnumed-common postgresql postgresql-plpython cron tar coreutils
mailx
openssl bzip2 gpg2 mc rsync python-psycopg2 gzip"
PKG_INSTALLER="zypper install"
SYS_TYPE="SuSE"
fi
# Debian
if [ -f /etc/debian_version ]; then
DEPS="gnumed-common postgresql postgresql-client cron anacron tar
hostname
coreutils mailx openssl bzip2 gzip gnupg mc rsync python-psycopg2 sudo wget"
PKG_INSTALLER="apt-get install"
SYS_TYPE="Debian"
fi
# Mandriva
if [ -f /etc/mandriva-release ]; then
DEPS="gnumed-common postgresql postgresql-client cron anacron tar
hostname
coreutils mailx openssl bzip2 gnupg mc rsync python-psycopg2 gzip"
PKG_INSTALLER="urpmi"
SYS_TYPE="Mandriva"
fi
echo ""
echo "================================================"
echo "This GNUmed helper will download and install the"
echo "latest GNUmed server onto your ${SYS_TYPE} machine."
echo ""
echo "It will also take care to also install the"
echo "dependancies needed to operate GNUmed smoothly."
echo "================================================"
# prepare environment
mkdir -p ~/.gnumed/server-installation/
cd ~/.gnumed/server-installation/
rm -r GNUmed-v?
rm -f GNUmed-server.latest.tgz
# install dependancies
echo ""
echo "Installing dependancies ..."
echo ""
echo "Do you want to install the following dependancies"
echo "needed to smoothly operate the GNUmed server ?"
echo ""
echo "${DEPS}"
echo ""
read -e -p "Install dependancies ? [y/N]: "
if test "${REPLY}" == "y" ; then
echo ""
echo "You may need to enter the password for \"${USER}\" now:"
sudo ${PKG_INSTALLER} ${DEPS}
fi
# get and unpack package
echo ""
echo "Downloading package ..."
echo ""
wget -c http://www.gnumed.de/downloads/server/GNUmed-server.latest.tgz
tar -xzf GNUmed-server.latest.tgz
BASEDIR=`ls -1 -d GNUmed-v?`
mv -f GNUmed-server.latest.tgz ${BASEDIR}-server.tgz
# run bootstrapper
cd ${BASEDIR}/server/bootstrap/
echo ""
echo "Installing database ..."
echo ""
echo "The GNUmed server version \"${BASEDIR}\" has been"
echo "prepared for installation in the directory"
echo ""
echo " ["`pwd`"]"
echo ""
echo "The GNUmed database is about to be installed."
echo "You may need to enter your password now:"
sudo ./bootstrap-latest.sh
# ============================================
# $Log: net_install-gnumed_server.sh,v $
# Revision 1.6 2008/08/01 10:38:25 ncq
# - /bin/sh -> /bin/bash
#
# Revision 1.5 2008/02/29 23:50:41 ncq
# - optionalize installing DEPs
# - improve output
#
# Revision 1.4 2008/02/25 19:41:07 ncq
# - add gzip as dependancy
#
# Revision 1.3 2008/01/05 19:33:59 ncq
# - re-reorder
#
# Revision 1.2 2008/01/05 19:33:15 ncq
# - add sudo and wegt
# - reorder a bit
#
# Revision 1.1 2007/10/28 10:19:07 ncq
# - renamed to better reflect the use beyond Debian
#
# Revision 1.7 2007/10/28 09:16:49 ncq
# - slightly improved
#
# Revision 1.6 2007/10/28 01:02:24 shilbert
# - introduce install_helper to make it usable for openSUSE and Mandriva
#
# Revision 1.5 2007/10/07 12:35:02 ncq
# - depend on latest version of postgresql
#
# Revision 1.4 2007/10/02 19:13:42 shilbert
# - fix for wrong dependency, gpg2 --> gnupg, added python-psycopg2
#
# Revision 1.3 2007/09/16 01:01:57 ncq
# - install dependancies
#
# Revision 1.2 2007/09/16 00:45:40 ncq
# - prettified output
#
# Revision 1.1 2007/09/16 00:44:03 ncq
# - first version
#
#
This script needs a sudo password for Geordie. He comes the dumb question
where does one set the password for this. In the sidux world it is
recommended to do everything in root or user and not to use sudo so it is not
setup on this or my other sidux boxes
and this
[/root/.gnumed/server-installation/GNUmed-v8/server/bootstrap/bootstrap-latest-v2.log]
Gave me this tidbit
An error occurred while loading
http:/root/.gnumed/server-installation/gnumed-v8/server/bootstrap/bootstrap-latest-v2.log:
No hostname specified.
file:///home/Geordie/gnumed/imagecachefile:///home/Geordie/gnumed/soffice.cfgfile:///home/Geordie/gnumed/arrowhd_en-US.soefile:///home/Geordie/gnumed/autotbl.fmtfile:///home/Geordie/gnumed/classic_en-US.sogfile:///home/Geordie/gnumed/cmyk.socfile:///home/Geordie/gnumed/gallery.socfile:///home/Geordie/gnumed/hatching_en-US.sohfile:///home/Geordie/gnumed/html.socfile:///home/Geordie/gnumed/javasettings_Linux_x86.xmlfile:///home/Geordie/gnumed/modern_en-US.sogfile:///home/Geordie/gnumed/palette_en-US.socfile:///home/Geordie/gnumed/standard.sobfile:///home/Geordie/gnumed/standard.socfile:///home/Geordie/gnumed/standard.sodfile:///home/Geordie/gnumed/standard.soefile:///home/Geordie/gnumed/standard.sogfile:///home/Geordie/gnumed/standard.sohfile:///home/Geordie/gnumed/styles_en-US.sodfile:///home/Geordie/gnumed/sun-color.socfile:///home/Geordie/gnumed/web.soc
>
> > this has been added from the net install
> Certainly not.
> This information was not there when I started this morning; it went
somewhere
Exactly where did you get the above (very long) line from ?
This showed up in /home/Geordie/gnumed
Another long post. If I keep this up you might end up with all the
information that is in this computer
dropdb: could not connect to database postgres: FATAL: password
authentication failed for user "postgres"
I saw this as I was doing a final read. Could postgre have changed since the
howto wiki was written or did I just scew up and if that is the case what
should it look like
Geordie
- [Gnumed-devel] Install Help Net install info,
Geordie <=