Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
I've downloaded a .sh file - how do I install this?

I am trying to install the BOINC client/manager which is a .sh file, so I can contribute to the World Community Grid. I installed the version that is in the Software Centre, but it is 2 versions behind, so I was wondering how I can install the current version (which I have downloaded to my computer). Any help would be great.

share|improve this question

marked as duplicate by Eliah Kagan, Jorge Castro, Mitch, Uri Herrera, stephenmyall Aug 24 '12 at 8:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The current version is only a .sh file? I think that what you downloaded is a compressed file with more than one file (the .sh also included). – Lucio Aug 22 '12 at 23:10
@Lucio It is simply a .sh file indeed. Running it creates a BOINC directory and gives instructions to run the BOINC manager. However, the project depends at least on wxwidgets and as such can't be directly ran via it's instructions. Perhaps the older BOINC version from Software Centre includes the dependencies though. Someone download the current BOINC client from Softwae Centre, then the .sh file and try it out. Write steps required to fix dependencies if needed. I would if I had time. – zxcdw Aug 22 '12 at 23:13
I would advise against installing boinc from Berkley, and instead stick to the Software Center version. As of Feb-2013 is is only a single minor version behind (7.0.26 vs 7.0.27), and the SC version has several patches to improve compatibility under Ubuntu. It is also much more convenient, it Just Works (tm). So unless you have any trouble using the SC version, or a strong reason to need Berkley's latest, and you have some terminal skills (not only to tun the installer, but also to setup the Berkley version to auto-start using SysV init.d dir), I would stay with the safest and easiest. – MestreLion Feb 26 '13 at 11:19

Run the following command.

sh /path/to/

If you need administrative privileges to run the command, add sudo.

sudo sh /path/to/
share|improve this answer

To answer the question in the title, any of:


(That's 'dot' 'space' filename)


(which is actually the same as the first one)


(or bash

chmod +x

I'm assuming that this is actually the installer, so you may need to do sudo -i, to switch to executing everything as root, first or do something like sudo sh (Note you can't do sudo . or sudo source)

share|improve this answer
How does that 'dot' 'space' filename thing work? Never saw it before, but it does work somehow – Sergey Aug 22 '12 at 23:32
@Sergey It's actually telling bash to read a script file and is the same a source It's more normally used within scripts to read in other scripts. – StarNamer Aug 22 '12 at 23:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.