News:

Come Chat with us live! Learn how HERE!

Main Menu

MacTremServ

Started by GrooveMachine, August 02, 2007, 07:36:30 AM

GrooveMachine

Hey, today I created a shel script (mac only) that installs all the necessary files to maintain a tremulous server on a mac.  Hope you guys find it useful!  Oh, and by the way, read the readme (called Read This First) before you execute the script.  It's REALLY important, seriously.  I would love to hear feedback from you guys on it if possible.  Bear with me if it's a little buggy, because it's my first script.  I tested it on my computer though, and it worked perfectly.

Oh, here's the link:
http://www.divshare.com/download/1523630-253

Enjoy!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

next_ghost

Please do me a favor and read this.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

I'm sorry that it's not perfect, and is simple.  I based it off of the text at tjw.org/tremulous/SETUP.txt, and come on!  It's my first script ever, and I'm still a Unix BEGINNER!  There's really no need for pipes and outputs and whatever other glitter you want to put in there.  Think of my script this way: it's the same as what's on tjw.org/tremulous/SETUP.txt, but I added some helpful tips in the readme file.  I know it's probably frustrating that I suck at writing shell scripts, but like it said on the site that you posted, "the only way to really learn scripting is to write scripts", and that's what I'm doing.

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

next_ghost

#! /bin/bash :roll:
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

ShadowNinjaDudeMan

Ive run the terminal window, everythings installed, how do you run the server.

Personally I am impressed with this script, v. useful, I think.
Quote from: Colynn' on August 13, 2009, 05:21:09 PM
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

Death On Ice

Nice Work, GrooveMachine.

(Remember me from in-game?  :wink: )

GrooveMachine

Of course I remember you, Death.  Thanks for the comments, I'm glad to finally get some feedback.  Ninja, to start up your server, type the following in terminal:

cd /Applications/Tremulous (press return)
./tremded.ub +set dedicated 2 +exec server.cfg (press return)

Oh, by the way Ninja, that's in the Readme (included with the download) for future reference.

Hey, I just finished version 2 of the script, complete with an uninstaller.  Also, I fixed a problem in version 1's installer, so yeah.  You want to run the uninstaller file before installing the new one, just so you know, and you will most likely get some sort of error message.  Don't worry about it, just run the installer next.

Here's the link for the latest version:
http://www.divshare.com/download/1523630-253

Thanks for using MacTremServ!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

ShadowNinjaDudeMan

but how dyu uninstall V1?

It aint in the reame.

(actually, by my alertness, it could be)
Your link aint workin cos the server aint responding.
Quote from: Colynn' on August 13, 2009, 05:21:09 PM
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

next_ghost

Could you PLEASE read your script again and then this? :roll: MacTremServ.sh is not a valid script and it tries to download a file called game.qvmcurl from TJW's site.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

Ninja: To uninstall V1, run the uninstaller in V2.  It should work just fine.
Ghost: Thanks for pointing out that mistake: I fixed it earlier, but somehow it came back to haunt me in V2!!!  Oh, also Ghost, what do you mean by "the script isn't valid"?

You can get MacTremServ here:

http://www.divshare.com/download/1523630-253

Thanks for your support!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

Death On Ice

Methinks I'll contribute something.

Some server files from an experienced operator.

Here are some command blocks and command files, which can be found here:

http://www.mediafire.com/?2m9z3bp6v2h

GrooveMachine

Great, now what do do I know with them?  Where do they go?
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

Hey, sorry to double-post, but after some more script-work, I made yet another version of MacTremServ, even better than before! It has a file to open your server, and one to restore the non-changing server files (NOT SERVER.CFG, OR ANYTHING THAT YOU WOULD EDIT).

Here's the link for the latest version:

http://www.divshare.com/download/1523630-253

Enjoy!

