Jump to content

Ubuntu 14.04 KSP not runing


Recommended Posts

You don't run it with wine, you run it with Mono. Do you have Mono installed? (I'm almost positive it comes pre-installed)

Edit: For me to run KSP in linux, I do the following:

1) Go into your KSP directory

2) Make a new text file

3) copy and paste the following into the text file

#!/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 ./KSP.x86_64

4) save the text file as ksp.sh (SAVE IN YOUR KSP DIRECTORY!)

5) Right click ksp.sh, go to properties, go to Permissions, check the box that says "Allow program to run as an executable"

6) Save settings, open up ksp.sh, and it will run

Edited by OddFunction
Link to comment
Share on other sites

Yes, I do have Mono, I used it to open CKAN, but it doesn't run. i will try to re-install mono.

Does Ckan just open and close? Because I had the same problem and fixed it with this link:

http://forum.kerbalspaceprogram.com/threads/124669-Ckan-Just-Opens-and-Closes-%28

Edit: after doing some more reading, I'm pretty positive that if you make the .sh file and run it, you will be able to run KSP, perhaps w/o even having mono installed (apparantly KSP contains all it needs to run).

If the .sh file doesn't work, please report back. I'm sure someone here can help solve the issue.

Edited by OddFunction
Link to comment
Share on other sites

KSP.x86_64 is the program to run. you prefix binaries with ./ to run them (so ./KSP.x86_64 from the KSP directory in this case). Or symlink it to ~/bin (so ln -s [kerbal directory]/KSP.x86_64 ~/bin/kerbal makes it so typing 'kerbal' will launch the program, adjust of your KSP_Linux directory is somewhere other than your home directory).

(I have no freaking clue how to do it graphically that stuff is hard).

Edited by Requia
Link to comment
Share on other sites

.sh didn't work. And CKAN does work 100%, I installed my standard set of mods.

- - - Updated - - -

KSP.x86_64 is the program to run. you prefix binaries with ./ to run them (so ./KSP.x86_64 from the KSP directory in this case). Or symlink it to ~/bin (so ln -s [kerbal directory]/KSP.x86_64 ~/bin/kerbal makes it so typing 'kerbal' will launch the program, adjust of your KSP_Linux directory is somewhere other than your home directory).

(I have no freaking clue how to do it graphically that stuff is hard).

For this, Terminal said I need permission to run it.

Link to comment
Share on other sites

I assume you got '-bash: ./KSP.x86_64: Permission denied'

Execute bit probably not set, though it is in all the KSP/Linux downloads I have seen...

Try 'chmod +x ./KSP.x86_64'

- - - Updated - - -

KSP.x86_64 is the program to run. you prefix binaries with ./ to run them.
More accurately, you must supply full path to execute files that are not in your $PATH, in this case './' simply denotes the current working directory.
Link to comment
Share on other sites

  • 4 weeks later...

Hey guys, I'm getting the same problem. Im getting denied permission but am not sure what to EXACTLY type into the terminal. I only have Ubuntu for KSP and KSP is installed via Steam. I can double left click or single right click the ksp.sh folder and open with Steam where it then takes me to my Steam library and I have to click play. Is there anyway to confirm 64 bit is being utilized? I know windows has the little cat and rainbow thing during loading. I'm brand spanking new to Ubuntu and have had to google just about everything so any help is appreciated!

Edited by sock307
Link to comment
Share on other sites

GNU/Linux uses traditional Unix filesystem permissions. You need to check/set the "execute" bit on the KSP.x86_64 binary.

How you do this is entirely up to you: use chmod (manual, tutorial) at the command line, or your file manager of preference.

As I'm not sitting in front of your PC, I have no idea what "EXACTLY" you need to type into a terminal, though it's probably 'chmod +x ./KSP.x86_64' from the game directory, as mentioned above.

It is perhaps worthy of mention that your command prompt will likely have tab-completion for commands and filenames - helping to avoid typos such as 'KSP.x86-64' vs. 'KSP.x86_64'.

