Jump to content

Installing CKAN in Ubuntu


Recommended Posts

I need help installing Ckan in Ubuntu 14.04. I am new to Ubuntu, I have had it for about a week. I have blundered my way through installing steam on the laptop (Think Pad i7-2760QM CPU @ 2.40GHz) and then KSP.

Next, I wanted to install some Mods, a quick search led me to Ckan. From github.com and I followed the install instructions.

  • Install Mono.

sudo apt-get update

sudo apt-get install mono-complete

  • Import certificates

mozroots --import --ask-remove

  • Download libcurl4-openssl-dev

sudo apt-get install libcurl4-openssl-dev

/usr/local/bin/mono ckan.exe

So two things, I assume that I just drag the ckan.exe file I downloaded and drop it in to mono located at /usr/local/bin/mono.

The other problem appears that mono is not in /usr/local/bin. The bin is empty. I searched and found multiple mono folders. If there was only one I would try moving it, but with multiple folders (about half with lock icons) I do not know which one I need.

I would appreciate any help.

Edited by teatime
Link to comment
Share on other sites

The ckan.exe should stay in the KSP folder, and you can start ckan with mono from that folder by first opening a terminal there or changing directory to that folder, then running ckan with:

mono ckan.exe

Don't put ckan.exe in /usr anything, it doesn't belong there.

If you want a shortcut to ckan, make a file containing this:

#!/bin/bash

cd ~/replace/this/with/the/path/to/your/Kerbal\ Space\ Program/folder

mono ckan.exe

Make it executable (right click, properties, permissions) then double click it.

Link to comment
Share on other sites

The ckan.exe should stay in the KSP folder, and you can start ckan with mono from that folder by first opening a terminal there or changing directory to that folder, then running ckan with:

mono ckan.exe

Don't put ckan.exe in /usr anything, it doesn't belong there.

If you want a shortcut to ckan, make a file containing this:

Make it executable (right click, properties, permissions) then double click it.

I moved ckan.exe to the KSP folder. I do not know how to start ckan with mono by opening a terminal at that folder. I also do not know how to change the directory. Could you walk me through it step by step?

The only way I can find the KSP folder is by going through Steam, library, KSP, Properties, show local files. The tabs at the top show as, .local, share, Steam, steamapps, common, Kerbal Space Program which I assume would be, .local/share/steam/steamapps/common/Kerbal Space Program.

Going through the Home Folder, there is no .local folder showing up.

Can you tell me if mono has to have a folder in KSP or is that an instruction and the file can be anywhere?

For the short cut I used

#!/bin/bash

cd ~/ .local/share/steam/steamapps/common/Kerbal Space Program

mono ckan.exe

I made a New Document on the desktop and put in the above lines, then I made it executable. When I double click on it, it opens the document. Can you tell me what I did wrong?

Link to comment
Share on other sites

If you can move the ckan.exe to the KSP folder, I assume you are able to navigate to said folder manually, yes? If so, jist right click on one of the files within the KSP folder, select properties, and in the properties menu will be included the path to the file. I recommend doing this on ckan.exe, as this will give you its exact file path. Then just do

cd ~/filepath/
mono ckan.exe

where filepath is the path to the file.

Link to comment
Share on other sites

I'll try.

As you are using Ubuntu the easiest way is to install 'nautilus open terminal', this can be found in the Ubuntu software center by first opening Software Center, then searching that phrase, click it to show the install button, it will ask for your password.

With that installed you can open your KSP folder using the Steam client which you already know how to do, right click on any empty space and you will see an option to open a terminal there, it will open already set to that folder.

The .local folder is a hidden folder which is why you couldn't find it, hidden files and folders can be toggled in nautilus with the keyboard shortcut 'control+h'.

With a terminal open in the KSP folder you should see a box with 'username@PC: ~/.local/share/steam/steamapps/common/Kerbal Space Program$'

Type 'mono ckan.exe' without quotes and press enter.

ckan should now start, if it doesn't you'll have to post the error message here so I can see what went wrong.

Mono does not need any files copied to KSP, Linux is able to use Mono from anywhere once it's installed, and KSP uses a built-in version of Mono supplied by Unity, but which can't run ckan, you don't need to worry about the Mono files.

As for the shortcut, if it is set to open as a text file in gedit that would be why, the default for files containing '#!/bin/sh' is usually the terminal, you can fix this though, please right click the file and click 'open with', or on 'properties' there will be the option to open with another application, then a list of programs.

As this is a script, it's best to click on 'custom' and type in 'sh', then click 'ok'.

Edited by sal_vager
Link to comment
Share on other sites

If you can move the ckan.exe to the KSP folder, I assume you are able to navigate to said folder manually, yes? If so, jist right click on one of the files within the KSP folder, select properties, and in the properties menu will be included the path to the file. I recommend doing this on ckan.exe, as this will give you its exact file path. Then just do

cd ~/filepath/
mono ckan.exe

where filepath is the path to the file.

Below is what I tried. The first time with a / at the end and second time with out it. When I copy and paste there is no / at the end. Both times it is telling me that there is no such file or directory. Any idea of what I am doing wrong?

auction@AUCTION:~$ cd ~/home/auction/.local/share/Steam/steamapps/common/Kerbal Space Program/

bash: cd: /home/auction/home/auction/.local/share/Steam/steamapps/common/Kerbal: No such file or directory

auction@AUCTION:~$ cd ~/home/auction/.local/share/Steam/steamapps/common/Kerbal Space Program

bash: cd: /home/auction/home/auction/.local/share/Steam/steamapps/common/Kerbal: No such file or directory

Link to comment
Share on other sites

Thanks to every one for there help. I had a hard time getting nautilus open terminal to install, but after the third time it worked. I have been coffee free for the past week, doctors orders, and have been having at tough time. Now I off to watch some videos on how to use ckan now that I can run it.

Link to comment
Share on other sites

Glad you got it going in the end teatime, as for the above, in case it will help anyone else, '~/' is shorthand for your home directory, so '~/home/user' is redundant.

Use either '~/myfolder' or 'home/user/myfolder', they do the same thing :)

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