Oh, I need some suggestions for additions to MacTremServ for future versions (Death, I'm working on your base files as we speak).  Thanks!
Computers are like air conditioners...they work until you open Windows!

Death On Ice

No Problem. You know what to do with them now, correct? Glad to see another version.

This should be stickied, by the way  :wink:

GrooveMachine

Hey, thanks Death.  Now that I have 62 server commands, I can share them all with everyone else!  Version 5 is out now *pant*, with the new admin.dat file and commands built in.  Here's the link for the latest version:

http://www.divshare.com/download/1523630-253

Enjoy!  Once again, I want feedback.  I'm pretty sure that this works perfectly (it worked for me just fine), but i want some confirmation, if possible.  I'd also like some suggestions for what to add, because my well is dry.  Thanks!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

next_ghost

Quote from: GrooveMachinewhat do you mean by "the script isn't valid"?

#! /bin/bash
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

I'm sorry, but what does that mean?  I probably sound stupid, but I want to know what isn't valid.

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

Death On Ice

Want an example maprotation.cfg and server.cfg?

You can build "Version Two" of my server files into your script if you want. :P

http://www.mediafire.com/?0grg2tbzxoz

Here it is.

next_ghost

Quote from: GrooveMachineI'm sorry, but what does that mean?  I probably sound stupid, but I want to know what isn't valid.

-GrooveMachine

#! /bin/bash
That's a one-line difference between valid and not valid script file. Why and where to put it is described in introduction of that ebook I've linked here 2 times already. Your script won't work in any other shell than BASH. That's why it's not valid.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

I think I get it now Ghost, but just to make sure, version 6 is called beta 6 instead.  Check out  the latest version here:

http://www.divshare.com/download/1523630-253

Thanks!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

Hey, version 6 is up and running, with an absolutely MAJOR fix.  Pick it up here:

http://www.divshare.com/download/1500918-0d6

Get it while it's hot!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

Hey, beta 7 is available here:

http://www.divshare.com/download/1523630-253

It's a much bigger file (5.3 megs, I think), because I made it so you don't have to download other thing with this app, it just comes with them zipped.  Give it a try if you can.  I'm almost positive that it's stable.

Oh, I still need some ideas for what to add.  Let me know what you want out of MacTremServ and I'll do my best to include it in the next release!

Thanks!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!

ShadowNinjaDudeMan

whenever I put "install MacTremServ" into Terminal and Wap the Enter button, it always comes up with Permissio Denied.

Ive tried doing it on root as well, still na luck.
Anything?
Quote from: Colynn' on August 13, 2009, 05:21:09 PM
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

benmachine

SNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return
benmachine

next_ghost

Quote from: ShadowNinjaDudeManwhenever I put "install MacTremServ" into Terminal and Wap the Enter button, it always comes up with Permissio Denied.

Ive tried doing it on root as well, still na luck.
Anything?

Use the tab key. It will always finish the command or filename correctly. Press it twice to get a list of possible completions. The 'I' in 'Install MacTremServ.sh' is uppercase and there must be a backslash in front of the space.

Oh, and even though space is a legal filename character, it's better not to use it in filenames. :roll:

And are you really sure the script has execute permission set?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

ShadowNinjaDudeMan

Quote from: benmachineSNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return

That is exactly what I do!
I drag and drop install MacTremServ.sh into terminal and press enter. Maybe I shouldve clarified.
Quote from: Colynn' on August 13, 2009, 05:21:09 PM
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

benmachine

Quote from: ShadowNinjaDudeMan
Quote from: benmachineSNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return

That is exactly what I do!
I drag and drop install MacTremServ.sh into terminal and press enter. Maybe I shouldve clarified.
Sorry, I didn't realise that was the actual name of the script :P
So long as you are dragging and dropping the path should be correct. Try this command:
chmod u+x /path/to/script
replacing /path/to/script of course.
chmod: change file mode
u: user
+x: add execute permission
benmachine

Death On Ice

Can't you just..."Super-User-Do" (sudo) it? Or "Switch-User to Root"? (su -)

That way it runs as an admin..

I haven't actually tried it, I don't wanna mess up my server, but still.

next_ghost

Quote from: Death On IceCan't you just..."Super-User-Do" (sudo) it? Or "Switch-User to Root"? (su -)

That way it runs as an admin..

I haven't actually tried it, I don't wanna mess up my server, but still.

Even root can't run files which aren't executable. He can make any file executable though.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

Just look at the Readme Ninja!  All of your troubleshooting problems are there!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!