Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-02-2009, 10:20 AM
|
#1
|
Member
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454
Rep:
|
Debian Lenny postgresql and adding user problems
I have just remade my Debian Etch box as Lenny using the netinstall cd. I am noticing two problems I have never encountered. This was a complete new install and I then copied contents from the appropriate old home directories. I did not want to do an upgrade.
I installed the latest postgresql server and client, yet I can't get the server to start. It ignores the reference in the rc2.d directory for starting, and refuses to start when invoked manually. I never experienced this either with any version of Linux or my BSD machine. Perhaps someone can help on this issue.
I am normally at the command line, but since the initial install took me to GDM, I decided to add additional users using the administrative 'add user' facility. I added four users, and tried to check them, but none of the users were actually added, nor were the appropriate 'home' directories created, but the associated 'groups' were. I deleted the groups, reverted to my normal command line interface, and used 'adduser' to properly add the users and create the groups. Can anyone shed any insight in either of the problems?
Thank you
|
|
|
03-02-2009, 01:28 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Can't help with the users, but how does the "and refuses to start when invoked manually."
manifest itself? Anything in the logs, any error messages? Which packages relevant to
postgres are actually installed (verify using aptitude)?
|
|
|
03-02-2009, 09:06 PM
|
#3
|
Member
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454
Original Poster
Rep:
|
Obviously setting up postgres is a bit more complicated than I remember. Though I read the shell script in the /etc/rc2.d directory to start postgres, I didn't follow through. I had to trace the various postgres commands/ create certain libraries, and then run the initdb command to create the initial dtabase. Thank you for your suggestions. Though nothing was logged when I initially ran the shell script, I was able to work things out.
Alan
|
|
|
03-03-2009, 01:38 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Create libraries sounds worrying, I always thought that the debian install
was quite well thought through... anyway - glad you have it sorted!
|
|
|
03-03-2009, 07:09 PM
|
#5
|
Member
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 454
Original Poster
Rep:
|
Though postgres is a very reliable and powerful product, it is not trivial to set up Postgres commands are located in /usr/lib/postgresql/8.3/bin. The first step needed to setting up postgresql is to initialize the database using the initdb command. In order to do that you have to create a directory to store the database, and also set up the the PGDATA environment variable pointing to that directory. By convention, the owner of the database is user postgres, but this can be changed. I guess it's been awhile since I created the initial database.
|
|
|
03-03-2009, 07:12 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Heh ... well, I do postgres installs on a quite regular basis, so am
aware of what's required. ;} As I said: from my excursion(s) into the
lands of debian and *buntu I seemed to remember it wasn't that hard on
those ... pretty much a led by the hand variety.
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 08:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|