<p>cgminer is a command-line software.</p>

<p>Open a Terminal and change the working directory to where you have your cgminer executable with the <code>cd</code> command. For example, if you have it on the Desktop you have to use the following command: <code>cd ~/Desktop</code> (where <em>~</em> indicates your home directory).</p>

<p>Then, if necessary, mark it as an executable file with the <code>chmod +x cgminer</code> command and finally run it with the <code>./cgminer</code> command. Note that you will probably need to run it as the root user, so you probably want to run this command instead: <code>sudo cgminer</code>.</p>

<p>You can also specify command line options. For example, if your pool URL is <em><a href="http://foobarpool.net:3333" rel="nofollow">http://foobarpool.net:3333</a></em>, your username is <em>qwertie.1</em> and your password is <em>1234</em> you can run cgminer with the following command so it is preconfigured and will start working right away: <code>sudo cgminer -o http://foobarpool.net:3333 -u qwertie.1 -p 1234</code>.</p>

<p>You can also specify lots of options for the GPU, fallback mining pools and other things. For a complete list, use this command: <code>cgminer --help</code>.</p>

CC BY-SA 3.0
2013-12-22T00:09:44.057Z
This gives me sudo: cgminer: command not found
Qwertie
CC BY-SA 3.0
2013-12-22T00:11:23.697Z
Are you in the right directory? Where is your *cgminer* executable placed? Did you use `cd` correctly?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T00:14:08.543Z
cgminer is under home/Apps/cgminer. Here is the line from the terminal "/Apps/cgminer$ "
Qwertie
CC BY-SA 3.0
2013-12-22T01:00:04.287Z
Try to run the `ls` command in that directory. Does *cgminer* show up in the list?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T01:13:51.523Z
yes. I even copied/pasted cgminer from ls to make sure I spelt it right, still go the same result
Qwertie
CC BY-SA 3.0
2013-12-22T01:23:15.963Z
Does it work if you run just `cgminer` alone without *sudo*?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T01:26:05.243Z
I still get command not found
Qwertie
CC BY-SA 3.0
2013-12-22T01:32:09.057Z
Then you are not in the right directory. Can you please provide me with a screenshot of the result of the `ls` command?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-21T23:51:45.253Z
2013-12-21T23:51:45.253Z
rrrrrrrrrrrrrrrr
<p>Go to the directory of cgminer.</p>

<p>Type</p>

<pre><code>sudo -s
</code></pre>

<p>Type your password</p>

<p>Type </p>

<pre><code>chmod +x cgminer
</code></pre>

<p>Type</p>

<pre><code>./cgminer --help
</code></pre>

CC BY-SA 3.0
2017-05-24T17:36:01.887Z
2017-05-25T05:56:02.523Z
2017-05-25T05:56:02.523Z
Aazar Khan
<p>I have downloaded cgminer for linux and uncompressed it and tried to run it but clicking on the executable file does nothing it is marked as executable and still does not run. Is there something else I should do?  </p>

<p>I tried to open this file: </p>

<p><img src="https://i.sstatic.net/FdUvA.png" alt="File I tryed to open"></p>

<p>Edit:
Here is a screenshot from the directory cgminer is in from the "ls" command</p>

<p><img src="https://i.sstatic.net/vdAja.png" alt="enter image description here"></p>

CC BY-SA 3.0
2013-12-22T09:24:03.543Z
Thank you for the screenshot. I'm installing Ubuntu on a Virtual Machine to look into the issue.
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T09:44:09.910Z
I could download, compile and run cgminer with the steps described in my answer without any problem. Did you download the binaries or did you compile it from the source code?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T10:23:29.913Z
I downloaded the binarys
Qwertie
CC BY-SA 3.0
2013-12-22T15:15:45.610Z
Can you link me the package?
rrrrrrrrrrrrrrrr
CC BY-SA 3.0
2013-12-22T22:32:04.300Z
http://ck.kolivas.org/apps/cgminer/ I have " cgminer-3.8.5-x86_64-built.tar.bz2"
Qwertie
CC BY-SA 3.0
2013-12-22T23:08:02.403Z
It works for me, I ran out of ideas...
rrrrrrrrrrrrrrrr
<miner-configuration><cgminer><ubuntu>
How do you install cgminer on ubuntu
Qwertie
# How do you install cgminer on ubuntu

(Asked by: username_0 on 2013-12-21)

I have downloaded cgminer for linux and uncompressed it and tried to run it but clicking on the executable file does nothing it is marked as executable and still does not run. Is there something else I should do?

I tried to open this file:

![File I tryed to open](https://i.sstatic.net/FdUvA.png)

Edit:
Here is a screenshot from the directory cgminer is in from the "ls" command

![enter image description here](https://i.sstatic.net/vdAja.png)

**Tags:** miner-configuration, cgminer, ubuntu

> **Comments:**
> **username_1**: Thank you for the screenshot. I'm installing Ubuntu on a Virtual Machine to look into the issue.  
> **username_1**: I could download, compile and run cgminer with the steps described in my answer without any problem. Did you download the binaries or did you compile it from the source code?  
> **username_0**: I downloaded the binarys  
> **username_1**: Can you link me the package?  
> **username_0**: http://ck.kolivas.org/apps/cgminer/ I have " cgminer-3.8.5-x86_64-built.tar.bz2"  
> **username_1**: It works for me, I ran out of ideas...  

---

## 2 answers

### Answer by username_1 on 2013-12-21. Score: 2 | Accepted answer

cgminer is a command-line software.

Open a Terminal and change the working directory to where you have your cgminer executable with the `cd` command. For example, if you have it on the Desktop you have to use the following command: `cd ~/Desktop` (where *~* indicates your home directory).

Then, if necessary, mark it as an executable file with the `chmod +x cgminer` command and finally run it with the `./cgminer` command. Note that you will probably need to run it as the root user, so you probably want to run this command instead: `sudo cgminer`.

You can also specify command line options. For example, if your pool URL is *<http://foobarpool.net:3333>*, your username is *qwertie.1* and your password is *1234* you can run cgminer with the following command so it is preconfigured and will start working right away: `sudo cgminer -o http://foobarpool.net:3333 -u qwertie.1 -p 1234`.

You can also specify lots of options for the GPU, fallback mining pools and other things. For a complete list, use this command: `cgminer --help`.

> **Comments:**
> **username_0**: This gives me sudo: cgminer: command not found  
> **username_1**: Are you in the right directory? Where is your *cgminer* executable placed? Did you use `cd` correctly?  
> **username_0**: cgminer is under home/Apps/cgminer. Here is the line from the terminal "/Apps/cgminer$ "  
> **username_1**: Try to run the `ls` command in that directory. Does *cgminer* show up in the list?  
> **username_0**: yes. I even copied/pasted cgminer from ls to make sure I spelt it right, still go the same result  
> **username_1**: Does it work if you run just `cgminer` alone without *sudo*?  
> **username_0**: I still get command not found  
> **username_1**: Then you are not in the right directory. Can you please provide me with a screenshot of the result of the `ls` command?  

---

### Answer by username_2 on 2017-05-24. Score: 1

Go to the directory of cgminer.
Type
sudo -s

Type your password
Type 
chmod +x cgminer

Type
./cgminer --help


---

