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.


name=Crypto Coins - $basearch


name=Crypto Coins - $basearch


name=Crypto Coins - $basearch


name=Crypto Coins - $basearch
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
sudo rpm -Uvh
sudo yum -y install kmod-nvidia xorg-x11-drv-nvidia-devel

Then, you need to download and install the CUDA software from

Install with the following command:

chmod ugo+x
sudo ./ -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/ that contains the below two lines:


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 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://
cd alien
perl Makefile.PL; make; make install
cd /tmp
/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/ /usr/lib64/
ln -s /lib64/ /lib64/
ln -s /usr/lib64/ /usr/lib64/
ln -s /usr/lib64/ /usr/lib64/
ln -s /usr/lib64/ /usr/lib64/
ln -s /lib64/ /lib64/
ln -s /lib64/ /lib64/
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

Installing Broadcom Wireless drivers for late 2011 Macbook Pro

The following commands will install and get running the Broadcom wireless drivers on a late 2011 Macbook Pro.  As usual, run all the command below as root:

yum -y install b43-fwcutter
cd /tmp
tar -xvjf broadcom-wl-5.100.138.tar.bz2
cd broadcom-wl-5.100.138
b43-fwcutter -w /lib/firmware linux/wl_apsta.o
service NetworkManager restart
Posted in Uncategorized | Leave a comment

Adding execute permissions recursively only to folders

Something neat I found that I never knew about.  I suppose I could have just read the man pages…  The below line will add user permissions of rwx and group/other permissions of read and execute recursively, only adding execute permissions to the folders and not files.

chmod -R u=rwX,go=rX .

Posted in Uncategorized | 1 Comment

Setting a cron job to run on the last day of the month

Awhile back, I had a user that wanted me to send out an email to all people in a distribution list on the last day of the month for them to put in some time reporting.  After I spent some time tracking searching on the internet, I found a trick to get a task to work on the last day of the month with Cron.  Below is what you need to make that happen.

First, you will need to create your script file using the below template:

TODAY=`date +%d`
TOMORROW=`date +%d -d "1 day"`

if [ $TOMORROW -lt $TODAY ]; then

Replace the *COMMAND/SCRIPT* line with whatever commands or scripts you want to run on the last day of the month.  If you want it to run 2 days before the end of the month, change the 1 on line three to a 2.

Make sure the script is executable:

chmod u+x

Then using crontab -e paste the following into a new line of your crontab to set the job to run at 6AM on the last day of the month every month.

0 6 28,29,30,31 * * /root/bin/

Change the first two numbers to set up what minute and hour you want the script to run, and then change the path to point to where your script is located at.

Posted in Uncategorized | Tagged | 1 Comment