Page 1 of 1
Dedicated server & Gentoo
Posted: 26 Jun 2006 12:28
by Crnd
I was planning to install OpenTTD on my Gentoo server. I noticed that emerging OpenTTD resolves in installing several unneeded packages. I would be just running a dedicated server so I don't need anything that has something to do with GUI.
Code: Select all
[ebuild N ] media.libs/fontconfig-2.2.3
[ebuild N ] x11-apps/ttmkfdir-3.0.9-r3
[ebuild N ] app-admin/eselect-1.0
[ebuild N ] app-admin/eselect-opengl1.0.3
[ebuild N ] x11-base/opengl-update-3.0.0
[ebuild N ] x11-base/xorg-x11-6.8.2-r7
[ebuild N ] virtual/opengl-6.8
[ebuild N ] app-arch/rpm2targz-9.0-r3
[ebuild N ] sys-libs/libutempter-1.1.2.1
[ebuild N ] x11-terms/xterm-212-r3
[ebuild N ] media-libs/audiofile-0.2.6-r1
[ebuild N ] dev-lang/nasm-0.98.39-r3
[ebuild N ] media-libs/libsdl-1.2.8-r1
[ebuild N ] games-simulation/openttd-0.4.0.1-r1
Half of those packages are something that I'm certain I don't need. So is there a way to do an emerge so that only packages required for a dedicated server would be installed? I know I could manually compile from source but I just want to know if there is a way to do this by using emerge.
Posted: 26 Jun 2006 12:42
by Thief^
I know this doesn't answer your question, but that version of openttd is out of date (newest release is 0.4.7 IIRC).
here is the official download page for openttd, but it doesn't have linux builds on. There is a link to the sourceforge page, which has a couple of linux binaries on, but no dedicated server. There's another link to the "nightly"s, which are current work-in-progess versions of openttd, not compatible with the official release in multiplayer, but does have a download for the linux dedicated server.
Also I'm fairly sure that even the graphical version of openttd doesn't use opengl, so why there are opengl packages listed I don't know.
Can someone who knows what they are doing come along and help here?
Posted: 26 Jun 2006 13:10
by Crnd
So I'll probably compile the game manually if the version installed by emerging is so outdated. Can I run a dedicated server if I compile from the source available on the downloads page or does it require a specific source?
Posted: 26 Jun 2006 13:18
by Thief^
According to the
OpenTTD wiki you can run a dedicated server from the normal build with -D. I'm fairly sure that there's a way to ask it to build a dedicated-only version, but I don't know how.
Posted: 26 Jun 2006 13:33
by VPN-User
Hey, v0.4.7 is just masked in portage, so unmask and compile it. And inform yourself on how to use USE flags.
Posted: 26 Jun 2006 15:40
by Brianetta
My server was Gentoo based until last month, when I had it reinstalled.
Don't use the portage facility to install openttd; it's harder to keep up to date, harder to modify and generally unnecessary.
Just grab the source from the SVN server, or download th etarball from the web site. You can compile a dedicated server from that source by setting the environment variable DEDICATED to anything at all before you compile - this avoids the need for SDL dev libraries, which avoids the need for X.
Since openttd can be downloaded, compiled and executed as any user from a directory within their home directory, installing it as a global package just makes life difficult. The #openttdcoop mainserver and sandbox, and my own nightly server, were all running simultaneously on the same Gentoo box without making use of portage. Now the server has been reinstalled, the same users' files were restored from the backup, and worked immediately after make was re-run to link against the new system libraries.
So, once again, to sum up: Portage bad. Do it yourself.
Posted: 26 Jun 2006 15:49
by VPN-User
Erm, I won' t call it bad. It' s better than nothing and far better than collecting libs and dependencies on your own.
ebuilds are EASY to patch, just create a portage overlay and you can play around.
I use Gentoo and portage for my OpenTTD server for 6 months now ("DE KiK-Server" in Serverlist) and what can I say: It just works. I don' t like patches or nightlies because you alsways have to update etc and not all players are willing to do that nor am I. I prefer releases.
Posted: 30 Jun 2006 00:58
by Aloysha
Compile it manually.
DEDICATED=1 ./configure
make
then just construct the normal openttd directory structure as you would.
My Cura Internet servers run on a nice dual Xeon box with Gentoo.
Posted: 30 Jun 2006 07:32
by Brianetta
Aloysha wrote:then just construct the normal openttd directory structure as you would.
Never had to do that part myself - the archives and the SVN server all have that in place.