Dedicated server & Gentoo

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Crnd
Engineer
Engineer
Posts: 2
Joined: 26 Jun 2006 12:15

Dedicated server & Gentoo

Post 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.
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post 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?
Melt with the Shadows,
Embrace your destiny...
Crnd
Engineer
Engineer
Posts: 2
Joined: 26 Jun 2006 12:15

Post 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?
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Post by Thief^ »

According to theOpenTTD 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.
Melt with the Shadows,
Embrace your destiny...
VPN-User
Traffic Manager
Traffic Manager
Posts: 136
Joined: 07 Jun 2002 08:43
Location: Radolfzell at Lake of Constance in Germany
Contact:

Post 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.
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post 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.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
VPN-User
Traffic Manager
Traffic Manager
Posts: 136
Joined: 07 Jun 2002 08:43
Location: Radolfzell at Lake of Constance in Germany
Contact:

Post 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.
Aloysha
Engineer
Engineer
Posts: 26
Joined: 26 May 2005 12:21
Location: Sydney, Australia

Post 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.
Cura Internet OpenTTD
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post 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.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Baidu [Spider] and 21 guests