View unanswered posts | View active topics It is currently Thu Mar 28, 2024 2:47 am



Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
 Need direction? will TW run on linux or? 
Author Message
Private 1st Class

Joined: Fri Sep 19, 2008 8:08 pm
Posts: 2
Unread post Need direction? will TW run on linux or?
hey all

i remember the old days.... ok but now

can TW be hosted on a linux server w/ shh-telnet or does it have to be a windows

was thinking of setting one up and all

would be a bummer if i got it all registration code and all and it was windows....which i can get windows hosted ones but personally have stuck to linux webhosting


thanks.... if need be can email me [url]ffzell69@yahoo.com[/url]
TeddyB


Fri Sep 19, 2008 8:20 pm
Profile
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: Need direction? will TW run on linux or?
Teddyb wrote:
hey all

i remember the old days.... ok but now

can TW be hosted on a linux server w/ shh-telnet or does it have to be a windows

was thinking of setting one up and all

would be a bummer if i got it all registration code and all and it was windows....which i can get windows hosted ones but personally have stuck to linux webhosting


thanks.... if need be can email me [url]ffzell69@yahoo.com[/url]
TeddyB


I believe there was someone who made a linux front end that worked with twgs. I can't remember his name, but Eleq should remember who it was. Check out The Stardock, there might be some literature on it.
http://www.thestardock.com/

Edit:
I'll make it even simpler for you

The name of the person that was running twgs on linux was "Aitvo".
I also ran across this post on The Stardock...

http://www.thestardock.com/?p=415

TWGS Runs Under Linux by EleqTrizi'T in June 29th, 2006 I just verified it yesterday. The newest copy of WINE will fire up the TWGS and run it. I didn’t do extensive performance testing, but it seems to be plenty fast. This was done under Kubuntu Linux.


Fri Sep 19, 2008 8:34 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
Considering the app sucks cycles even when running native, I'd hate to see it under emu... laff. Wonder how it would handle stuff like extern and alien manager (spawned apps).

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Fri Sep 19, 2008 8:50 pm
Profile ICQ WWW
Private 1st Class

Joined: Fri Sep 19, 2008 8:08 pm
Posts: 2
Unread post Re: Need direction? will TW run on linux or?
Thanks a lot all of ya....

waiting to find out if all this , will work on a web server.. .. if it will... sounds like a plan to me! ;-)

TeddyB


Fri Sep 19, 2008 10:21 pm
Profile
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post Re: Need direction? will TW run on linux or?
Teddyb wrote:
can TW be hosted on a linux server w/ shh-telnet


I wish!!
If ya could my ping times would be better :cry:

_________________
Gul D'Tek (The Cardassian Hitman)
ICQ - 446445340

I'm a TW and #SD# ing you was my idea!

Very funny, Scotty. Now beam down my clothes.~ J.T.Kirk


Fri Sep 19, 2008 10:53 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
Quote:
waiting to find out if all this , will work on a web server.. .. if it will... sounds like a plan to me!


I'm pretty sure you'd need wine and xwin to make it work. I don't know of many web servers that do, or that would appreciate you sucking up those kind of CPU cycles from a shared hosting enviro.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Fri Sep 19, 2008 11:55 pm
Profile ICQ WWW
Gunnery Sergeant

Joined: Mon Dec 01, 2008 2:14 pm
Posts: 22
Unread post Re: Need direction? will TW run on linux or?
I know this is an old post but I have TWGS successfully running on Ubuntu Server through wine. It works great. You can also using an isolated TWGS and run it with it's own user with a remote VNC session for headless administration.

If you are using straight Ubuntu simply install wine and then TWGS and your good to go. Just note that you can't get TWGS to run on port 22. That port is reserved for the root user and if you're smart you wont let TWGS run as root ;) To get TWGS to bind to a port simply use port 2002 or higher.



Here's how to install TWGS on Ubuntu Server (Hardy or Intrepid) running as it's own user in a VNC session for remote administration in case anyone is curious (as well as to keep a record of these instructions for myself as it took a long time of reading forum posts and how-to's to piece this all together):


1) Install Ubuntu Server and make sure the Universe and Multiverse repositories are active.

2) Install nano (if you want to copy/paste these instructions.. Otherwise use VI)
Code:
sudo apt-get install nano


3) Open the termnial and Install gnome-core and GDM (needed for wine and VNC)
Code:
sudo apt-get install gnome-core gdm


