Considering building a test PC with Ubuntu and WINE

Moderator: Event DM

Post Reply
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Mon Mar 12, 2012 4:15 pm

Has anyone tried running Windows NWN on Linux with WINE before? I'm going to give it a go regardless, but I thought I'd ask first in case there are any pitfalls.
On Discord I am LongShadow#4934
User avatar
PlasmaJohn
CCC / Release Admin
CCC / Release Admin
Posts: 9010
Joined: Fri Dec 26, 2003 10:37 pm
Timezone: US/Eastern
Location: Negaria
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by PlasmaJohn » Mon Mar 12, 2012 4:25 pm

Accidentally yes. Why not run the native Linux NWN client?
Calvin: This is so cool!
Hobbes: This is so stupid.
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Mon Mar 12, 2012 4:26 pm

I am running NWN on a Mac with Wineskin, so it should be possible on Linux with Wine.

Or you could use the Linux client, which works well :up:
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
gutemensch
CCC
CCC
Posts: 11850
Joined: Sun Sep 12, 2004 3:25 am
Timezone: -5
Location: Republic of Texas
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by gutemensch » Tue Mar 13, 2012 1:42 am

I've been thinking of this also. Got a second system that's sole purpose is XBMC and they got that for Linux too. I'd be more than curious on how well it runs and how hard it was to set up. I can handle GUI interfacing but it's been probably 15+ years since I had to command line.
User avatar
Sathsarrion
Sage
Posts: 2683
Joined: Sun Aug 22, 2004 5:56 pm
Timezone: GMT+11
Location: Sydney

Re: Considering building a test PC with Ubuntu and WINE

Post by Sathsarrion » Tue Mar 13, 2012 5:30 am

It works fine. I had some issues multitasking with it in WINE, but NWN doesn't multitask that well anyway.
User avatar
gutemensch
CCC
CCC
Posts: 11850
Joined: Sun Sep 12, 2004 3:25 am
Timezone: -5
Location: Republic of Texas
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by gutemensch » Tue Mar 13, 2012 6:49 pm

Probably stupid question

What about Video Drivers? Last time I messed about with Mint or Ubuntu the Nivida driver instillation drove me nuts and I formatted and installed XP. Has it changed or gotten better?
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Tue Mar 13, 2012 7:27 pm

So is the Linux client still available now other things like the Master Server are gone? X:|
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Tue Mar 13, 2012 11:35 pm

That's a good question about the Linux client. I am just curious and fancy 'fiddling' with things. :D
On Discord I am LongShadow#4934
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Tue Mar 13, 2012 11:47 pm

I found this. Not tried it, so I don't know if this will work.

I have a Linux installation setup now (CentOS 6.2), plus all the files from a Windows installation of NWN 1.69. My problem is how do I convert this to work on Linux without downgrading it from 1.69 and thus having to upgrade it again?

Do I just need the ./fixinstall part of the Linux client to rename everything to lowercase or is there more to it? X:|


Edit - I tried all this and get an error message when I try to run ./nwn

Code: Select all


 ./nwn: ./nwmain: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory



Any ideas please? X:|

It has been a long time since I tried using Linux, never mind running NWN in Linux :cry:


Edit2 - It seems the Linux I installed is 64 bit, so it has /lib64 rather than /lib.

Not been able to persuade NWN to accept that yet. I tried creating a symbolic link in /lib and I tried editing the ./nwn file to point to /lib64 instead of either ./lib or /lib.

None of these work. I may have to find a 32 bit version of Linux to use. Pity :cry:

Anyone else managed to get NWN to run in a 64 bit Linux please? X:|
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
S_N
Team Member; Retired with Honors
Posts: 452
Joined: Tue Feb 09, 2010 3:21 pm
Timezone: UTC+1
DM Avatar: Ingoren
Location: Scandinavia

Re: Considering building a test PC with Ubuntu and WINE

Post by S_N » Wed Mar 14, 2012 10:55 am

