CGMiner for ButterflyLabs or ASIC USB Erupter RPMs for RHEL6(and clones)

I created some RPMs for CGMiner on RHEL6(CentOS and Scientific also) for CGMiner that one is compiled for the ButterflyLabs ASIC and one for the USB ASIC Erupter(Icarus).  I have tested both of these as working.  You can grab the RPMS at the below URL.  I can build Fedora RPMS if people are interested.

http://repos.servertoast.com/repos/coins/el/6/

Posted in Uncategorized | Leave a comment

Compiling CGMiner on Fedora 19 with AMD Catalyst Drivers

Below is a guide to get cgminer compiled and working on Fedora 19 with scrypt using the AMD Catalyst and OpenCL drivers.

First, you will need to enable the RPMFusion Repo for the AMD Catalyst drivers.

sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-19.noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-19.noarch.rpm

Then, you will need to yum install the AMD Catalyst driver and some other needed libraries.

sudo yum -y install curl-devel automake gcc ncurses-devel kmod-catalyst

You should reboot after installing the AMD binary drivers and then run the following command if you have multiple amd cards to get them into the Xorg config.

sudo DISPLAY=:0 aticonfig -f --initial --adapter=all

You will want to reload X or reboot after running that command to load the changes.

Grab the AMD-APP-SDK from here: http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/

Then use the below commands to install it.

tar -xvzf AMD-APP-SDK-v2.9-lnx64.tgz
sudo ./Install-AMD-APP.sh

The installer now creates files in /etc/ld.so.conf.d to load the libraries.  I think you may be able to trigger this with the ldconfig command, but a reboot definitely reloads it.

Grab the latest AMD-ADL-SDK from here: http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/

Then in the same directory where you downloaded the ADL_SDK zip file, run the below commands:

