View previous topic :: View next topic |
Author |
Message |
Chronus88
Joined: 14 Apr 2009 Posts: 10
|
Posted: Tue Apr 14, 2009 2:00 Post subject: Linux Question |
|
|
I'm going to be setting up an old PC (not a bad one, capable of running most games pre-2006) specifically for dedicated hosting of NWN, and I figured it might as well be Linux. Problem is, Linux has a million different homebrew variances and I was wondering if you have a specific build/version that you could recommend specifically for NWN/NWNX2 hosting. Thanks! |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Apr 14, 2009 12:24 Post subject: |
|
|
I personally love Debian for hosting a NWN server, stripped down to just the basic system plus libraries needed to compile NWNX plus NWN. You might want to check the "Desktop Environment" option in the package installation though. You'll be using the terminal to some extent anyway, but it might be easier if you haven't used the BASH terminal before to have a desktop as well.
Other distributions like Ubuntu and Fedora are very easy to install, but might have too much stuff pre-installed that you won't need. Debian is still straightforward. Mind you, I find Ubuntu does a far better job running an NWN dedicated server than a massively stripped down Windows XP does on the same machine, oddly. Linux is just incredibly stable. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue Apr 14, 2009 21:02 Post subject: |
|
|
Windows can be very stable for a NWN server too. Don't be hatin'. _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Tue Apr 14, 2009 21:07 Post subject: |
|
|
Zebranky wrote: | Windows can be very stable for a NWN server too. Don't be hatin'. |
Depends how big the server is. And how powerful the machine. Oh, and whether or not you want any of the plethora of wonderful functions the new NWNX Linux plugins offer. If you have an average-sized server, a good machine and don't want the plugins... yes, Windows will give you acceptable performance. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue Apr 14, 2009 21:19 Post subject: |
|
|
I'm from the era of Windows plugins being much better supported than Linux ones. I miss those days.
(but yes, that is a valid point. Only reason I don't worry about it is because I know I can port anything I really want...) _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
Chronus88
Joined: 14 Apr 2009 Posts: 10
|
Posted: Wed Apr 15, 2009 0:54 Post subject: |
|
|
I'm currently running windows for the server, I will be changing to Linux. I don't need any help or persuasion as to using Windows, there are too many awesome NWNX2 functions that windows is not capable of using/using correctly. The server has about 20 people on it on a busy day. Using Linux, not going to use Windows
Any suggestions?
Edit** Noticed my post sounded kinda hostile, didn't mean for that! |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Wed Apr 15, 2009 13:24 Post subject: |
|
|
I must have missed the hostility.
Well, I stand by what I said with Debian being a great choice. It depends on if you're an "expert" or not - if you are, then use a command-line only interface for the slight boost in performance. If not, make sure the "Desktop Environment" package is selected when installing to install a graphical.
Also... you can always disable the GUI later if you like. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Wed Apr 15, 2009 14:11 Post subject: |
|
|
"Yo momma so old, she got added to Debian stable."
That being said, Debian is fine for a NWN server, as is pretty much any other mainstream distribution. Ubuntu may be a better choice if you've never used Linux before, as it's a bit easier (and based on Debian, so a lot of Ubuntu experience translates better to Debian than any other distro).
Never really used anything Red Hat, though that doesn't stop me from shouting about how much it sucks.
For your requirements, choice of distro isn't going to affect performance much. Just pick something that seems easy, and make sure you create a separate /home partition. That will make it much easier to migrate to another distro later should you want to (or reinstall if you get rooted, etc., though chances of that are slim). _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
Chronus88
Joined: 14 Apr 2009 Posts: 10
|
Posted: Wed Apr 15, 2009 23:57 Post subject: |
|
|
Thanks for the pointers everyone. I'm a 4-year windows programming student so Linux is greek to me, but -very- interested in learning more about it. |
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Thu Apr 16, 2009 21:58 Post subject: |
|
|
Chronus88 wrote: | Thanks for the pointers everyone. I'm a 4-year windows programming student so Linux is greek to me, but -very- interested in learning more about it. |
Might be as well to give virtualization a try then. VirtualBox is a great program from Sun which allows you to very quickly get a virtual computer up and running from within your own computer. Great for testing stuff out. |
|
Back to top |
|
|
Chronus88
Joined: 14 Apr 2009 Posts: 10
|
Posted: Sat Apr 18, 2009 5:11 Post subject: |
|
|
Ok, I got the PC, installed Ubuntu, fully updated. Followed the immensely painstaking installation directions for NWN Platinum (CD version.) Got to the end, and cannot get nwn to run! Someone... please help, I'm getting an unimaginably intense headache from this.
NWN location
home/user/Program_Data/NWN
Here is my attempt to run nwn as per directions.
Code: | lynx@Lynx-Host:~$ cd Program_Data
lynx@Lynx-Host:~/Program_Data$ cd NWN
lynx@Lynx-Host:~/Program_Data/NWN$ sudo ./nwn
[sudo] password for lynx:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb6bb3891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb6cfd494]
#3 ./lib/libSDL-1.2.so.0(SDL_XF86VidModeQueryVersion+0x8d) [0xb7db853d]
#4 ./lib/libSDL-1.2.so.0(X11_GetVideoModes+0x164) [0xb7db378c]
#5 ./lib/libSDL-1.2.so.0 [0xb7db5457]
#6 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#7 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#8 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#9 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#10 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#11 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6bb396e]
#2 /usr/lib/libX11.so.6 [0xb6cfc619]
#3 /usr/lib/libX11.so.6(XMatchVisualInfo+0x40) [0xb6cf2530]
#4 ./lib/libSDL-1.2.so.0 [0xb7db351a]
#5 ./lib/libSDL-1.2.so.0(X11_GetVideoModes+0x408) [0xb7db3a30]
#6 ./lib/libSDL-1.2.so.0 [0xb7db5457]
#7 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#8 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#9 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#10 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#12 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb6bb3891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb6cfd494]
#3 ./lib/libSDL-1.2.so.0(SDL_XineramaIsActive+0x76) [0xb7dbeb1a]
#4 ./lib/libSDL-1.2.so.0(X11_GetVideoModes+0x673) [0xb7db3c9b]
#5 ./lib/libSDL-1.2.so.0 [0xb7db5457]
#6 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#7 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#8 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#9 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#10 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#11 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6bb396e]
#2 /usr/lib/libX11.so.6 [0xb6cfc619]
#3 /usr/lib/libX11.so.6(XCreateColormap+0x26) [0xb6cd11d6]
#4 ./lib/libSDL-1.2.so.0 [0xb7db5584]
#5 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#6 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#7 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#8 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#9 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#10 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb6bb3891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb6cfd494]
#3 ./lib/libSDL-1.2.so.0(SDL_XF86VidModeGetGamma+0x9a) [0xb7db880e]
#4 ./lib/libSDL-1.2.so.0 [0xb7db1a89]
#5 ./lib/libSDL-1.2.so.0(X11_SaveVidModeGamma+0x36) [0xb7db1b3a]
#6 ./lib/libSDL-1.2.so.0 [0xb7db560f]
#7 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#8 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#9 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#10 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#11 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#12 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6bb396e]
#2 /usr/lib/libX11.so.6 [0xb6cfc619]
#3 /usr/lib/libX11.so.6(XCreateWindow+0x26) [0xb6cf2bc6]
#4 ./lib/libSDL-1.2.so.0 [0xb7db4ff3]
#5 ./lib/libSDL-1.2.so.0 [0xb7db5635]
#6 ./lib/libSDL-1.2.so.0(SDL_VideoInit+0x2b2) [0xb7daaf66]
#7 ./lib/libSDL-1.2.so.0(SDL_InitSubSystem+0x4a) [0xb7d8d7de]
#8 ./lib/libSDL-1.2.so.0(SDL_Init+0x24) [0xb7d8d8dc]
#9 ./nwmain(SDL_SetVideoMode+0x293) [0x804f98b]
#10 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#11 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb6bb3891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb6cfd494]
#3 ./lib/libSDL-1.2.so.0(SDL_XF86VidModeQueryVersion+0x8d) [0xb7db853d]
#4 ./lib/libSDL-1.2.so.0(SDL_XF86VidModeGetModeLine+0x5b) [0xb7db88e7]
#5 ./lib/libSDL-1.2.so.0 [0xb7db3368]
#6 ./lib/libSDL-1.2.so.0(X11_EnterFullScreen+0x72) [0xb7db4092]
#7 ./lib/libSDL-1.2.so.0 [0xb7db6375]
#8 ./lib/libSDL-1.2.so.0 [0xb7db652b]
#9 ./lib/libSDL-1.2.so.0(SDL_SetVideoMode+0x1b3) [0xb7dab7df]
#10 ./nwmain [0x84d970d]
#11 ./nwmain(strftime+0x1dfd) [0x80508b5]
#12 ./nwmain [0x805d896]
#13 ./nwmain [0x805adc0]
#14 ./nwmain [0x8059ae5]
#15 ./nwmain(SDL_SetVideoMode+0x45f) [0x804fb57]
#16 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#17 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb6bb37c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb6bb396e]
#2 /usr/lib/libX11.so.6 [0xb6cfc619]
#3 /usr/lib/libX11.so.6(XMoveResizeWindow+0x25) [0xb6cd0435]
#4 ./lib/libSDL-1.2.so.0(X11_EnterFullScreen+0xd4) [0xb7db40f4]
#5 ./lib/libSDL-1.2.so.0 [0xb7db6375]
#6 ./lib/libSDL-1.2.so.0 [0xb7db652b]
#7 ./lib/libSDL-1.2.so.0(SDL_SetVideoMode+0x1b3) [0xb7dab7df]
#8 ./nwmain [0x84d970d]
#9 ./nwmain(strftime+0x1dfd) [0x80508b5]
#10 ./nwmain [0x805d896]
#11 ./nwmain [0x805adc0]
#12 ./nwmain [0x8059ae5]
#13 ./nwmain(SDL_SetVideoMode+0x45f) [0x804fb57]
#14 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7c3a685]
#15 ./nwmain(AIL_WAV_info+0x39) [0x804f851]
nwmain: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed.
Aborted |
i have no idea what any of that means. Just to be safe, I hooked up an NVIDIA 7300, and installed the recent driver for it. A game window briefly pops up (all black) but immediately closes again.
As an attempt to bypass this, I tried running nwmain. Here are those results.
Code: | lynx@Lynx-Host:~/Program_Data/NWN$ sudo ./nwmain
./nwmain: error while loading shared libraries: libmss.so.6: cannot open shared object file: No such file or directory |
The file definitely exists. I tried googling these issues, but only found 64-bit results that did not apply to me. I am using Ubuntu, fully updated with the most recent build in 32-bit.
Help is IMMENSELY appreciated. |
|
Back to top |
|
|
SartriX
Joined: 13 Jul 2008 Posts: 16
|
Posted: Sat Apr 18, 2009 10:38 Post subject: |
|
|
Looks like you're trying to run NWN in full game mode (client), instead of dedicated server mode. It's looking for several X libraries, which supply graphical functionality.
What you'll need is http://nwn.bioware.com/support/patch_standalone_linux.html
It says patch, but it's actually the complete install you'll need. Once you got it, upload ALL your /data/*.bif files from your own NWN-install to the /data -folder on the linux machine and it should run without requiring any other libraries. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Sat Apr 18, 2009 12:08 Post subject: |
|
|
Also...
DON'T RUN ANYTHING NWN AS ROOT! Seriously, do NOT use the sudo command. You should only ever run things as root if you need to. Also, you should run the command...
Code: | chown -R lynx:lynx ~/Program_Data/NWN
cd ~/Program_Data/NWN
chmod a+x nwn nwmain nwserver |
That sets up the files nwn, nwmain and nwserver to be executable. I think that's all of them - there might be nwnstartup.sh as well, and there might be others I've forgotten. Just run chmod a+x again for any other files that need to be made executable.
Incidentally, just a tip: Pressing TAB auto-completes. Very handy. |
|
Back to top |
|
|
Chronus88
Joined: 14 Apr 2009 Posts: 10
|
Posted: Sun Apr 19, 2009 0:53 Post subject: |
|
|
Thanks for the help everyone, I'll give this a shot.
Also out of curiosity, why should I not use sudo? I know it's potentially dangerous and could alter root files and corrupt things etc, but when I try the commands without sudo I always end up with "Permission Denied" or something similar. I granted my user every access privilege, and complete read/write to my NWN folder but I can't seem to work around anything without the command.
Sorry for being a novice at this, it's a tough transition from GUI to prompt. |
|
Back to top |
|
|
|