logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Switching to Linux
Goto page 1, 2  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Thu Feb 22, 2007 19:22    Post subject: Switching to Linux Reply with quote

New to Linux (very new!). I have decided to install Ubuntu on my new server box, I am currently running WinXP on my old box. Is the transfer likely to be painful for me?

Please bear in mind that I am not a pro at running windows either, I just don't want to have to pay for yet another OS, so I am going the free route with Linux. I do know that people say the Linux OS is much more stable for PWs, though I cannot speak to this as I have been running on a very unstable Windows machine Embarassed

I hear tell there is a decent readme in the Linux download. Is this true? Will I be able to get things up and running without a weekend long hair pulling out session?

Also, how about the database? I guess I will need to change from the sqlite I am using now to MySQL?

Thanks for the input in advance.

-William
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Thu Feb 22, 2007 22:29    Post subject: Reply with quote

How painless your Linux install will be really depends on your setup and needs. For example, if you have hardware that requires proprietary or Windows-only drivers (Linksys wireless cards via ndiswrapper come to mind...), it can be a pain.

I disagree that Linux is necessarily more stable for PWs. I have a Win2K Pro box hosting two PWs and their websites, and I've hit uptimes of roughly 150 days, with nwserver's uptime counter rolling over to negative numbers. As long as you can dedicate a system to hosting a server, there should be no issues. If you're using your server as a desktop too, that's inherently going to make it less stable.

MySQL is easy to set up, and more versatile, in my experience. Even on a Windows server, I prefer it.

Good luck with whatever you decide to do.
Back to top
View user's profile Send private message Visit poster's website
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Fri Feb 23, 2007 3:49    Post subject: Reply with quote

Its been running on a WinXP system for a few months now, but I have built a new server box for this application and this one alone, and it will be a dedicated machine. Main reason for going Linux is cost. I can't afford $299 or whatever Windows costs now. Linux = free. This is a darn good reason in itself for me to use it.

Stability is a concern, but I am poor. The machine has not really got any peripherals that need drivers, so that shouldnt be an issue. Its really quite slim, basically a vid card, built in sound and LAN, RAM, HDD and processor. I dont need more because this machine is not for playing around on right now.
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Fri Feb 23, 2007 8:36    Post subject: Reply with quote

Ahaha. Paying for Windows. How quaint. Wink

That being said, sounds like you have a decent setup for Linux. I don't have first-hand experience with NWN/NWNx on Linux, so I can't really offer any advice there other than repeating: good luck.
Back to top
View user's profile Send private message Visit poster's website
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Fri Feb 23, 2007 10:53    Post subject: Reply with quote

Running on a linux box is rather simple. Most linux installations makes tasks like install mysql are just a couple of clicks. When the box is running, install the dedicated server and the latest nwnx2 for linux. With the plugins from dumbo/virusman (odbc2, chat, functions) many things like the windows version also available in the linux box. The only thing i haven't made working is the leto script plugin, i can't figure out how to configure the paths for it...
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Fri Feb 23, 2007 17:40    Post subject: Reply with quote

If you want a sample linux path, this is from the HGLL system, const file:
const string NWNPATH = "C:/NeverwinterNights/NWN/servervault/";//windows sample
// const string NWNPATH = "/home/funkyswerve/nwn/servervault/";//linux sample

HTH,
Funky
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Fri Feb 23, 2007 18:26    Post subject: Reply with quote

Yeah, figuring out the ways around the filesystem now. AND banging my head against my poor Mac's keyboard trying to get the ethernet card to work. *Grumble grumble* I have to get new drivers on there.

Once I get that working, I should be able to start loading on the NWN parts and see about getting this thing running.
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Sat Feb 24, 2007 2:56    Post subject: Reply with quote

OK, got NWN installed and I can boot the server successfully. Have not yet worked out port forwarding for this machine, but thats no big deal.

Now, I have down loaded nwnx2, nwnx_chat, resetpugin, and profiler, but I don't find the ODBC plugin.

