473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

SuSE Linux and PostgreSQL

Hi All!

I am wanting to setup/run PostgreSQL on my server (a SuSE Linux 9.2 distro)
but I'm not quite sure which way to go.

I have a few books on PostgreSQL but they don't seem to match the way SuSE
has installed it. The books explain how to install/make/etc. and then how
to setup a "cluster". The directory structure differs alot from the SuSE
install.

It appears that when SuSE installs it, a cluster is already created and it
(PostgreSQL) starts when I boot the box. I have also noticed if I go to the
shell prompt as "root" user and type ENV that no $PGDATA is specified.

Should I ditch the Postgres that came with SuSE - and install it from
scratch, or is there a tutorial or some advice on running it the way SuSE
installed it (advantages for sticking with SuSE's way of doing it?)

At this point, I have no idea how to begin creating a database and tables,
or administrating my PostgreSQL users the "SuSE way".

Can someone please push me in the right direction. It can't be as hard as I
percieve it to be at this point.

Thanks!

P.S. What about updates to PostgreSQL - am I better to stick with SuSE's
RPMs, or download from Postgresql.org and install myself??
Nov 23 '05 #1
2 9739
Hi! I am using Fedora and I normally take the rpms from Postgres site.

I guess SuSE is similar to my distribution. So, you need to
switch to a sandbox Postgres user (pgsql in FreeBSD, postgres in RedHat)
and it should have that PGDATA, unless it is specified in -D switch in the
startup script.

But still, you need to switch to that postgres user, than, assuming that
the daemon is runing.

createuser <myusername>

answer "yes" twice, than

psql template1

You connect to a database and set your md5 password or whatever:
ALTER USER <myusername> WITH ENCRYPTED PASSWORD '<your password>';
That edit your pg_hba.conf (add the line for md5 authentication for your new
user, or trust, or whatever) and postgresql.conf as root or postgres user
and restart the daemon. Now you should be able to establish a database
connection from your account.
You'll probably need to play around with pg_hba.conf and postgresql.conf, to
set up the configration you need.

You will probably need:
postgresql.conf
1) enable TCP/IP
2) restrict local socket to a certain group and 770 permissions.
3) add your new superuser to that group and to pg_hba.conf, allowing it
connecting to a database.


"SmoothJazz" <Sm********@Jazz.com> wrote in message
news:Xn************************@216.196.97.131...
Hi All!

I am wanting to setup/run PostgreSQL on my server (a SuSE Linux 9.2
distro)
but I'm not quite sure which way to go.

I have a few books on PostgreSQL but they don't seem to match the way SuSE
has installed it. The books explain how to install/make/etc. and then how
to setup a "cluster". The directory structure differs alot from the SuSE
install.

It appears that when SuSE installs it, a cluster is already created and it
(PostgreSQL) starts when I boot the box. I have also noticed if I go to
the
shell prompt as "root" user and type ENV that no $PGDATA is specified.

Should I ditch the Postgres that came with SuSE - and install it from
scratch, or is there a tutorial or some advice on running it the way SuSE
installed it (advantages for sticking with SuSE's way of doing it?)

At this point, I have no idea how to begin creating a database and tables,
or administrating my PostgreSQL users the "SuSE way".

Can someone please push me in the right direction. It can't be as hard as
I
percieve it to be at this point.

Thanks!

P.S. What about updates to PostgreSQL - am I better to stick with SuSE's
RPMs, or download from Postgresql.org and install myself??

Nov 23 '05 #2
Thanks Nikolay, I appreciate your comments. I have Postgres running, I was just
curious how users of SuSE (and other distros) have theirs setup. I need to find
my way around a bit in Postgres - but I'm beginning to get the hang of it. Then
I'll go back and uninstall from SuSE's way of doing it, and grab the RPMs from
Postgres's web site and install that way.

Thanks again!!
"Nikolay A Mirin" <ni*****@mail.ru> wrote in
news:JL*****************@newsread1.news.pas.earthl ink.net:
Hi! I am using Fedora and I normally take the rpms from Postgres site.

I guess SuSE is similar to my distribution. So, you need to
switch to a sandbox Postgres user (pgsql in FreeBSD, postgres in
RedHat) and it should have that PGDATA, unless it is specified in -D
switch in the startup script.

But still, you need to switch to that postgres user, than, assuming
that the daemon is runing.

createuser <myusername>

answer "yes" twice, than

psql template1

You connect to a database and set your md5 password or whatever:
ALTER USER <myusername> WITH ENCRYPTED PASSWORD '<your password>';
That edit your pg_hba.conf (add the line for md5 authentication for
your new user, or trust, or whatever) and postgresql.conf as root or
postgres user and restart the daemon. Now you should be able to
establish a database connection from your account.
You'll probably need to play around with pg_hba.conf and
postgresql.conf, to set up the configration you need.

You will probably need:
postgresql.conf
1) enable TCP/IP
2) restrict local socket to a certain group and 770 permissions.
3) add your new superuser to that group and to pg_hba.conf, allowing
it connecting to a database.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: michael | last post by:
Hi. I am reasonably experienced with Python (and love it!) on Windows. I am a programmer that toils in c++ on Win 32 mostly but just to learn more, I am playing with Suse 9. Linux. Of course...
0
by: Jim Williams | last post by:
I am not able to get MYSQL running on Suse Linux Enterprise Server. I tried stopping with the command mysqld and it reported, "Shtudown Complete." Then when I tried to restart it with the...
7
by: Peter Eisentraut | last post by:
SuSE RPMs for PostgreSQL 7.4 are available at ftp://ftp.postgresql.org/pub/binary/v7.4/suse or a mirror http://www.postgresql.org/mirrors-www.html or at
2
by: dba_db2 at nospam gmx.net | last post by:
Looking at http://www-306.ibm.com/software/data/db2/linux/validate/ it told us that db2 v8.1 is not validated yet for suse90 professional ed. Do you have any experience regarding the stability...
0
by: Josh Berkus | last post by:
Folks, While debugging a wireless card, I came across this interesting bit: http://portal.suse.com/sdb/en/2003/10/pohletz_desktop_90.html What it indicates is that by default SuSE 9.0 plays...
2
by: Gellert, Andre | last post by:
Hi everybody, currenty we use Suse Linux 9 and the rpms with 7.4.0 downloaded from ftp://ftp.gmd.de/mirrors2/suse/ftp.suse.com/people/max/postgresql-7.4/ . I don't know how to contact the person...
0
by: Tamer | last post by:
Hi! I want to compile my Jabber Server and connect it with the latest PostgreSQL Server. I installed all packages from the mirror server available for SuSE Linux 9.0 but the ./configure script...
6
by: Prabu Subroto | last post by:
Dear my friends... Usually I use MySQL. Now I have to migrate my database from MySQL to Postgres. I have created a database successfully with "creatdb" and a user account successfully. But...
3
by: Eric E | last post by:
Hi, I have an installation of Postgres 7.4.2 on SuSE 9.1. This version of SuSE comes with a binary for plperl and several other postgres procedural languages. All the others, including plpgsql...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.