wget http://ck.kolivas.org/apps/cgminer/3.7/cgminer-3.7.2.tar.bz2
tar -xvjf cgminer-3.7.2.tar.bz2
unzip -j ADL_SDK_*.zip include/*.h -d cgminer-3.7.2/ADL_SDK/
cd cgminer-3.7.2
./configure --enable-scrypt --enable-opencl
make
sudo make install

Now, you should have cgminer installed and ready to run using your AMD videocard.  Run the below command to test that it sees your videocard and everything.

sudo /usr/local/bin/cgminer -n

If you are running this over SSH, you may need to export the display as part of the command.

DISPLAY=:0 sudo /usr/local/bin/cgminer -n
Posted in Uncategorized | Tagged , , , , , | 52 Comments

HDHomerun on Fedora 19

Yay, the good folks making Fedora have finally included the DVB modules in the kernel-devel package.  This makes things a lot easier for crafting RPMs since I no longer have to download the full kernel source and compile against it.

Anyways, I have created a yum repo for both the binary and source RPMS for these.  I would love for somebody to test these out and let me know if things work or not for them.  I created newer hdhomerun and hdhomerun-devel packages than what is already in the Fedora repos.  They are created from today’s CVS.

[hdhomerun]
name=HDHomeRun - $basearch
baseurl=http://repos.servertoast.com/repos/hdhomerun/fedora/19/
failovermethod=priority
enabled=1
gpgcheck=0

And the SRPMS are here:

[hdhomerun-src]
name=HDHomeRun Source RPMS - $basearch
baseurl=http://repos.servertoast.com/repos/hdhomerun/fedora/SRPMS/
failovermethod=priority
enabled=1
gpgcheck=0
Posted in Uncategorized | 1 Comment

Building a repository for CryptoCoin Mining

My hosting company got pwned and lost my entire VM about a week after I just happened to reinstall the desktop that I built all the RPMs on, so I lost my RPMS, Spec files, and SRPMS.  I might try to rebuild everything in a couple of weeks after Fedora 19 comes out…

I’m working on building a repository so that people can get wallets and mining going easily on Fedora 18 and eventually RHEL/Cent/SL.  Right now, I am mostly working on building the wallets for all the coins(both the daemon and the qt clients).  Here is a link to the site that has a list of what I was working from.  I am building all of them from the git repos with the date of the clone as the version number in the RPM.  Below is a list of the ones I have completed.  Please post any additional coins that you would like to see RPMS built for.

  • bbqcoin
  • bitbar
  • bitcoin
  • elacoin
  • FeatherCoin
  • franko
  • gldcoin
  • litecoin
  • nibble
  • Powercoin
  • ppcoin
  • terracoin
  • Worldcoin

Anyways, here is what you need to dump into /etc/yum.repos.d/coins.repo to install any of these wallets.  If anybody wants, I can put the scripts and spec files out in the repo to look at as well.

FEDORA 18:

[coins]
name=Crypto Coins - $basearch
baseurl=http://repos.servertoast.com/coins/fc18
failovermethod=priority
enabled=1
gpgcheck=0

RHEL6/CENT6/SL6:

[coins]
name=Crypto Coins - $basearch
baseurl=http://repos.servertoast.com/coins/el6
failovermethod=priority
enabled=1
gpgcheck=0

FEDORA 18 SRPMS:

[coins]
name=Crypto Coins - $basearch
baseurl=http://repos.servertoast.com/coins/SRPMS/fc18
failovermethod=priority
enabled=1
gpgcheck=0

RHEL6/CENT6/SL6 SRPMS:

[coins]
name=Crypto Coins - $basearch
baseurl=http://repos.servertoast.com/coins/SRPMS/el6
failovermethod=priority
enabled=1
gpgcheck=0
Posted in Uncategorized | Leave a comment

CGMiner on Fedora 18 with Nvidia GPU

First, you need to install the Nvidia binary drivers from RPMFusion.  The below commands should handle that:

sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm
sudo yum -y install kmod-nvidia xorg-x11-drv-nvidia-devel

Then, you need to download and install the CUDA software from https://developer.nvidia.com/cuda-downloads

Install with the following command:

chmod ugo+x cuda_5.0.35_linux_64_fedora16-1.run
sudo ./cuda_5.0.35_linux_64_fedora16-1.run -override compiler

Accept the license, answer n to installing the driver, y to the Toolkit, and y to Samples, I left installation paths at default.

Create a file /etc/ld.so.conf.d/cuda.conf that contains the below two lines:

/usr/local/cuda/lib64
/usr/local/cuda/lib

Download the latest source for cgminer and compile with the following command below:

CFLAGS=-I/usr/local/cuda/include LDFLAGS=-L/usr/lib64/nvidia ./configure --enable-cpumining && make && sudo make install

That should get you to the point of having cgminer compiled for Nvidia on Fedora 18.  Feel free to post comments/corrections.

Posted in Uncategorized | 1 Comment

Setting up dvbhdhomerun on Fedora 17

As always, this guide assumes SELinux is off and that you have installed all updates and rebooted into the latest kernel.  I recently got a couple of HDHomerun devices.  I set an HDHomerun Dual awhile back with TVHeadend.  I just got a Prime and am setting it up with MythTV.  This is a guide to what I had to do to get it going.  It’s based off the guide here.  First, you have to install some pre-requisites to build the dvbhdhomerun drivers.

yum -y install asciidoc binutils-devel cmake elfutils-devel gcc-c++ hdhomerun hdhomerun-devel kernel-devel newt-devel python-devel perl-ExtUtils-Embed redhat-rpm-config rpm-build zlib-devel xmlto hmaccalc bison pciutils-devel

Then, you should grab the source code from here.  Next, run the following commands to download the kernel source and install it.  Replace the kernel/linux directories and filenames to match the ones that you have.

yumdownloader --source kernel
rpm -ivh kernel-$(uname -r).src.rpm
cd ~/rpmbuild
rpmbuild -bp --target $(arch) --rmsource --rmspec SPECS/kernel.spec
cd BUILD/kernel-3.6.fc17/linux-3.6.9-2.fc17.x86_64
cp configs/kernel-3.6.9-x86_64.config .config

Now, in the directory that you are in,do a uname -a and copy the second dash to the end, then open the Makefile with vi or another editor and paste into the EXTRAVERSION line.  My paste was “-2.fc17.x86_64″.  Then do the next commands, changing the kernel to match your version.

make oldconfig
cp /usr/src/kernels/3.6.9-2.fc17.x86_64/Module.symvers .
make prepare scripts

Now, change back to the directory where you downloaded the dvbhdhomerun source package and run the following commands to unbundle it.

tar -xvzf dvbhdhomerun_0.0.11.tar.gz
cd dvbhdhomerun-0.0.11/kernel/

Then, edit the Makefile in that directory with vi or whatever you prefer and change the KERNEL_DIR line to ~/rpmbuild/BUILD/kernel-3.6.fc17/linux-3.6.9-2.fc17.x86_64/ changing the kernel and linux versions to match your systems.  Then run this to get to the next directory you need.

cd ../userhdhomerun/

Then edit CMakeLists.txt with vi or whatever and change SET(LIBHDHOMERUN_PATH /usr/lib/libhdhomerun) to SET(LIBHDHOMERUN_PATH /usr/include/hdhomerun) 

Now, do the following to compile everything.

cd ../kernel/ && make && make install
cp ../debian/dvbhdhomerun-utils.udev /etc/udev/rules.d/
systemctl restart udev.service
modprobe dvb_hdhomerun
cd ../userhdhomerun/
make
make run

After the last command, you should see some lines that begin with Registered tuner, id from kernel: 0 name: that will indicate that the service found your HDHomerun devices.  You can CTRL+C to stop this. Run the next line to install it.

make install

That should have all you need to get going.  You will need whatever user you want to run the service as to be a member of the video group, ie mythtv user.  You can start the daemon with the command line if you have a mythtv user.

/usr/local/bin/userhdhomerun -f -u mythtv
Posted in Uncategorized | 21 Comments

Spotify installation on Fedora 17 64-bit

What follows are exact commands for Fedora 17 (Might work with 16 still, not sure), I decided I would post the hoops I jump through to get Spotify running again.  In case you don’t know what Spotify is, it’s a music streaming service that for 5$ a month (or FREE with Ads) allows you to stream unlimited music from a very large collection that gets new releases every week.

Below are the commands in the the correct order to run post installation with Desktop chosen with no custom package changes, selinux, and iptables are off.

yum -y install perl-ExtUtils-MakeMaker gcc qt-webkit rpm-build git
cd /tmp
git clone git://git.kitenet.net/alien
cd alien
perl Makefile.PL; make; make install
cd /tmp
wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb
wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-gnome-support_0.8.4.103.g9cb177b.260-1_all.deb
/usr/local/bin/alien --to-rpm spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb
/usr/local/bin/alien --to-rpm spotify-client-gnome-support_0.8.4.103.g9cb177b.260-1_all.deb
ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.0.9.8
ln -s /lib64/libcrypto.so.10 /lib64/libcrypto.so.0.9.8
ln -s /usr/lib64/libnss3.so /usr/lib64/libnss3.so.1d
ln -s /usr/lib64/libnssutil3.so /usr/lib64/libnssutil3.so.1d
ln -s /usr/lib64/libsmime3.so /usr/lib64/libsmime3.so.1d
ln -s /lib64/libplc4.so /lib64/libplc4.so.0d
ln -s /lib64/libnspr4.so /lib64/libnspr4.so.0d
rpm -Uvh --nodeps spotify-client-*.rpm

That should be all that is needed. You should be able to launch it from the terminal with the command “spotify” or use a Gnome shortcut that should be available after installation.

Posted in Uncategorized | Tagged , , , | 13 Comments