Title: Ubuntu 11.04 headless mining (libqtgui4) question Post by: pewpew on April 24, 2012, 05:20:38 AM Leeties of the BitCoin community,
I'm trying to set up my first mining rig using https://bitcointalk.org/index.php?topic=9239.0 as a guide. After getting past the first line of commands, I'm stuck at Code: sudo apt-get install libqtgui4 which upon input, returned: Code: Reading package lists... Done My question for you kind gentlemen is this: which version of qt do i install? (https://launchpad.net/ubuntu/natty/+package/libqtgui4) Or, if you think there's an easier way for me to start mining, please enlighten me! Many Thanks! Title: Re: Ubuntu 11.04 headless mining (libqtgui4) question Post by: DILLIGAF on April 24, 2012, 05:34:39 AM Leeties of the BitCoin community, I'm trying to set up my first mining rig using https://bitcointalk.org/index.php?topic=9239.0 as a guide. After getting past the first line of commands, I'm stuck at Code: sudo apt-get install libqtgui4 which upon input, returned: Code: Reading package lists... Done My question for you kind gentlemen is this: which version of qt do i install? (https://launchpad.net/ubuntu/natty/+package/libqtgui4) Or, if you think there's an easier way for me to start mining, please enlighten me! Many Thanks! Have you done a sudo apt-get update as that package should be there for you to install. Code:
And that guide contains outdated link so you will want to do. Code:
To be able to install the json-rpc. Title: Re: Ubuntu 11.04 headless mining (libqtgui4) question Post by: pewpew on May 02, 2012, 09:22:58 PM Thank you, the updates did the trick. If you or anyone else reading this has a moment, can you check the guide im using (link above, also pasted below) to see if there's any other commands that need to be updated? I plan to repost the updated guide after i run through it to make the setup process easier for n00bz0rz. Thanks in advance!
---------------------------------------------------------- Load a fresh Ubuntu Natty 11.04 64-bit Desktop with the latest updates and log into system with a user that has sudo permissions. sudo apt-get remove nvidia-common sudo apt-get install libqtgui4 Load python and other development tools cd ~ sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev Download and install ATI Driver 11.5 for Linux 64bit. cd ~ wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run sudo sh ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty sudo dpkg -i *.deb sudo apt-get -f install sudo aticonfig -f --initial --adapter=all sudo reboot Verify that the ATI Driver is setup and running cd ~ DISPLAY=:0 sudo fglrxinfo Download and install bitcoin cd ~ wget http://downloads.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-0.3.21/bitcoin-0.3.21-linux.tar.gz tar xzvf bitcoin-0.3.21-linux.tar.gz chmod +x bitcoin-0.3.21/bin/64/bitcoin* mkdir -p ~/.bitcoin echo "rpcuser=user" >> ~/.bitcoin/bitcoin.conf echo "rpcpassword=password" >> ~/.bitcoin/bitcoin.conf Install python-jsonrpc cd ~ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc cd python-jsonrpc/ sudo python setup.py install Download and install AMD APP SDK 2.4 for Linux 64bit. cd ~ wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz tar xvzf AMD-APP-SDK-v2.4-lnx64.tgz echo export AMDAPPSDKROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc echo export AMDAPPSDKSAMPLESROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc echo 'export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}' >> ~/.bashrc source ~/.bashrc cd / sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz Download, Compile and Install pyopencl-0.92 cd ~ wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz tar xzvf pyopencl-0.92.tar.gz cd pyopencl-0.92 ./configure.py --cl-inc-dir=${AMDAPPSDKROOT}include --cl-lib-dir=${AMDAPPSDKROOT}lib/x86_64 make sudo make install Download and Install Phoenix Miner 1.48 wget http://svn3.xp-dev.com/svn/phoenix-miner/files/phoenix-1.48.tar.bz2 tar xvf phoenix*.bz2 Verify that OpenCL is setup and running cd ~ cd AMD-APP-SDK-v2.4-lnx64/bin/x86_64 ./clinfo Create a startminer script using code from below. Make sure to substitute the correct home directory path, miner pool server, miner user and miner password. cd ~ sudo touch /usr/local/bin/startminer.sh sudo chmod 755 /usr/local/bin/startminer.sh sudo gedit /usr/local/bin/startminer.sh # ${1} is used as a variable for the username, password and for the gpu device number. Ex. mineruser0, minerpass0, Device=0 or mineruser1, minerpass1, Device=1 HOMEDIR=/home/user MINERSERV=btcmine.com:8332 MINERUSER=mineruser@miner${1} MINERPASS=minerpass${1} export AMDAPPSDKROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/ export AMDAPPSDKSAMPLESROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/ export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH} #Overclock GPU to 875Mhz DISPLAY=:0 aticonfig --od-enable --adapter=all DISPLAY=:0 aticonfig --od-setclocks=875,1000 --adapter=${1} cd ${HOMEDIR}/phoenix-1.48 echo "Startming Miner: ${1}" ${HOMEDIR}/phoenix-1.48/phoenix.py -u http://${MINERUSER}:${MINERPASS}@${MINERSERV} -k phatk VECTORS BFI_INT AGGRESSION=12 DEVICE=${1} Setup Headless Bitcoin Mining *** Warning *** This will stop your computer from booting a graphical desktop and allow only text console or remote ssh access into the mining server. If you rely on a GUI for administration you may want to rethink this. sudo apt-get install openssh-server sudo apt-get install screen sudo mv /etc/init/gdm.conf /etc/init/gdm.org sudo gedit /etc/init/startx.conf description "Start X Server for btc mining" start on runlevel [2345] stop on runlevel [!2345] kill timeout 30 script exec /usr/bin/X 2>&1 end script sudo gedit /etc/init/btcminer_0.conf description "Start BTC Mining" start on runlevel [2345] stop on runlevel [!2345] kill timeout 30 script LOGINUSER=ChangeToMyLoginUser #Wait 30 seconds to make sure X is started. sleep 30 exec /usr/bin/screen -dmS gpu0 su -c '/usr/local/bin/startminer.sh 0' ${LOGINUSER} end script sudo gedit /etc/init/btcminer_1.conf description "Start BTC Mining" start on runlevel [2345] stop on runlevel [!2345] kill timeout 30 script LOGINUSER=ChangeToMyLoginUser #Wait 35 seconds to make sure X is started. sleep 35 exec /usr/bin/screen -dmS gpu1 su -c '/usr/local/bin/startminer.sh 1' ${LOGINUSER} end script How to access the miner server ssh into the mining server as your normal login user. sudo screen -r gpu0 or sudo screen -r gpu1 To disconnect from screen Control-A + Control-D. How to check the GPU temperatures ssh into mining server as your normal login user. DISPLAY=:0 sudo aticonfig --odgt --adapter=all How to monitor your screens on an Xterminal on the main Xwindows console on boot up. sudo gedit /etc/init/btcmonitor_0.conf description "Start BTC Monitor 0" start on runlevel [2345] stop on runlevel [!2345] kill timeout 30 script LOGINUSER=ChangeToMyLoginUser export DISPLAY=:0 #Wait 40 seconds to make sure X is started. sleep 40 exec /usr/bin/xterm -geometry 80x40+0+0 -e "/usr/bin/screen -d -r gpu0" end script sudo gedit /etc/init/btcmonitor_1.conf description "Start BTC Monitor 1" start on runlevel [2345] stop on runlevel [!2345] kill timeout 30 script LOGINUSER=ChangeToMyLoginUser export DISPLAY=:0 #Wait 45 seconds to make sure X is started. sleep 45 exec /usr/bin/xterm -geometry 80x40+500+0 -e "/usr/bin/screen -d -r gpu1" end script --Courtasy of dukejar Donate to him at: 19oQLN2v1auiGqBDFfxSDUfu8Ax6ooT6xs Title: Re: Ubuntu 11.04 headless mining (libqtgui4) question Post by: DILLIGAF on May 02, 2012, 10:27:33 PM Thank you, the updates did the trick. If you or anyone else reading this has a moment, can you check the guide im using (link above, also pasted below) to see if there's any other commands that need to be updated? I plan to repost the updated guide after i run through it to make the setup process easier for n00bz0rz. Thanks in advance! Install python-jsonrpc cd ~ sudo apt-get install bzr bzr checkout http://bzr.json-rpc.org/trunk cd trunk/python-jsonrpc sudo python setup.py install Other than this change everything should should still just work or did last time I did it couple of weeks ago when I had hard drive failure and installed it again. Edit: You may want to update the version of bitcoin installed as that 0.3.21 is rather old. Title: Re: Ubuntu 11.04 headless mining (libqtgui4) question Post by: kano on May 06, 2012, 09:05:23 PM ... mining rig
Well I guess your not trying to use cgminer then, but some other miner that requires qt Coz, the install guide in my sig (which is way shorter) will get you mining with cgminer (I suggest yo use the HDD install version) ... and yes as DILLIGAF mentioned, you need to "sudo apt-get update" if the expected packages are missing. Title: Re: Ubuntu 11.04 headless mining question Post by: pewpew on May 11, 2012, 06:34:40 AM OKAY. :-\
So I got everything working up to the startminer script part. But I wasn't sure how to test run the gpus and just entered all of the scripts (startx.conf, btcminer_0, btcmonitor_0, btcminer_1, btcmonitor_1, etc) and then rebooted to see if they were working. I was able to boot, but it loaded showing a black screen, with the mouse cursor in a fat X shape. There are occasionally text boxes that pop up for a brief second every 5 seconds or so, but stop after it happens 5 times (probably because there's 5 gpus in the rig). After that it's just completely black with the X shaped cursor. Any idea on what I can do to not have to start over completely? Also given the above guide, what command would I use to manually connect to the Server and then run the workers? Assuming this is to be entered after reaching the "Test PyOpenCL" part, before the startminer script. Many thanks! |