Installing a linux dedicated server?!?

Post here if you need help setting up your server, etc.
Post Reply
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Installing a linux dedicated server?!?

Post by -JacKZenTH- »

I'm totally new to linux and know nothing at all about it. I've been hosting on win for a few months now so i no something bout hosting but i want to move to linux xubuntu. I have found a .package install file that i want and hve downloaded it (armagetronad-dedicated-0.2.8.2.x86_64-generic-linux-gnu.package). I have looked on the wiki and followed the instructions for the installation on linux but it keeps saying:

jackzenth@ubuntu:~$ bash ./armagetronad(-dedicated)-0.2.8.2.1.i686-generic-linux-gnu.package -t
bash: syntax error near unexpected token `('


in the terminal. Help me please! (Also if it involves "Sudo" , i don't know how that works obviously and will need explaining sorry)

JacKZenTH
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Re: Installing a linux dedicated server?!?

Post by ed »

-JacKZenTH- wrote:jackzenth@ubuntu:~$ bash ./armagetronad(-dedicated)-0.2.8.2.1.i686-generic-linux-gnu.package -t
Why did you put brackets around "-dedicated"?
Try it without...

Code: Select all

bash ./armagetronad-dedicated-0.2.8.2.1.i686-generic-linux-gnu.package -t
if that is the file you downloaded. Yet you say you downloaded the 64bit package...
-JacKZenTH- wrote:armagetronad-dedicated-0.2.8.2.x86_64-generic-linux-gnu.package
in which case it would be...

Code: Select all

bash ./armagetronad-dedicated-0.2.8.2.x86_64-generic-linux-gnu.package -t
Whichever one, it must match the file you downloaded.
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Installing a linux dedicated server?!?

Post by dlh »

If you are using Ubuntu you can install armagetronad-dedicated through apt:

Code: Select all

apt-get install armagetronad-dedicated
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

ok i did this:

jackzenth@ubuntu:~$ apt-get install armagetronad-dedicated
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

but that happened lol. i think iv installed it a differnt way now via "synaptic package manager". but i have no idea how to open it and run it?
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Installing a linux dedicated server?!?

Post by Z-Man »

Try

Code: Select all

sudo apt-get install armagetronad-dedicated
instead.
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

ok i think iv got it installed...how do i run it?
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Installing a linux dedicated server?!?

Post by Z-Man »

Code: Select all

armagetronad-dedicated
to run it directly,

Code: Select all

/etc/init.d/armagetronad-dedicated start
to start it as a service. We do have documentation on that stuff, by the way.
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

I tried option a:
malcolm@ubuntu:~$ armagetronad-dedicated
/usr/games/armagetronad-dedicated: line 27: /var/games/armagetronad/armagetronad-dedicated-starter.pid: Permission denied


and then option b:
malcolm@ubuntu:~$ /etc/init.d/armagetronad-dedicated start
Not starting Armagetron Advanced dedicated server armagetronad-dedicated, disabled via /etc/default/armagetronad-dedicated


does ubuntu make a difference? as its auth. related....by the way i am the only user so i don't see why i cannot do it
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Re: Installing a linux dedicated server?!?

Post by ed »

It looks like you installed it as root so only root can run it.
Try

Code: Select all

sudo armagetronad-dedicated
or

Code: Select all

sudo /etc/init.d/armagetronad-dedicated start
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

Option a:
malcolm@ubuntu:~$ sudo armagetronad-dedicated
[sudo] password for malcolm:
sudo: armagetronad-dedicated: command not found


Option b:
malcolm@ubuntu:~$ sudo /etc/init.d/armagetronad-dedicated start
[sudo] password for malcolm:
Not starting Armagetron Advanced dedicated server armagetronad-dedicated, disabled via /etc/default/armagetronad-dedicated


Sorry to be annoying by the way.
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Installing a linux dedicated server?!?

Post by Z-Man »

For the first method, try

Code: Select all

sudo /usr/games/armagetronad-dedicated
(looks like the ubuntu package is a bit broken. Only root or the designated server owner can run the server script, but it's not in its path.) Note that running a server as root is discouraged, so you probably rather want to have a look at that file the second command's error message pointed you at (/etc/default/armagetronad-dedicated). You'll want the second line there to read

Code: Select all

ARMAGETRONAD_SERVER_START=1
, not =0. Then try the second command again.
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

Thanks alot Z-Man great tip....for future ref...

sudo /usr/games/armagetronad-dedicated

is the way to do it on ubuntu....sorry to have used your time!

-JacKZenTH-
User avatar
Z-Man
God & Project Admin
Posts: 11589
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Installing a linux dedicated server?!?

Post by Z-Man »

Not really :) As I said, you're running the server as root. That is dangerous. A security flaw in armagetronad itself would put your whole system at risk. The /etc/init.d way is much safer.
User avatar
-JacKZenTH-
On Lightcycle Grid
Posts: 36
Joined: Sat Apr 25, 2009 2:11 pm
Location: England

Re: Installing a linux dedicated server?!?

Post by -JacKZenTH- »

lol probably but its taken me like 4 weeks to learn enough about linux to manage anything and about 2 more to install it and run it like this so it will have to do for now...might change it at some point.

Now i just have the pleasure of learning how to multi host! yay *sarc*
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Installing a linux dedicated server?!?

Post by pie goes moo »

I think it also installs to the games folder. I tried it in ubuntu, and it was in the games (Applications>Games>Armagetron Advanced Dedicated)
Image
Post Reply