gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] Re: Gnumed on Debian 'Sid' (sort of)


From: Andreas Tille
Subject: [Gnumed-devel] Re: Gnumed on Debian 'Sid' (sort of)
Date: Mon, 5 Jan 2004 12:32:42 +0100 (CET)

On Sun, 4 Jan 2004, Michael Bonert wrote:

> The past few months have been really busy; I started med school
> in September.  Any case, I finally got the chance to try out Gnumed
> on Debian.
Fine.

> Attached below are my install notes.  I think they might be useful
> for other people that are just cruising through, are running
> Debian and want to give Gnumed a try.  Also, I haven't quite gotten
> Gnumed running.  It crashed after the start screen. :(
While I do not expect people to use my packages because I do not regard
them as ready for common use I think you could at least make your work
much easier by taking a look at

      http://people.debian.org/~tille/packages/gnumed/

> The problem seems to lie somewhere in the bootstrapping.
Well, If you start from scratch bootstrapping might be a problem but after
several discussions with Karsten Hilbert bootstraping works quite well in the
gnumed-snapshot-server* packages.  (There might be some problems left for the
locale packages.)

> ============================================================
> Gnumed Install Notes -- On Debian 'Sid'
> January 4, 2004.
> --------------------------------------------------
>
> #apt-get install cvs
>
> SET-UP OF SSH KEY
> $cd ~/ssh
> $echo "Protocol 2" > ~/.ssh/config
> $ssh-keygen -t dsa
>       <return> to accept ~/.ssh/id_dsa
>
> ---
> address@hidden:~$ ssh-keygen -t dsa
> Generating public/private dsa key pair.
> Enter file in which to save the key (/home/michael/.ssh/id_dsa):
> Enter passphrase (empty for no passphrase):
> Enter same passphrase again:
> Your identification has been saved in /home/michael/.ssh/id_dsa.
> Your public key has been saved in /home/michael/.ssh/id_dsa.pub.
> The key fingerprint is:
> <SNIP> address@hidden
> address@hidden:~$
> ---
>
> paste contents of:
>        ~/.ssh/id_dsa.pub
> into area on:
>       https://savannah.gnu.org/account/editsshkeys.php
>
> ----------------------------------------
This is OK if you want to use the latest and greatest CVS stuff.

The following things can be avoided.  You might download the *.deb
files at the location above and try 'dpkg -i *.deb'.  Dpkg will tell
you which packages are needed and than you can past these packages
into an 'apt-get install ...' call.  That's it for the dependencies.
> ...

> GETTING GNUMED SOURCE
> $ cvs -z3 address@hidden:/cvsroot/gnumed co gnumed
>   (NOTE: michaelb -- would have to replace by something anonymous...)
Afterwards you might continue with the latest GnuMed from CVS ...

> TESTING WXPTYHON
Not needed, if you followed the path above.

> CHANGING POSTGRES PASSWORD
> $ su
> # passwd postgres
>       (enter new passwd)
Damn, no!
The user postgres dows not have to have a password!

> # su postgres
> $ createuser michael
> Shall the new user be allowed to create databases? (y/n) y
> Shall the new user be allowed to create more new users? (y/n) y
> CREATE USER
The users which are necessary to create are created by the postinst
script of the gnumed-snapshot-server package.  No other users (should
be) needed - just tell me, if I'm wrong.

> testing
>       $ createdb test
>       CREATE DATABASE
>
>       WORKS!!! :)
>
> $cd /var/lib/postgres/data
>
> $vi pg_hba.conf
OHHHHHHHHHHHH NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
Well, /var/lib/postgres/data/pg_hba.conf is a symlink to 
/etc/postgresql/pg_hba.conf
and thus the effect is the same, but PLEASE DO NOT MISLEAD DEBIAN USERS!!!!
Please speak after me: Configuration is done in /etc.
Please write down this sentence at least ten times, better more. ;-)

>   local   all         all                                           trust
Please do not do this!!!!
You open much more than necessary.  The (hopefully) smallest changes to the
permissions of postgresql are done in the postinst script of 
gnumed-snapshot-server.
Just
   1. Install this package     or
   2. read the sources of the package     or
   3. read the archive of this list
to learn how to do that.

> $vi postgresql.conf
>       changed "#port = 5432" to "port = 5432"
?? What was changed here???

>       ???restart poastmaster after user is created???
>       XXX $/usr/lib/postgresql/bin/initdb -D /var/lib/postgres/data/
> (was done already)
>
> RESTARTING POSTMASTER
> $/usr/lib/postgresql/bin/postmaster -D /var/lib/postgres/data/
Ohhhhh noooo.
Starting services is done via

      /etc/init.d/<service> [start|stop|restart|...]

Thus

      /etc/init.d/postgresql restart

is the way to go after changing something under /etc/postgresql/ .

> $cd /home/michael/gnumed/gnumed/server/bootstrap
>       NOTE: make links script is gone (--still in install documentation)
If you would have installed the Debian package and want to bootstrap the
latest version from CVS I'd suggest to have a look into the postinst script
which can be found at

    /var/lib/dpkg/info/gnumed-snapshot-server.postinst

It contains the right options for the Debian installation.

> $python bootstrap-gm_db_system.py --conf-file=bootstrap-au.conf
>       XXX FAILED --- see below
I have to admit that I did not yet tested the -au package because of time
constraints.  Any experiences and patches welcome.  Expect new packages in
the next couple of weeks.

Kind regards

          Andreas.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]