I had the hashset and leto plugins on the old machine, but had yet to do anything with them, so I am not too worried about them.

Linux sure is a learning experience for me...

Here is a question: how do I set up NWNx to load on startup? I want to give my DMs remote access to restart the box when needed, and that will be absolutely necessary in that event. Also, on a previous server, the admin had set up a .sh file that would set up all the commands for the server. Is that the best way to do this?
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Sat Feb 24, 2007 3:36    Post subject: Reply with quote

Actually...now that I have extracted NWNx...nvm about the sh. file. Wink
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Sat Feb 24, 2007 7:55    Post subject: Reply with quote

OK, next problem. I can't make the NWNx executable install. Here is a copy of the config logfile generated.

Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by FULL-PACKAGE-NAME configure VERSION, which was
generated by GNU Autoconf 2.52. Invocation command line was

$ ./configure

## ---------- ##
## Platform. ##
## ---------- ##

hostname = whunter-desktop
uname -m = i686
uname -r = 2.6.17-11-generic
uname -s = Linux
uname -v = #2 SMP Thu Feb 1 19:52:28 UTC 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games

## ------------ ##
## Core tests. ##
## ------------ ##

configure:972: PATH=".;."; conftest.sh
./configure: 979: conftest.sh: not found
configure:975: $? = 127
configure:1069: checking for gcc
configure:1084: found /usr/bin/gcc
configure:1092: result: gcc
configure:1320: checking for C compiler version
configure:1323: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1326: $? = 0
configure:1328: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
configure:1331: $? = 0
configure:1333: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1336: $? = 1
configure:1356: checking for C compiler default output
configure:1359: gcc -mcpu=i386 conftest.c >&5
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1362: $? = 1
configure: failed program was:
#line 1340 "configure"
#include "confdefs.h"

int
main ()
{

;
return 0;
}
configure:1385: error: C compiler cannot create executables

## ----------------- ##
## Cache variables. ##
## ----------------- ##

ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXFLAGS_set=''
ac_cv_env_CXXFLAGS_value=''
ac_cv_env_CXX_set=''
ac_cv_env_CXX_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_prog_ac_ct_CC='gcc'


configure: exit 77

_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Sun Feb 25, 2007 5:49    Post subject: Reply with quote

Ah figured it out. Now I am getting an error wherein I cannot access the DB on nwnx2 startup. I think I have the wrong password Embarassed
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Mon Feb 26, 2007 2:02    Post subject: Reply with quote

Ok. Figured it out. Now to get the rest of the plugins on there and really test this. Thanks folks.
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Mon Feb 26, 2007 17:38    Post subject: Reply with quote

@FunkySwerve: thanks for describe my path problem and it's easier i think off. I will try it in my next builds. If you are familar with leto-script - is there a way to put the paths in a ini or cfg file? I use a windows installation at home for testing, but my server runs on a linux box. Possible i shold store the path in the sql db?
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
william_hunter



Joined: 31 Jan 2007
Posts: 149

PostPosted: Tue Feb 27, 2007 1:18    Post subject: Reply with quote

One thing:

How do I know on the linux box that things are working? I can't see NWNx in the running processes window, though nwserver is there and running. I can see that the plugins got hooked, and they are working in the mod, so I guess I just trust that things are going as they should?

Oh, and can someone help me with setting up a "while" loop to make sure the server will restart in the event of a crash?
_________________
The Realm of Tharagon NWN PW
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Tue Feb 27, 2007 13:26    Post subject: Reply with quote

You can look into the logfiles in the specified log directory.
If you have trouble make sure you have enabled debug messages in the nwnx2.ini

My nwnstartup.sh looks like this:

while [ nwncheck != 1 ]
do
sleep 10
export LD_PRELOAD=./nwnx2.so
./nwserver -module "modulname"
unset
unset LD_PRELOAD
done

I use the other settings via the nwnplayer.ini

hope this helps...
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group