4) Install VNC4Server and Xinetd
Code:
sudo apt-get install vnc4server xinetd


5a) Set GDM permissions for remote VNC
Code:
sudo nano /etc/gdm/gdm.conf-custom


5b) Change [security] and [xdmcp] sections to the following:
Code:
[security]
DisallowTCP=false
[xdmcp]
Enable=true


6) Set root vnc password (used for GDM session which is only needed to install the software)
Code:
sudo vncpasswd /root/.vncpasswd


7) Create a new file Xvnc to add the vnc service to xinetd
Code:
sudo nano /etc/xinetd.d/Xvnc


8) Paste these contents into the file
Code:
service Xvnc
{
        type = UNLISTED
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = root
        server = /usr/bin/Xvnc
        server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
        port = 5901
}


9) Create user "tradewars"
Code:
sudo adduser tradewars


10) Add key for wine repository
Code:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -


11) Add Wine Repository
Code:
For Ubuntu Intrepid (8.10):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list -O /etc/apt/sources.list.d/winehq.list

For Ubuntu Hardy (8.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

For Debian Etch (4.0):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list


12) Update package information
Code:
sudo apt-get update


13) Install Wine
Code:
sudo apt-get install wine


14) Reboot the server (needed to reset GDM permissions, DO NOT SKIP THIS STEP)
Code:
sudo shutdown -r now


15) You should now have a working VNC session and everything you need to install TWGS. Next you need to load up your vncviewer. If your remote machine is runing Ubuntu run the following on the remote machine NOT THE SERVER:
Code:
vnc4viewer -via serveruser@myhost.com localhost:1


This will create an SSH tunnel to the VNC session running on the server.
Please Note that "serveruser" is the user account on the server machine. "myhost.com" is your servers domain name or IP address.

16) Once you see the GDM login screen make sure to set your session to Gnome and login as user "tradewars"

17) Open a terminal window in the VNC session and Download TWGS
Code:
wget http://www.eisonline.com/twgs/beta/TWGS10300.EXE


18) Install TWGS
Code:
wine TWGS10300.EXE


19) Once installed it's time to setup a special VNC session for tradewars. To do that we need to create startup files and a VNC password for user "tradewars"
Code:
vnc4server :2


20) We don't need this default session so we'll go ahead and kill new vnc session
Code:
vnc4server -kill :2


21)edit the Xstartup file so we can launch TWGS when the VNC session loads
Code:
nano /home/tradewars/.vnc/xstartup


22) replace this file with the following:
Code:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid black
vncconfig -iconic &
twm &
exec /usr/bin/wine "C:\Program Files\Epic Interactive Strategy\TWGS\twgs.exe"


23) Logout and close the VNC viewer

24) SSH back into the server using a normal user

25) Because this is a headless server we need a way to start a VNC session to startup the TWGS. To do that we are need to create a new file in /etc/init.d
Code:
sudo nano /etc/init.d/vnc.sh


26) Copy and Paste the following script into this new file
Code:
#!/bin/sh
#
# Startup/Stop script for vncservers for some users.
#

case "$1" in

'start')
   /bin/su - tradewars -c "/usr/bin/vnc4server :2"
   ;;

'stop')
   /bin/su - tradewars -c "/usr/bin/vnc4server -kill :2"
   ;;

*)
   echo "Usage: /etc/init.d/vnc.sh { start | stop }"
   ;;

esac


27) Make this script executable
Code:
sudo chmod 755 /etc/init.d/vnc.sh


28) Double check your run level. It should be set at two but some webservers do screwy things with the OS
Code:
sudo runlevel


You should something like this:
Code:
N 2


29) You need to remember the last number in the list. In this case it's 2. So on that note I would switch to /etc/rc2.d to add an entry. If your at runlevel 3 then you would want to use /etc/rc3.d. Using a runlevel of 2 we'll need to create a new symlink in rc2.d
Code:
ln -s /etc/init.d/vnc.sh /etc/rc2.d/S99vnc



30) Now we want to make sure it all comes up at boot time so we'll boot the server
Code:
sudo shutdown -r now


If all went well your new TWGS game server should now be online and you can access it using VNC at mysite.com:2

All that's left now is to empty out the contents of /etc/xinetd.d/Xvnc as this session was only needed to install TWGS and GDM and Gnome take up alot of resources. Finally start adding games and configuring TWGS to your liking

