Dedicated Server on Ubuntu

Post here if you need help setting up your server, etc.
Post Reply
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Dedicated Server on Ubuntu

Post by Seraphim »

Hello,

I ned Help setting up a dedicated server on ubuntu. I have already downloaded the sty using the branch command as shown here. http://wiki.armagetronad.org/index.php?title=Sty

After that I looked at this wiki. http://wiki.armagetronad.org/index.php? ... stallation

and I am stuck at the bottom part after it says ./configure it tells me to "make" and "sudo make install"

Ive typed both of these commands into the terminal and it says
make: *** No targets specified and no makefile found. Stop.
I have no idea what this means!

I need help to get this server running! Thank You. Much help will be very appreciated
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

If you're interested, I've made a script that will do all the work for you on a fresh server. If you don't like it being automated, feel free to open it up and see how it's done. It's just bash, so you can do it yourself.

Link: Setting Up Multiple Armagetron Servers the Easy Way
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

ty light. and its me eez btw :)
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

Seraphim wrote:ty light. and its me eez btw :)
Ah! In that case, let me find that trojan I've been meaning to give you .. :P
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

LOL hahaha <3 DO ET!!
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

i did the wget command and entered my root password and it says authentification failure
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

Seraphim wrote:i did the wget command and entered my root password and it says authentification failure
wget is run at user level, so you shouldn't need to enter a password. Don't use sudo or the file is going to be owned by root, which isn't a problem, but I don't want to add confusion.

As a note. When you're using sudo permissions, you need to enter YOUR password, not root's. Also, be sure that the user you're running it as is part of the sudo group.

By default on an Ubuntu server, you're root. So you could just create a user like I showed on the wiki. If you're doing it on Ubuntu Desktop, then you should already have a user, so you can use yourself.
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

my password is admin and its not working
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

Seraphim wrote:my password is admin and its not working
Are you using the server or desktop package?

If you're using the server package, just SSH into it as root and add yourself to the group.

If you're on the desktop package, then you should already be a part of the sudo group, allowing you to use it with your password. It should even say "[sudo] password for tom:" with your username ..

So, to add to the sudo group ..

Code: Select all

sudo usermod -aG sudo {USERNAME}
But, you need sudo permissions for that .. so you're going to have to log in as root if you don't have sudo abilities. If you're on the desktop package, be sure your password is correct. (caps matter)

Not sure what else to tell ya.

----

Last quick idea is that maybe you're trying to output the file to a location you don't have permissions to write in? Make sure you cd to your home directory before using wget.
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

idk if mine is a server or desktop package. heres where i got it from.
https://code.launchpad.net/~armagetrona ... -sty+ct+ap
User avatar
fman23
On Lightcycle Grid
Posts: 36
Joined: Thu Sep 08, 2011 1:54 am
Location: Yes
Contact:

Re: Dedicated Server on Ubuntu

Post by fman23 »

If I could chime in, if you only want to have one server on the computer, I would not fiddle with a multi-server management system, but instead use the default dedicated server system. To do this, first get the sources.

For sty+ct, run

Code: Select all

bzr branch lp:~armagetron-ct/armagetronad/0.2.8-armagetronad-sty+ct sty+ct
to get the sources in a folder called sty+ct.

To get sty+ct+ap, use

Code: Select all

bzr branch lp:~armagetronad-ap/armagetronad/0.2.9-armagetronad-sty+ct+ap sty+ct+ap
Next, compile the sources. Change to the directory and run

Code: Select all

./configure --enable-dedicated && make && sudo make install
to compile the sources and put the compiled files in the proper places.

Then to start the server, simply run

Code: Select all

sudo /etc/init.d/armagetronad start
To stop, run

Code: Select all

sudo /etc/init.d/armagetronad stop
You can additionally add the server to the normal boot-up by running

Code: Select all

sudo update-rc.d armagetron defaults
Your configuration will be located at /etc/games/armagetronad/settings_custom.cfg.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

Seraphim wrote:idk if mine is a server or desktop package. heres where i got it from.
https://code.launchpad.net/~armagetrona ... -sty+ct+ap
I'm talking about Ubuntu, your OS.
Seraphim
Posts: 7
Joined: Thu Aug 08, 2013 10:47 pm

Re: Dedicated Server on Ubuntu

Post by Seraphim »

Ok light I got it fully installed and configured and i edited the cfg files already. But a quick question.
I used the commands here to start up the server and it just keeps saying Killed myServer:

cd /home/USERNAME/armagetronad/scripts
sudo -s -u USERNAME . boot.sh myServer

How do I start up the server and get into the console window?
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Dedicated Server on Ubuntu

Post by Light »

Sorry for taking so long to reply.

When it boots, it runs the kill script first. It just prevents you from throwing up duplicate servers.

To get into the console, you just jump into the screen.

Get a list of screens: sudo -s -u USER screen -ls
Get into the screen: sudo -s -u USER screen -rS SCREEN
Detatch from screen without closing: CTRL + A then CTRL + D

If you want, you can also run the boot script (screens) just as root. If you use other peoples' scripts though, watch because they could be dangerous. Also a bad idea if you're hosting other users.

sudo . boot.sh or sudo . boot.sh myServer

Alternatively:
su
. boot.sh or . boot.sh myServer

Now .. I'll give what I think you're looking for. If you don't want to run it in a screen, you don't HAVE to. It's just convenient since you don't want 10 consoles up if you're running servers. Well, maybe you do, but I wouldn't.

If you're using a script:
su
cd /path/to/myServer/scripts
/path/to/armagetronad/scripts/srv.sh myServer

If not ..
su
./srv.sh myServer

The boot script does this for you, which is why you need to use source (the . at the beginning) to cd. You very likely wouldn't want the script executing from the scripts folder (with your server controls in) if you ever ran a script that isn't yours. One rm * and your scripts are all gone. They could also control the servers and whatnot. On that note, you should also set "other" permissions to 0 for your controls. That will prevent USER from accessing them when they shouldn't.

Since you're probably not hosting people, a lot of that don't matter, but I just thought I'd throw it in there. If you need help with anything else, just reply and I'll get back to you tomorrow morning. I gotta go for the day. :P

-Xaotique
Post Reply