COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > NINJAM Discussion > NINJAM User Discussion

Reply
 
Thread Tools Display Modes
Old 03-02-2008, 11:22 AM   #1
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default Configuring Ninjam Server for OS X; problem!

Hi, I'm brand new to Ninjam, I have the client working fine, and want to run my own server, but I know nothing about Unix, and can't get this configfilename thing right. I'm sure it's a very simple syntax thing I'm doing wrong, but I'm lost in Terminal. Please help.

Last edited by maccool; 03-07-2008 at 04:17 AM. Reason: Bump!
maccool is offline   Reply With Quote
Old 03-07-2008, 04:19 AM   #2
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Bump! 5 days, 65 views, no replies. Is anybody running a ninjam server on OS X?
maccool is offline   Reply With Quote
Old 03-07-2008, 03:21 PM   #3
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 593
Default

Okay.

Step one in getting help: be specific about the problem you're encountering - explain what you've tried, what you expected to happen and what actually happened.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 03-07-2008, 03:41 PM   #4
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Having downloaded the ninjam server, and read the guidance on the ninjam server guide (http://www.ninjam.com/server-guide.php), which indicates that I need to edit the "example.cdg.txt" file with SetPID, I am still at a loss as to how I should edit that file. When I make my uneducated guesses at what is required, and then try to launch the ninjamsvr, I get "[config] error opening configfile 'configfilename.cfg'
Error loading config file!"

What I need to know, I think, is precisely how I should edit the example.cfg.txt file which comes with the ninjam server.

I really do know nothing about how to do this kind of thing.

Thanks for any help you may be able to render.
maccool is offline   Reply With Quote
Old 03-07-2008, 03:51 PM   #5
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 593
Default

First off, take a copy of the example and call it "configfilename.cfg" and try running again.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 03-07-2008, 04:12 PM   #6
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Quote:
Originally Posted by pljones View Post
First off, take a copy of the example and call it "configfilename.cfg" and try running again.
I'd already tried that, but did it again, with the same aforementioned error result.

According to the server guide, since I'm in OSX, then I need to do something with SetPID. Is that correct?
maccool is offline   Reply With Quote
Old 03-08-2008, 02:14 AM   #7
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 593
Default

When you get the terminal window up, type "ls" (list files). You should see the "configfilename.cfg" file, along with others.

Note that it's case sensitive. If you called it "ConfigFilename.cfg" and type "./ninjamsrv configfilename.cfg", it won't find the file.

"SetPID" is a configuration option, not a command. It specifies the file in which the server stores its process ID. "pidfile" is a good name.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
pljones is offline   Reply With Quote
Old 03-08-2008, 05:27 AM   #8
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

I can see configfilename.cfg
maccool is offline   Reply With Quote
Old 03-08-2008, 09:57 AM   #9
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Success! Some, anyway.

My bad. In Terminal I was not changing directory to the /Applications directory, but typing the path from ~ User$

The reference to SetPID in the setup guide seems to be irrelevant.

There was an error in line13 of the example.cfg.txt file, so I deleted it.

I now have a server running, and can connect locally.

I would now like to find more information about things such as the users' commands to change BPM and BPI.

Thanks pljones.
maccool is offline   Reply With Quote
Old 03-08-2008, 10:13 AM   #10
the all new rob
Human being with feelings
 
the all new rob's Avatar
 
Join Date: Dec 2007
Location: east coast of Kansas
Posts: 681
Default

check this post:
http://www.cockos.com/forum/showpost...40&postcount=9

I don't think it's documented; I looked at the source code to figure those out.
the all new rob is offline   Reply With Quote
Old 03-08-2008, 12:59 PM   #11
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

thanks, I found that. I'm good to go now I think.
maccool is offline   Reply With Quote
Old 04-13-2008, 07:05 AM   #12
JavaLava
Human being with feelings
 
Join Date: Apr 2008
Location: Agentina
Posts: 4
Default I cant not start up

Hi

I have problems for start up the ninjam server

I have saved this in my folder Applications
I have configured the file and saved like config.cfg

I open the terminal and type

/Applications/ninjamserver/ninjamsrv config.cfg

and terminal show this

Last login: Sun Apr 13 10:35:11 on ttys000
Kaleidoscope:~ javalava$ /Applications/ninjamserver/ninjamsrv config.cfg
NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
[config] error opening configfile 'config.cfg'
Error loading config file!
Kaleidoscope:~ javalava$

I have the same error when try open the file by default example.cfg

Ideas?

Thanks in advanced

Last edited by JavaLava; 04-13-2008 at 07:12 AM.
JavaLava is offline   Reply With Quote
Old 04-13-2008, 07:26 AM   #13
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Quote:
Originally Posted by JavaLava View Post
Hi

I have problems for start up the ninjam server

I have saved this in my folder Applications
I have configured the file and saved like config.cfg

I open the terminal and type

/Applications/ninjamserver/ninjamsrv config.cfg

and terminal show this

Last login: Sun Apr 13 10:35:11 on ttys000
Kaleidoscope:~ javalava$ /Applications/ninjamserver/ninjamsrv config.cfg
NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
[config] error opening configfile 'config.cfg'
Error loading config file!
Kaleidoscope:~ javalava$

I have the same error when try open the file by default example.cfg

Ideas?

Thanks in advanced
You will have to change directory in Terminal (cd) so that you are in the directory (or folder!) where the ninjamsrv and config.cfg are.

Am I correct in thinking that that the ninjamsrv and config.cfg are in a folder called ninjamserver?

If so,try this;
open Terminal and type cd /Applications, hit return

then type cd /ninjamserver, hit return

then type ./ninjamsrv config.cfg, hit return

I have the ninjamsrv and the config.cfg loose in my Applications folder. To launch the server I type cd /Applications, then ./ninjamsrv config.cfg.

Hope this helps.
maccool is offline   Reply With Quote
Old 04-13-2008, 08:16 AM   #14
JavaLava
Human being with feelings
 
Join Date: Apr 2008
Location: Agentina
Posts: 4
Default Ninjam server start up OK!, but with an error in the line 9 "ACL parameter"

Thank you maccool

Puting the file ninjamsrv and the config.cfg loose in my folder Applications like you work perfect but I have now an error in the line 9 is about the ACL parameter

This is the error

Last login: Sun Apr 13 12:11:33 on ttys000
Kaleidoscope:~ javalava$ cd /Applications
Kaleidoscope:Applications javalava$ ./ninjamsrv config.cfg
NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
Usage: ACL xx.xx.xx.xx/X [ban|allow|reserve]
[config] warning: invalid parameter on line 9 of config.cfg
Server starting up...
Port: 55000
Using defaults 120 BPM 8 BPI

------------------------------

This is my config.cfg file

Port 55000
MaxUsers 10
MaxChannels 32 2
ServerLicense cclicense.txt
AnonymousUsers multi
AnonymousUsersCanChat yes
AnonymousMaskIP no
AllowHiddenUsers no
ACL 192.168.1.100/150 allow
User administrator myadminpass *
User booga anotherpass *
User myuser mypass *
DefaultTopic "Welcome to NINJAM. Please play nicely."
DefaultBPM 120
DefaultBPI 8
SetKeepAlive 3

Ideas?

Thanks in advanced
JavaLava is offline   Reply With Quote
Old 04-13-2008, 08:29 AM   #15
maccool
Human being with feelings
 
Join Date: Mar 2008
Posts: 12
Default

Quote:
Originally Posted by JavaLava View Post
Thank you maccool

Puting the file ninjamsrv and the config.cfg loose in my folder Applications like you work perfect but I have now an error in the line 9 is about the ACL parameter

This is the error

Last login: Sun Apr 13 12:11:33 on ttys000
Kaleidoscope:~ javalava$ cd /Applications
Kaleidoscope:Applications javalava$ ./ninjamsrv config.cfg
NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
Usage: ACL xx.xx.xx.xx/X [ban|allow|reserve]
[config] warning: invalid parameter on line 9 of config.cfg
Server starting up...
Port: 55000
Using defaults 120 BPM 8 BPI

------------------------------

This is my config.cfg file

Port 55000
MaxUsers 10
MaxChannels 32 2
ServerLicense cclicense.txt
AnonymousUsers multi
AnonymousUsersCanChat yes
AnonymousMaskIP no
AllowHiddenUsers no
ACL 192.168.1.100/150 allow
User administrator myadminpass *
User booga anotherpass *
User myuser mypass *
DefaultTopic "Welcome to NINJAM. Please play nicely."
DefaultBPM 120
DefaultBPI 8
SetKeepAlive 3

Ideas?

Thanks in advanced
This is what the ACL lines look like in mine:

#ACL list lets you specify in order a list, first match is used
ACL 10.0.0.0/8 deny
ACL 192.168.0.0/16 reserve # reserve slots for local
ACL 0.0.0.0/0 allow # allow all

Those lines are as they came, I have not edited them.
maccool is offline   Reply With Quote
Old 04-13-2008, 10:00 AM   #16
JavaLava
Human being with feelings
 
Join Date: Apr 2008
Location: Agentina
Posts: 4
Default

Working!!!

Thank you maccool
JavaLava is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.