Enjoy,
LaChild


Thu Dec 04, 2008 2:56 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
Nod. Works if you have root, hehe. Obviously not effective for a shared hosting environment running linux. Good info tho, thx.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 04, 2008 3:05 pm
Profile ICQ WWW
Gunnery Sergeant

Joined: Mon Dec 01, 2008 2:14 pm
Posts: 22
Unread post Re: Need direction? will TW run on linux or?
True, but a Shared Didicated server is only a couple dollars more then a shared server if you look around ;)


Thu Dec 04, 2008 3:09 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
You can get a linux or windows VPS server w/o spending a fortune, true. Would be interesting to see how much bandwidth a twgs server takes per month, on average. VPSland has them for $35/mo.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 04, 2008 3:29 pm
Profile ICQ WWW
Gunnery Sergeant

Joined: Mon Dec 01, 2008 2:14 pm
Posts: 22
Unread post Re: Need direction? will TW run on linux or?
TWGS doesn't require a lot of system resources (Let's face it, it's an old dos game). You can pick up a pretty cheap VPS for around $7.95 from VPS link

The one you pointed out does however give you a beefer system. However for TW I can't imagine needed a TON of ram to run an old dos game. Guess we'll find out when my server goes online... LOL


Thu Dec 04, 2008 4:59 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
Nod. For the most part, but there are times of high load. Aliens, for instance, cause a higher load. Extern has some load, especially if you have a lot of games. Just having a lot of games alone will cause higher load, obviously. Then there are some node-specific load issues caused by frequent xports or planet landings. If you have a lot of people running an ore wh0re script, running a planet buydown or ore filler script or a lot of ppl running a worldSST at the same time then you'll see some pretty big spikes.

It's when you get into these more intense situations where things'll slow down. On top of that you have overselling issues. If a machine is overloaded or oversold it runs the risk of task swapping, which makes the server unusable. Even without task swapping, the more processes you have going on a machine the less frequently each will be checked in it's cycles. That has some very unusual effects on ping and gridding... it comes up quite often on overloaded servers. I would be interested to see how Wine+Linux handles this situation, and whether it's better or worse. But long story short, the more loaded a server is the better your ping has to be in order to hit a gridder. A less loaded machine gives a better average experience and makes games more enjoyable.

Then there's the bandwidth load and homing issues to consider. On a typical home server you'll get whatever route your ISP gives you, which means a rackmount at a decent host will probably give better average routes. But if their network is running w/ a higher bandwidth load (regardless of CPU) then packets will get delayed, dropped, fragmented or otherwise hosed. That will increase the ping to the server dramatically, I've seen it happen... it's not pleasant. Whether that would be better or worse compared to a home setup will depend on all the little details... probably a bit of a toss-up on average.

So while the game itself doesn't require massive amounts of resources, an enjoyable server still requires attention to detail. It's a fairly forgiving application in those respects, but if pushed to an extreme you'll get very bad results. That's why I'm skeptical of cheap hosting solutions. Bandwidth and server costs don't vary a great deal over the continental US. So for a host to undercut it's competition on price so dramtically it usually has to give something up in the process. Perhaps it's support, but 9 times out of 10 it's server load. More people per machine.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 04, 2008 6:13 pm
Profile ICQ WWW
Gunnery Sergeant

Joined: Mon Dec 01, 2008 2:14 pm
Posts: 22
Unread post Re: Need direction? will TW run on linux or?
Well here's to hoping my server sees enough traffic that I have to upgrade. ;)


Thu Dec 04, 2008 7:20 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Need direction? will TW run on linux or?
Hehehe, I'll toast to that.

Edit:

Found another cheap VPS provider...

Linky:
http://www.swvps.com/windows-vps.html

Those are windows, so no need to hassle w/ a linux setup. Am curious about the CPU limit, wonder what happens if a process goes beyond it. Is it throttled down or terminated? Anyway, the $29/mo looks good for a server if it's do-able. $300/year is nothing compared to the $140/mo for a dedicated server.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Thu Dec 04, 2008 7:31 pm
Profile ICQ WWW
Civilian

Joined: Sat Aug 20, 2011 12:30 am
Posts: 0
Unread post Re: Need direction? will TW run on linux or?
Thanks to all of you for the posting, I am sure that this posts will help me out.


Sat Aug 20, 2011 12:36 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.