Jump to content

The Linux Thread!


Recommended Posts

Well, after spending half a day messing with Kubuntu desktop, and not getting any further, figured I give Lubuntu a try...Now after two solid days of messing with THAT mess, I still cant even figure out how to even open KSP in Linux...So I think I'm done...Windows OS it is... :(

I have 1.0 working nicely in Fedora 21

Link to comment
Share on other sites

Well, after spending half a day messing with Kubuntu desktop, and not getting any further, figured I give Lubuntu a try...Now after two solid days of messing with THAT mess, I still cant even figure out how to even open KSP in Linux...So I think I'm done...Windows OS it is... :(

No problem on Elementary OS (based on Ubuntu) with the 1.0.

Did you use the script of the 1st page?

Link to comment
Share on other sites

That's a shame Stone Blue, KSP should just work on an *buntu system with the proprietary driver, though you'd need mesa:i386 to run KSP.x86 on an x86_64 OS.

But the programs are more important then the OS we use sometimes.

Link to comment
Share on other sites

No problem on Elementary OS (based on Ubuntu) with the 1.0.

Did you use the script of the 1st page?

I spoke too quickly, it doesn't work anymore on eOS, when I launch the game there is a black screen and I come back to the log-in screen (?!?).

I tried on my Xubuntu installation, the game launch but stay stuck to the loading with "silly sentences" alterning screen and nothing never happen, even after 30min.

No log file appear.

I tried all of this with the vanilla game and the script of the first post.

                                                                                                                                                                    
#!/bin/sh

export LC_ALL=C
export LD_PRELOAD="libpthread.so.0 libGL.so.1"
export __GL_THREADED_OPTIMIZATIONS=1
exec taskset -c 2-3 /home/romn/Games/KerbalSpaceProgram/KSP_linux/KSP.x86_64

The only thing I changed between the state where it worked and now is that I did an update && upgrade of my os.

Is it still working on your computer?

Link to comment
Share on other sites

Runs well on Linux Mint Cinnamon 17.1

Using NVIDIA drivers downloaded directly from the manufacturer.

If you have an NVIDIA card, that might be an option.

You have to boot in text mode to install them though. Easiest through the recovery option in your grub menu. (Then start network to have your drives mounted and drop to root shell). <- this is for Linux Mint, although I could imagine Ubuntu has a similar process.

Edited by Snarfster
Link to comment
Share on other sites

That's a shame Stone Blue, KSP should just work on an *buntu system with the proprietary driver, though you'd need mesa:i386 to run KSP.x86 on an x86_64 OS.

But the programs are more important then the OS we use sometimes.

Thanx...I ended up trying Lubuntu 15.04 on release day...Got KSP running...For some reason, I couldnt get the KSP.exe started on 14.10 no matter what I tried...

The thing with Linux, is there are TONS of "flavors" and desktops to choose from...Which is a GOOD thing...The BAD thing, is basic Linux documentation seems very lacking for Linux...

The thing I have found with those who work with Linux, just "KNOW", and like most programmers, do not seem to be able to explain things in terms non-programmers can understand...

Basic concepts and knowledge (entry level stuff), is just ASSUMED to be known by experienced Linux users...Like its supposed to be gained magically, or something, and if you cant get over that very large, difficult first step into Linux, you're not worthy, or something...lol

Then there also seems to be a very large segment of Linux experts who are very smug and smarmy towards Linux noobs, which I can tell you doesnt help...lol

It wasnt until I came across The Other Linux thread that I had some breakthroughs. When I first spent a couple days Googling on basic info for Linux, so I could focus on just running KSP only, somehow I never came across that thread...

I have to say, that was THE, MOST helpful thread I found, not only for KSP in Linux, but Linux in general...A BIG Thanx to skeevy and the other posters over there... :D

Edited by Stone Blue
Link to comment
Share on other sites

KSP.exe? That is the Windows executable file, it should work in Wine but won't work in Linux.

KSP on Linux is started with KSP.x86 for 32bit systems or KSP.x86_64 for 64bit.

They may need to be set as executable though, this can be done in the right-click properties for each file.

KSP, because of Unity3D, is only really designed to work on Ubuntu and derivatives, each flavor is really just a front-end or skin.

I don't know what else to say to help here, KSP should start on an Ubuntu system even with the open source drivers, though it'd be sluggish, so why you are having so much trouble is really baffling.

Link to comment
Share on other sites

Sorry...Yes, I knew that I needed the.x86/.x68_64 executable...I should have typed "KSP executable" in my post... Using .exe to me is a fallback from Windows, where you can use .exe as a "shorthand" for typing "exectuable"... ;)

And yes, I was trying everything I could find to set them as executables, but nothing was working...I even re-downloaded and reextracted KSP multiple times to see if that was the issue.

But, it seems to be working for me in 15.04 now... :)

For anyone dipping their toes into Linux for the very first time, I suggest reading "The Other Linux Thread", FIRST....

http://forum.kerbalspaceprogram.com/threads/98386-The-Other-Linux-Thread

Then come back here to this one for more specific KSP help...

Link to comment
Share on other sites

