<p>You should not run Armory as root. If you want to run armory as another user, pick a user other than root. You can use "sux" (which you can apt-get install) to become that new user.</p>

CC BY-SA 3.0
2014-06-26T11:10:27.393Z
Why should you not run armory as root?
Emre K.
CC BY-SA 3.0
2014-06-05T18:06:57.123Z
2014-06-05T18:06:57.123Z
njaard
<p>The installation went fine, but the last line <code>ArmoryQt.py: cannot connect to X server</code> is the error. Somehow the program cannot be shown in a window. When this happens in an ssh session, you need to relogin with the <code>-X</code> or <code>-Y</code> option. In your case, I think you have to look at <a href="https://askubuntu.com/questions/175611/cannot-connect-to-x-server-when-running-app-with-sudo">this</a> answer:</p>
<blockquote>
<p>You need to allow the root user access to the X server:</p>
<pre><code>xhost local:root
</code></pre>
<p>And point the command to the right <code>DISPLAY</code>:</p>
<pre><code> sudo DISPLAY=$DISPLAY gedit /etc/profile
</code></pre>
</blockquote>

CC BY-SA 3.0
2014-06-05T12:07:17.760Z
I'm connecting to this machine through SSH. 'xhost local:root' returns 'xhost:  unable to open display ""'
Emre K.
CC BY-SA 3.0
2014-06-05T12:12:48.610Z
I'm actually trying to run armory as daemon and use JSON-RPC commands using armoryd.py. That gives the error: File "armoryd.py", line 55, in <module>
    from txjsonrpc.auth import wrapResource
ImportError: No module named txjsonrpc.auth
Emre K.
CC BY-SA 3.0
2014-06-05T12:19:40.757Z
Hmm, are you sshing with the `-X` or `-Y` option?Otherwise you'll never be able to open a display.
Mathias711
CC BY-SA 3.0
2014-06-05T12:20:58.930Z
Isn't `txjsonrpc` needed for Armory? Im not into this material, but from what I read in the past couple of minutes I think it is. From there the `txjsonrpc.auth` you're missing should be added, and that error be resolved
Mathias711
CC BY-SA 3.0
2014-06-05T12:42:09.673Z
Yes true. It seems I need to install txjsonrpc. Can't figure out how to get it though. Thanks a lot btw
Emre K.
CC BY-SA 3.0
2014-06-05T13:02:04.063Z
I just cloned the repo https://github.com/oubiwann/txjsonrpc to my BitcoinArmory folder but I still get the same error. I think I need to install it
Emre K.
CC BY-SA 3.0
2014-06-05T11:10:22.650Z
2014-06-05T11:10:22.650Z
2020-06-16T11:10:03.350Z
Mathias711
<p>I installed Bitcoin Armory on Ubuntu 13.10. I get the following output when I try to run it:</p>

<pre><code>root@cloud-server-07:/BitcoinArmory# python ArmoryQt.py
********************************************************************************
Loading Armory Engine:
   Armory Version:       0.91.1
   PyBtcWallet  Version: 1.35
Detected Operating system: Linux
   OS Variant            : ('Ubuntu', '13.10', 'saucy')
   User home-directory   : /root
   Satoshi BTC directory : /root/.bitcoin/
   Armory home dir       : /root/.armory/
   LevelDB directory     : /root/.armory/databases
   Armory settings file  : /root/.armory/ArmorySettings.txt
   Armory log file       : /root/.armory/armorylog.txt
   Do wallet checking    : True
ArmoryQt.py: cannot connect to X server
</code></pre>

<p>Does anyone have any idea why?</p>

<linux><armory>
Installing Bitcoin Armory on Ubuntu
Emre K.
# Installing Bitcoin Armory on Ubuntu

(Asked by: username_0 on 2014-06-05)

I installed Bitcoin Armory on Ubuntu 13.10. I get the following output when I try to run it:
root@cloud-server-07:/BitcoinArmory# python ArmoryQt.py
********************************************************************************
Loading Armory Engine:
   Armory Version:       0.91.1
   PyBtcWallet  Version: 1.35
Detected Operating system: Linux
   OS Variant            : ('Ubuntu', '13.10', 'saucy')
   User home-directory   : /root
   Satoshi BTC directory : /root/.bitcoin/
   Armory home dir       : /root/.armory/
   LevelDB directory     : /root/.armory/databases
   Armory settings file  : /root/.armory/ArmorySettings.txt
   Armory log file       : /root/.armory/armorylog.txt
   Do wallet checking    : True
ArmoryQt.py: cannot connect to X server

Does anyone have any idea why?

**Tags:** linux, armory


---

## 2 answers

### Answer by username_1 on 2014-06-05. Score: 1

You should not run Armory as root. If you want to run armory as another user, pick a user other than root. You can use "sux" (which you can apt-get install) to become that new user.

> **Comments:**
> **username_0**: Why should you not run armory as root?  

---

### Answer by username_2 on 2014-06-05. Score: 0

The installation went fine, but the last line ArmoryQt.py: cannot connect to X server is the error. Somehow the program cannot be shown in a window. When this happens in an ssh session, you need to relogin with the -X or -Y option. In your case, I think you have to look at this answer:

You need to allow the root user access to the X server:
xhost local:root

And point the command to the right DISPLAY:
 sudo DISPLAY=$DISPLAY gedit /etc/profile

> **Comments:**
> **username_0**: I'm connecting to this machine through SSH. 'xhost local:root' returns 'xhost:  unable to open display ""'  
> **username_0**: I'm actually trying to run armory as daemon and use JSON-RPC commands using armoryd.py. That gives the error: File "armoryd.py", line 55, in <module>     from txjsonrpc.auth import wrapResource ImportError: No module named txjsonrpc.auth  
> **username_2**: Hmm, are you sshing with the `-X` or `-Y` option?Otherwise you'll never be able to open a display.  
> **username_2**: Isn't `txjsonrpc` needed for Armory? Im not into this material, but from what I read in the past couple of minutes I think it is. From there the `txjsonrpc.auth` you're missing should be added, and that error be resolved  
> **username_0**: Yes true. It seems I need to install txjsonrpc. Can't figure out how to get it though. Thanks a lot btw  
> **username_0**: I just cloned the repo https://github.com/oubiwann/txjsonrpc to my BitcoinArmory folder but I still get the same error. I think I need to install it  

---

