KurzonDax / nZEDbetter

An improved usenet indexer
nzedbetter.org
GNU General Public License v3.0
11 stars 4 forks source link

Musicbrainz server documentation #31

Closed Pinholic closed 11 years ago

Pinholic commented 11 years ago

Hi , Would it be possible for you to share your documentation for installing a local musicbrainz server with me? I have tried to use the official install instructions but they are worse than useless! Very much looking forward to the release of nzbetter, is 15th still expected release date? Thanx.

kr001q2368@blueyonder.co.uk

KurzonDax commented 11 years ago

Well, I was shooting for the 15th until I got my ass kicked at my day job the last few days which has slowed me up some. I will probably spend the weekend and part of next week working on the install pages which is the main thing that prevents me from calling it a 'stable' release.

As far as MB goes, yeah, their directions are crap. I'll put what I've cobbled together up on the repository in a few minutes. THe only catch is you'll have to decipher my note taking somewhat until I formalize the instructions and put them on the wiki. Feel free to ask me questions about it though. It took me a couple of days working at it to finally get it going.

KurzonDax commented 11 years ago

Ok, it's posted in the root directory of the master branch. I gave them a quick glance, and I think everything is mostly self-explanatory. Let me know if I can answer any questions.

Pinholic commented 11 years ago

Thank you, will give this a try at the weekend and let you know how I get on. Sorry to hear works been a bitch!

KurzonDax commented 11 years ago

heh, no problem, keeps the bills paid and it's a job I like, so I can't complain. Good luck with building the MB replica. Let me know how the instructions work for you and if there's any changes you would recommend. One thing I noticed today is that I'm actually only running it with 2GB RAM, not 4 as the documentation says. It's running great, and responsive.

Pinholic commented 11 years ago

Hi again, Trying your instructions for the musicbrainz install now and all has gone well up until now lol. Got to the 'Create users and databases' section , have run the first 2 commands ok but when i enter usermod -a -G musicbrainz musicbrainz into the terminal I get the following error

postgres@lounge:~$ usermod -a -G musicbrainz musicbrainz Command 'usermod' is available in '/usr/sbin/usermod' The command could not be located because '/usr/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. usermod: command not found

If i use sudo before the command i get usermod: group 'musicbrainz' does not exist If i enter /usr/sbin/usermod -a -G musicbrainz musicbrainz i get the same response

Being a linux noob how can i correct this?

KurzonDax commented 11 years ago

Creating the users and the databases properly was one of the biggest headaches. If you're still at the postgres@lounge:~$ prompt, type the following:

exit sudo su (enter your password) addgroup musicbrainz usermod -a -G musicbrainz musicbrainz exit su - postgres createdb musicbrainz_db exit

If you were at your normal login prompt, you can skip the first 'exit' command. I must have not made note of some step when I worked through this. Give this a try and let me know if it works.

Pinholic commented 11 years ago

Tried that , same result im afraid.

kurt@lounge:~$ sudo su [sudo] password for kurt: root@lounge:/home/kurt# addgroup musicbrainz Adding group `musicbrainz' (GID 1001) ... Done. root@lounge:/home/kurt# usermod -a -G musicbrainz musicbrainz usermod: user 'musicbrainz' does not exist

KurzonDax commented 11 years ago

ok, yeah, I messed up the original instructions a bit. Well.. left out a couple of things anyway. Below is what the original directions should have been I believe. Note that you shouldn't even need to do usermod. Also, if you really want to be safe, you can enter "delgroup musicbrainz" (without the quotes) from an su prompt, or with sudo before you do the steps below.

<this assumes you are already at a su prompt (i.e. already entered sudo su) useradd musicbrainz -p musicbrainz (this should create the musicbrainz group as well, see notes below) exit su - postgres (you may need to create a password for postgres, if so, use passwd postgres) createuser -d -a -P musicbrainz (NOTE: This just creates a role in the postgres database) (you should be prompted for a password here, use musicbrainz) createdb musicbrainz_db exit

If you want to see what groups are already created on your server, enter the following from a regular prompt: cat /etc/group | less (Use arrow keys to scroll through the list if needed. Press q to quit)

To see the users are already created on the server, enter the following: cat /etc/passwd | less

Let me know if this doesn't work.