Bitcoin Forum
November 01, 2024, 07:19:45 PM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ubuntu Server mining with ATI?  (Read 5942 times)
stickman (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
May 05, 2011, 02:56:04 PM
 #1

So I'm wondering if it's possible to mine with Ubuntu Server with ATI cards?  When I got started with mining I fumbled around for a couple days going from Ubuntu Server -> Ubuntu Desktop -> CentOS, and I'm currently running CentOS, but I'd like to switch over to Ubuntu Server if possible.  From what I discovered previously ATI cards need to be attached to a display otherwise they won't show up as an OpenCL device?  I remember trying to use DISPLAY=:0 and not having success so I moved on.

Thanks!
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
May 05, 2011, 03:46:41 PM
 #2

From my experience you need X to be running.

charliesheen
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile WWW
May 06, 2011, 05:25:45 PM
 #3

very possible, here is proof
http://www.youtube.com/watch?v=j86pORrusUo

Dusty
Hero Member
*****
Offline Offline

Activity: 731
Merit: 503


Libertas a calumnia


View Profile WWW
May 06, 2011, 05:36:28 PM
 #4

very possible, here is proof
http://www.youtube.com/watch?v=j86pORrusUo
Not quite: you can use a mining tool remotely via SSH but you need the user logged on the console.
If you logout from the console the program via ssh is unable to use opencl anymore...

Articoli bitcoin: Il portico dipinto
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
May 06, 2011, 05:45:39 PM
 #5

X needs to be running, but in most cases a monitor does not need to be plugged into the graphics card.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
gigabytecoin
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
May 06, 2011, 06:12:07 PM
 #6

X needs to be running, but in most cases a monitor does not need to be plugged into the graphics card.

I was wondering this same thing...

So you can't run your miners from simply a command line state? You need to be running some sort of desktop?
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
May 06, 2011, 06:52:16 PM
 #7

So you can't run your miners from simply a command line state? You need to be running some sort of desktop?
What I did :
 - set up ubuntu desktop
 - have gnome auto login
 - have a shell script run in console at startup of gnome
 - in that shell script have a screen command (or maybe run gnome-terminal remotely and tell it to run screen)
 - whenever i want to use a miner remotely i logon using ssh, issue a "screen -dRR"
 - the screen instance i get is "aware" of the x server running and i can launch a miner using it

anyway, the goal is to have an user logged in to gnome and a screen instance that is "aware" of it to be able to run mining software
hope it helps

stickman (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
May 07, 2011, 12:05:51 AM
 #8

Thanks, all this advice does help.  I've been using CentOS for my miners because that's about the only way I was able to get things working initially, and the setup and configuration under CentOS is a lot easier than all the guides I've seen around here for Ubuntu.  The thing is though that I really AM a fan of Ubuntu, I just couldn't get it to work initially.  Also, if Ubuntu Server was a possibility I'd be more excited about switching over.

Thanks for the help everyone.
Steve
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1008



View Profile WWW
May 07, 2011, 12:29:08 AM
 #9

You do not even need autologin as some have suggested.  I run ubuntu with headless, rack mounted servers (5970s and 6990s).  It's not the server edition, but as long as you have X installed, I imagine the server edition would work.  I have a script that simply uses sudo and xhost to open up permissions for all local users to access display :0...then the script sets DISPLAY=:0 and starts the miner...I use "screen" so that I can disconnect/reconnect to periodically check in on the miner to make sure it's still running at peak hash rates.  I do not need to set it to autologin.

(gasteve on IRC) Does your website accept cash? https://bitpay.com
Spirals
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile WWW
May 07, 2011, 04:43:02 AM
 #10

Is it possible that xvfb would be part of a headless/x-less solution? I'm running desktop Ubuntu myself so haven't run into the problem, but xvfb gets used on Linux servers for things like specific web apps that need X but obviously don't benefit from the overhead.
eck
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
May 07, 2011, 05:22:19 AM
 #11

I'm running Ubuntu Server 11.04 headless with a 6990. There's no need to auto-login or anything.

You do need to be running X and some kind of desktop environment or window manager, however. (I installed Xfce but something else should work too.) After that, just aticonfig and restart and install the APP SDK which should detect the GPUs.
Dusty
Hero Member
*****
Offline Offline

Activity: 731
Merit: 503


Libertas a calumnia


View Profile WWW
May 07, 2011, 03:38:05 PM
 #12

You do need to be running X and some kind of desktop environment or window manager, however. (I installed Xfce but something else should work too.) After that, just aticonfig and restart and install the APP SDK which should detect the GPUs.
You mean that you can remotely (via ssh) launch the mining programs without anybody logged on the console, thus showing only the login window?
I tried but with no luck, can you please give us the details?

Articoli bitcoin: Il portico dipinto
gusti
Legendary
*
Offline Offline

Activity: 1099
Merit: 1000


View Profile
May 07, 2011, 03:56:43 PM
 #13

you can also try RDP if remote display not working

If you don't own the private keys, you don't own the coins.
snoleo
Member
**
Offline Offline

Activity: 77
Merit: 10


A Colt Crossed the River


View Profile
June 08, 2011, 08:59:10 AM
 #14

I have find a way to remote ssh mining.

No need to autologin in Ubuntu.

Just have gdm auto start (which is default by ubuntu desktop). If you prefer Ubuntu server, you can simply:
# apt-get install xfce4
# apt-get install gdm

If you prefer gnome, you just:

# apt-get install gdm

after that, do the following:

(1). vi /etc/gdm/Init/Default
Add:
-------------
xhost +
chmod uog+rw /dev/dri/card*
-------------
at the end before "exit 0"

(2). vi /etc/bash.bashrc
to the end, add:
----------------
case $DISPLAY in '') export DISPLAY=:0;; *) ;; esac
----------------

(3). restart gdm

then you can use mining tools vis remote ssh.

I tried for weeks to make it possible.
If you find it useful, please enjoy and send a donation.

btc123.com - bitcoin Info & Web directory
stickman (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
June 08, 2011, 02:37:58 PM
 #15

Brilliant!  When I get a chance I'll definitely try to check this out.  I have an electrician coming over today because I just moved and I need new circuits installed to get my mining back up. 
dukejer
Jr. Member
*
Offline Offline

Activity: 42
Merit: 2


View Profile
June 08, 2011, 03:18:24 PM
 #16

I wrote up a post about how to do Ubuntu headless mining.  You can check it out at

http://forum.bitcoin.org/index.php?topic=9239.0

-Dukejer

If you find this post helpful feel free to donate to address: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs
Dusty
Hero Member
*****
Offline Offline

Activity: 731
Merit: 503


Libertas a calumnia


View Profile WWW
June 09, 2011, 09:44:42 PM
 #17

(1). vi /etc/gdm/Init/Default
Add:
-------------
xhost +
chmod uog+rw /dev/dri/card*
There is no /dev/dri directory on any of my ubuntu mining machines...

Articoli bitcoin: Il portico dipinto
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!