KSP.exe? That is the Windows executable file, it should work in Wine but won't work in Linux.

KSP on Linux is started with KSP.x86 for 32bit systems or KSP.x86_64 for 64bit.

They may need to be set as executable though, this can be done in the right-click properties for each file.

KSP, because of Unity3D, is only really designed to work on Ubuntu and derivatives, each flavor is really just a front-end or skin.

I don't know what else to say to help here, KSP should start on an Ubuntu system even with the open source drivers, though it'd be sluggish, so why you are having so much trouble is really baffling.

Ummm, I have KSP running very nicely on Fedora 21 AND CentOS 6

I've posted instructions on how to get it working, and would be very happy to help anyone who asks.

Regarding a previous comment about Linux experts who are "smug", I can only say that you will hit that anywhere, in any subject. Personally, I use whatever works best for the application, and try not to do that.

Link to comment
Share on other sites

I'm glad it's finally working for you :)

Oh and yeah it'll work on other Linux distros, it's only supposed to work on Ubuntu but if there's one thing Linux users like to do it's tweak stuff and figure it out ;)

Link to comment
Share on other sites

What do your logs say Romn?

Also, check the output from "ldd KSP.x86" and "KSP.x86_64"

The xorg-edgers repo should have the latest drivers, not sure it it'll work with Mint though.

That's the problem, I don't have any log, I think the game crash before create it.

Nothing appear as output in the terminal:

Found path: /home/romain/Games/KerbalSpaceProgram/KSP_linux/KSP.x86_64
Mono path[0] = '/home/romain/Games/KerbalSpaceProgram/KSP_linux/KSP_Data/Managed'
Mono path[1] = '/home/romain/Games/KerbalSpaceProgram/KSP_linux/KSP_Data/Mono'
Mono config path = '/home/romain/Games/KerbalSpaceProgram/KSP_linux/KSP_Data/Mono/etc'

and the output from ldd command seems right:


linux-vdso.so.1 => (0x00007fff01b93000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc2d7b7b000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc2d795d000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc2d7754000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007fc2d74e6000)
libGL.so.1 => /usr/lib/fglrx/libGL.so.1 (0x00007fc2d72f5000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc2d6fbb000)
libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007fc2d6db1000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc2d6aa2000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc2d679b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc2d6584000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc2d61c0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc2d7d9e000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fc2d5fad000)
libatiuki.so.1 => /usr/lib/libatiuki.so.1 (0x00007fc2d5e8f000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fc2d5c70000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fc2d5a65000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fc2d585f000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fc2d565a000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fc2d5454000)

Link to comment
Share on other sites

The Linux 64 bit client was crashing loading a flag, just like before, without the two zeroed offsets. Clearly, the binary patch is still required. So, I've found the new offsets for 0.90. It does indeed fix the issue for me. However, use at your own risk! Make a backup of your original KSP.x86_64 binary before you do this.

So these are the new commands required to fix that annoying bug in 0.90:

echo "0099e747: 00" | xxd -r - KSP.x86_64

echo "0099e74c: 00" | xxd -r - KSP.x86_64

If you could update the OP with these, sal_vager, it would be appreciated.

For future reference, this is the series of bytes that you need to look for: 01 00 00 00 b8 01 00 00 00 c3 41 56 41 55 49

Both the 01's need to be changed to 00, basically. That fingerprint obviously is still correct.

Anybody know if this is still needed in 1.0.2?

thanks

Link to comment
Share on other sites

I don't know yet (only have 4gigs here and never got hit by that issue) there may be new offsets as the Unity version was updated.

What did it fix, originally? I run both 8 and 16 gig (2 different systems), could check if I knew what to look for

LGG

Link to comment
Share on other sites

It fixed segfaults when using more than 3.5gigs of memory, the PAE limit of 32bit operating systems.

I usually have firefox open so there's less free memory for KSP, and I use very few addons.

Link to comment
Share on other sites

Hi, hopefully this is the right place for this. I can't start KSP. Whenever I start it from either steam or terminal, my screen turns black and I exit to the login interface of Ubuntu. I'm running Ubuntu 14.04 x64 with bumblebee and Nvidia drivers 331-updates. It used to run well before 1.0. Clean install, purged old folders, no mods.

Player.log : https://www.dropbox.com/s/am869twca64kz3m/Player.log?dl=0

Link to comment
Share on other sites

Hi Prof_Strangelove, your log has a lot of shader errors in it, so this is likely graphics related, also it reports the wrong ELF class for the game overlay renderer.

This suggests you need the 32bit Mesa driver installed as well, you can do this with "sudo apt-get install libgl1-mesa-glx:i386", as the KSP.x86 (which Steam starts) requires it.

After that try disabling Bumblebee, antialiasing and PPFX edge highlighting.

You can also try the KSP.x86_64 as it does not require the 32bit Mesa driver.

Link to comment
Share on other sites

Okay this is a new one on me, especially if it's logging you out of your session and leaving you at the login screen, that certainly shouldn't be happening.

Is there anything in the terminal when you run KSP that might suggest what's going on?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...