The linux binaries work fine, but you'll need some 32-bit libraries on a otherwise 64-bit environment. I'll return with some more detailed tips shortly.
User avatar
Gorgon
Father of Avlis EE
Posts: 6637
Joined: Fri Oct 17, 2003 10:14 pm
Timezone: PST -8
Location: Vancouver, BC, Canada

Re: Considering building a test PC with Ubuntu and WINE

Post by Gorgon » Wed Mar 14, 2012 12:15 pm

"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (1942-2018) --


Sprucing up ye olde NWN | NWN:EE Wiki | ~Avlis Theme Song~
User avatar
S_N
Team Member; Retired with Honors
Posts: 452
Joined: Tue Feb 09, 2010 3:21 pm
Timezone: UTC+1
DM Avatar: Ingoren
Location: Scandinavia

Re: Considering building a test PC with Ubuntu and WINE

Post by S_N » Wed Mar 14, 2012 12:19 pm

Actually, I don't have Ubuntu. So any instructions I give about that is likely to have some mistakes. But if you want ubuntu I suspect ia32-libs is what you want. I'm not sure how much that package installs though.


To get the native client running for Fedora (or CentOS too I'd expect) generic process is to ask the package manager which package that provide the missing library. For example as the missing ld-linux NH4 encountered:

Code: Select all

yum provides ld-linux.so.2

glibc-2.14.90-14.i686 : The GNU libc libraries
Repo        : fedora
Matched from:
Filename    : /lib/ld-linux.so.2

glibc-2.14.90-24.fc16.6.i686 : The GNU libc libraries
Repo        : updates
Matched from:
Filename    : /lib/ld-linux.so.2

glibc-2.14.90-24.fc16.6.i686 : The GNU libc libraries
Repo        : @updates
Matched from:
Filename    : /lib/ld-linux.so.2
This output means the library exist at many places. First the main repo, secondly in the updates repository (and third since it's already installed on my computer...) Anyways, the important bit of information here is 'glibc' and '.i686'. So that's what we'll install with:

Code: Select all

sudo yum install glibc.i686
When that's installed, you'll likely get another error about a missing library from the loader, for which you could repeat the process (yum -C to use it's cache for speed) but to you from some of the tediousness, use following command to cover most of them. (for Fedora 16 but will likely work with other)

Code: Select all

sudo yum install SDL.i686 libXau.i686 libXfixes.i686 libdrm.i686 libXext.i686 libXdamage.i686 libxcb.i686 libX11.i686 libXxf86vm.i686 libstdc++.i686 libgcc.i686 mesa-libGLU.i686  mesa-libGL.i686 
libmss.so.6 is the only exception, and is provided by the neverwinter nights installation.
I do not use any proprietary graphics drivers, so you have to read up if you need a different libGL or libGLU for those.

And stop by IRC for questions! :D (...and other linux goodies like bug workarounds and log rotator)
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Thu Mar 15, 2012 6:05 pm

S_N wrote: And stop by IRC for questions! :D (...and other linux goodies like bug workarounds and log rotator)
I can vouch for the wealth of knowledge about Linux on the Avlis IRC channel from S_N and others. Might need to dip into it soon as I am building a backup web server at the moment. I have learned a lot since the first time around though!
On Discord I am LongShadow#4934
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Thu Mar 15, 2012 6:29 pm

Still working on this in VM Fusion.

Tried CentOS - NWN failed to run

Tried PCLinuxOS - ditto

Tried Fedora16 - VMtools failed to work - so no shared folders - no NWN source

Tried Ubuntu - VMtools installed automatically. Still working on this.

I think the problem is with VM Fusion rather than the Linux NWN :wink:

Many thanks to S_N and PJ for their advice :respekt:


Edit - NWN works on Ubuntu in VM Fusion!! :shock:

True, it is not exactly playable - but it does load up and let me login to Elysia. Very slow, even with the graphics set low. Haven't worked out how to make it go fullscreen yet, which might help a little.

This suggests that running NWN on Ubuntu installed properly would be a doddle. All I did was to install Ubuntu using its standard 'easy' config, copy the NWN from a Windows installation, make a backup copy of the ini files from that as at least one gets overwritten by the Linux client, copy the three Linux client files and extract them in the right order, correct the ownership of the files which got messed up (chown and chgrp), copy the nwncdkey.ini file back from the backup (otherwise you get prompted for your CD Keys), run ./fixinstall and then run ./nwn.

All of the config except the ./nwn required sudo to work. You run ./nwn as a normal user.

I have never liked Ubuntu until now - I don't like systems that disable running as root. However, after struggling for hours to get Fedora to do anything (and still failing), Ubuntu was a breeze :lol:
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
PlasmaJohn
CCC / Release Admin
CCC / Release Admin
Posts: 9010
Joined: Fri Dec 26, 2003 10:37 pm
Timezone: US/Eastern
Location: Negaria
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by PlasmaJohn » Thu Mar 15, 2012 8:00 pm

Nighthawk4 wrote:I have never liked Ubuntu until now - I don't like systems that disable running as root.
Changing that is easy peasy. Root's there, just without a password (which prevents login as root)
sudo su -
passwd
follow the prompts
Calvin: This is so cool!
Hobbes: This is so stupid.
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Thu Mar 15, 2012 8:43 pm

Oddly enough I setup root to use a password on my web server, but have recently (within the last few days) removed the password. That has forced me to learn to do things 'properly.' I might even remove the ubuntu desktop on the server at some point, but it's just so much more intuitive using a GUI.
On Discord I am LongShadow#4934
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Thu Mar 15, 2012 9:31 pm

Checked nwn.ini and found it was set for fullscreen - I just wasn't using the correct resolution in NWN. Changed that and I have fullscreen. Still too slow to play but that is due to using this in VM Fusion.

I am sure that if installed natively it would be fine :wink:
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Fri Mar 16, 2012 11:17 am

Cool. Now that my backup webserver is running, I am going to install Ubuntu on a spare PC and try it out.
On Discord I am LongShadow#4934
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Sun Sep 30, 2012 6:16 pm

Well, it has been a long time coming, because I ended up using my spare PC round someone else's house when their old Windows XP machine went 'tits up'.

Just started installing the Windows version of NWN via Wine. Seems to be installing okay.
On Discord I am LongShadow#4934
User avatar
Gumble Tinkertumble
Sage
Posts: 1715
Joined: Thu Jun 23, 2005 1:57 pm
Timezone: GMT
Location: UK

Re: Considering building a test PC with Ubuntu and WINE

Post by Gumble Tinkertumble » Sun Sep 30, 2012 8:25 pm

Well, I got it working!

The only trouble is, the spare PC is a bit pony. (That's pony and trap if any non Brits want to Google it)

So the sound goes a bit wobbly and when I got it to load the game properly, it was jerko vision. Not too bad, but I prefer my main PC with Windows 7 on.

Perhaps I'll try a proper Linux version of the game one of these days.
On Discord I am LongShadow#4934
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Re: Considering building a test PC with Ubuntu and WINE

Post by Nighthawk4 » Sun Oct 28, 2012 10:34 am

I tried this again with Ubuntu on my laptop. Wow, Ubuntu has gone down since I last used it :shock:

Just like Windows - things working and then not working for no apparent reason. I left it working last night and connected to my NAS and my Mac and downloading a copy of NWN from the Mac. Three hours to go.

Next morning I got up and three hours to go. Nothing had gone into hibernation - it just hadn't copied any more than when I went to bed. I restarted and now it refuses to connect the WiFi. Correct details, just as before but now it does not connect. Restarted again and eventually it connected to the Router.

No NAS, no Mac, just the Internet.

So I tried updating. That worked. It is up to date.

Tried activating the nVidia drivers for 3D. Doesn't work. /bin/log/jockey.log is not written in English - or not any comprehensible meaning :lol:

Tried rebooting - doesn't connect to WiFi again.

8[] is no help

:computer: does not work

:kaffee2: is not helping either

:schlafen: didn't achieve much either

:glaskugel: is very tempting
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
Post Reply