Edited by steve_v
Links, for the too lazy to search crowd.
Link to comment
Share on other sites

GNU/Linux uses traditional Unix filesystem permissions. You need to check/set the "execute" bit on the KSP.x86_64 binary.

How you do this is entirely up to you: use chmod (manual, tutorial) at the command line, or your file manager of preference.

As I'm not sitting in front of your PC, I have no idea what "EXACTLY" you need to type into a terminal, though it's probably 'chmod +x ./KSP.x86_64' from the game directory, as mentioned above.

It is perhaps worthy of mention that your command prompt will likely have tab-completion for commands and filenames - helping to avoid typos such as 'KSP.x86-64' vs. 'KSP.x86_64'.

Thank you for the links! Its all Chinese to me but Ill start reading through it. So do I need to navigate to the game directory via the Terminal (I type 'chmod +x ./KSP.x86_64' and I get an error saying directory doesn’t exist)? If so how do I do use the terminal to set the path to the game directory? I went with the stock installation path.

Edited by sock307
Link to comment
Share on other sites

Depending on whether you installed Steam from the Steam site or the Ubuntu repository, you should be able to change to the KSP folder with one of these:

cd ~/.local/share/Steam/SteamApps/common/Kerbal\ Space\ Program

cd ~/.steam/SteamApps/common/Kerbal\ Space\ Program

You should also be able to simply right click the KSP.x86 and KSP.x86_64, click Properties, and check a box in the Permissions tab to make them executable.

Link to comment
Share on other sites

Depending on whether you installed Steam from the Steam site or the Ubuntu repository, you should be able to change to the KSP folder with one of these:

cd ~/.local/share/Steam/SteamApps/common/Kerbal\ Space\ Program

cd ~/.steam/SteamApps/common/Kerbal\ Space\ Program

You should also be able to simply right click the KSP.x86 and KSP.x86_64, click Properties, and check a box in the Permissions tab to make them executable.

I installed Steam via the repository. I try entering both but "No such directory exists" . I have also ensured that KSP.x86_64 is executable under the permissions tab.

Link to comment
Share on other sites

Alright, there's an easier way to get a terminal in the KSP folder, just install nautilus-open-terminal with sudo apt-get install nautilus-open-terminal

It's also installable via Software Center, and via the Synaptic package manager if you have that installed, I think Ubuntu doesn't have that installed by default.

Then close all open file browser windows, reopen the file browser and navigate to the KSP folder or open it via Steam, and you should be able to right click in the folder (not on a file) and open the folder in a terminal directly.

Link to comment
Share on other sites

Alright, there's an easier way to get a terminal in the KSP folder, just install nautilus-open-terminal with sudo apt-get install nautilus-open-terminal

It's also installable via Software Center, and via the Synaptic package manager if you have that installed, I think Ubuntu doesn't have that installed by default.

Then close all open file browser windows, reopen the file browser and navigate to the KSP folder or open it via Steam, and you should be able to right click in the folder (not on a file) and open the folder in a terminal directly.

Haha omg, one thing after another. I got Nautilus, then rebooted for changes to take effect and it works but now I cant open steam. i get this message (note it worked before and I could get into KSP 32bit)

Running Steam on ubuntu 14.04 64-bit

STEAM_RUNTIME is enabled automatically

Installing breakpad exception handler for appid(steam)/version(1440016726)

libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast

But I was able to make it into the directory, opened it with terminal, entered ./KSP.x86_64 only for a border to open then immediately close. Adding chmod +x does just repeats the directory on the next line down. And the only way I can start KSP is through CKAN now. Erg!

Edited by sock307
Link to comment
Share on other sites

Okay I don't know exactly what you've done here, installing nautilus-open-terminal doesn't touch Steam at all.

You're using Ubuntu 14.04 64bit so the KSP.x86_64 should work once it's made executable, which can be done via the right click menu on the file.

It's probably just bad permissions now, so right click the KSP.x86 and check, and post a screenshot of the permissions.

What have you tried doing so far?

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...