Bitcoin Forum
April 18, 2024, 07:58:01 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: xhost: unable to open display ":0" Paying .2 BTC to whoever can help me.  (Read 5635 times)
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 17, 2014, 02:56:35 AM
Last edit: January 18, 2014, 10:41:47 PM by insanehero
 #1

Hey guys, so I've been setting up my first bitcoin miners the last few days, however, after finally getting everything installed and getting SSH running on the machine, I'm now running into these errors.

I'm using x3 Radeon 7950 GPU's on Xubuntu on a headless setup and connecting via SSH.

Code:
root@Miner-2:~# sudo aticonfig --adapter=all --odgt
No protocol specified
ERROR - X needs to be running to perform AMD Overdrive(TM) commands

I keep getting this error when I run this command in SSH, but when I hook up the monitor and try the commands directly it runs the commands just fine. So I'm thinking it might have something to do with my SSH setup....



I looked around online and it said I should do the following..

Code:
root@Miner-2:~# export DISPLAY=:0
root@Miner-2:~# xhost +
No protocol specified
xhost:  unable to open display ":0"

However, this didn't seem to work either since it's also giving an error.



Please help! Any help is much appreciated!

CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713427081
Hero Member
*
Offline Offline

Posts: 1713427081

View Profile Personal Message (Offline)

Ignore
1713427081
Reply with quote  #2

1713427081
Report to moderator
1713427081
Hero Member
*
Offline Offline

Posts: 1713427081

View Profile Personal Message (Offline)

Ignore
1713427081
Reply with quote  #2

1713427081
Report to moderator
1713427081
Hero Member
*
Offline Offline

Posts: 1713427081

View Profile Personal Message (Offline)

Ignore
1713427081
Reply with quote  #2

1713427081
Report to moderator
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 18, 2014, 10:41:38 PM
 #2

Paying .2 BTC to whoever can help me.

CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
Blaater
Sr. Member
****
Offline Offline

Activity: 462
Merit: 262


View Profile
January 19, 2014, 12:58:23 AM
 #3

Looks like you dont have xinit running?
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 19, 2014, 01:16:26 AM
 #4

Looks like you dont have xinit running?


root@Miner-2:~# ps aux | grep X11
jason     1426  0.0  0.0   4396   656 ?        Ss   18:04   0:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
root      2179  0.0  0.0  13600   928 pts/2    S+   18:04   0:00 grep --color=auto X11


I do though....

CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
Blaater
Sr. Member
****
Offline Offline

Activity: 462
Merit: 262


View Profile
January 19, 2014, 01:20:24 AM
 #5

Looks like you dont have xinit running?


root@Miner-2:~# ps aux | grep X11
jason     1426  0.0  0.0   4396   656 ?        Ss   18:04   0:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
root      2179  0.0  0.0  13600   928 pts/2    S+   18:04   0:00 grep --color=auto X11


I do though....

Oizopower respons (stuck in newbie jail):
Try "DISPLAY=:0.0 aticonfig --adapter=all --odgt" without the ""
or maybe add sudo if you are not root.
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 19, 2014, 01:29:55 AM
 #6

Looks like you dont have xinit running?


root@Miner-2:~# ps aux | grep X11
jason     1426  0.0  0.0   4396   656 ?        Ss   18:04   0:00 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
root      2179  0.0  0.0  13600   928 pts/2    S+   18:04   0:00 grep --color=auto X11


I do though....

Oizopower respons (stuck in newbie jail):
Try "DISPLAY=:0.0 aticonfig --adapter=all --odgt" without the ""
or maybe add sudo if you are not root.

Still getting errors about X, yet it clearly shows its running

jason@Miner-2:~$ ps aux | grep X11
jason     2250  0.0  0.0   9440   936 pts/0    S+   20:28   0:00 grep --color=au                               to X11
jason@Miner-2:~$ DISPLAY=:0.0 aticonfig --adapter=all --odgt
No protocol specified
aticonfig: This program must be run as root when no X server is active
jason@Miner-2:~$ sudo DISPLAY=:0.0 aticonfig --adapter=all --odgt
[sudo] password for jason:
Invalid MIT-MAGIC-COOKIE-1 keyERROR - X needs to be running to perform AMD Overdrive(TM) commands
jason@Miner-2:~$


CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
ledmaniak
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
January 19, 2014, 01:32:20 AM
 #7

Try this:
Quote
rm ~/.Xauthority*

Bitcoin: 1Cxi8BLvScSm1mW6kjb5MNeJZPrvAiYL6B
Litecoin: LLmjtrrq1ZeD51NSUJ8VanuQduW8Ma3jrs
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 19, 2014, 01:35:00 AM
 #8

Try this:
Quote
rm ~/.Xauthority*


jason@Miner-2:~$ rm ~/.Xauthority*
rm: remove write-protected regular file ‘/home/jason/.Xauthority’? y
jason@Miner-2:~$ sudo DISPLAY=:0.0 aticonfig --adapter=all --odgt
No protocol specified
ERROR - X needs to be running to perform AMD Overdrive(TM) commands

I also tried relogging into SSh after removing it, same error

CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
ledmaniak
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
January 19, 2014, 01:37:24 AM
 #9

Have you tried restarting after removing it first?

Bitcoin: 1Cxi8BLvScSm1mW6kjb5MNeJZPrvAiYL6B
Litecoin: LLmjtrrq1ZeD51NSUJ8VanuQduW8Ma3jrs
Blaater
Sr. Member
****
Offline Offline

Activity: 462
Merit: 262


View Profile
January 19, 2014, 01:42:26 AM
 #10

Try:
 
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
 
sudo aticonfig --adapter=all --odgt


Courtesy of Oizopower
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 19, 2014, 02:23:40 AM
 #11

Try this:
Quote
rm ~/.Xauthority*

This seems to be doing the trick, however it's only doing it for one session. Then I have to remove and reboot again

CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
ledmaniak
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
January 19, 2014, 02:34:13 AM
 #12

OK.

Have you tried something like this:

Quote
sudo su
chmod uog+rw /dev/ati/card*
xauth merge /home/user/.Xauthority
export DISPLAY=:0
aticonfig --odgc --adapter=all

Bitcoin: 1Cxi8BLvScSm1mW6kjb5MNeJZPrvAiYL6B
Litecoin: LLmjtrrq1ZeD51NSUJ8VanuQduW8Ma3jrs
insanehero (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10

A tough dogie


View Profile
January 20, 2014, 02:19:40 AM
 #13

OK.

Have you tried something like this:

Quote
sudo su
chmod uog+rw /dev/ati/card*
xauth merge /home/user/.Xauthority
export DISPLAY=:0
aticonfig --odgc --adapter=all


Yea, it still only lasts for one session though. Thanks for the help btw



CATCOINS 4 LIFE! 9qpWzT1QkEuY7dUAhrVjbK2LawPzG1cs2U
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!