Author Topic: BAMT version 0.5 - Easy USB based mining Linux with farm wide management tools  (Read 91599 times)

Offline maplesyrupghost

BAMT [Big A Miner Thing] is a dedicated OS for Bitcoin Mining. 

NEW: Anchors to posts!

1 - Main BAMT 0.5c download link
2 - USB Booter
3 - Network Disconnect Solution
4 - Updating CGMiner
5 - Read-only File-system Solution
6 - Install BAMT to a hard drive
7 - Manually updating BAMT with 7970 drivers
8 - BAMT 64-bit 0.5a & BAMT 32-bit 0.4 download links
9 - Litecoin mining with BAMT guide (somewhat complete)
10 - Phillips' GCN-integrated BAMT 0.5c download link (7970 ready)
11 - BAMT 0.6 beta download
12 - DeathXXX's 7970 BAMT
13 - DeathXXX's Recompile cgminer + ADL script
14 - DeathXXX's Extix Linux w/Radeon R9 drivers
15 - DeathXXX's BAMT 1.3 mod w/Radeon R9 drivers
16 - DeathXXX's Wireless network driver guide

deathxxxbamtwireless
Taken from the original thread:

BAMT is a custom Debian based Linux designed specifically for dedicated Bitcoin mining rigs.

This is not a 'user oriented' Linux. BAMT is for mining rigs.. computers that are probably headless and probably ignored for months at a time while they do absolutely nothing but churn out shares.  There is no (fill in this blank with anything not required for mining), there is only mining.

The primary goal of BAMT is to reduce time spent deploying, monitoring and maintaining your mining farm to the absolute minimum.

BAMT runs from a 2GB or larger USB key and is persistent. Included are all the drivers, programs, and scripts necessary to very quickly deploy dedicated machines that will automatically start mining for you when turned on, report their performance via various convenient facilities, and tell you when they have a problem.  A new rig can added to your farm and mining for you in less than 60 seconds (this is not an exaggeration). 

Everything is designed to be managed remotely either via SSH or web interface.  All mining clients run inside screen sessions, all rigs are capable of sending email alerts about their own status and/or reporting their situation to a central point, and/or providing detailed mining metrics for polling monitoring systems like nagios and munin.

Website at http://bamter.org/ GONE

Support/bug tracker at http://bamter.org/redmine/projects/bamt

Donations to:  1PoRYaGS56ksQmK7XXLurW3B2zwCAE8PRc



Some reasons you might like BAMT:

Support for managing Phoenix, Phoenix2 and cgminer.  (support for BFL devices is incomplete but work is in progress.  Mining works now, graphing and monitoring will work soon)

The base is Debian Live and every effort has been taken to remain a "normal" Debian system.

BAMT is proven stable with typical miner uptimes measured in months.

The entire miner configuration is specified in a couple of simple text files.

BAMT has built in simple monitoring of mining paramters and can do alerting via email. For more robust solutions the node provides mining metrics via Munin.

Mining processes run in screen sessions and can be viewed/managed remotely via SSH.

Simple centralized config management allows controlling all your miners from one place.

Realtime mining status is available in a number of ways:
   Each node provides a web interface with current mining status and performance graphs.
   The gpumon console application provides fast access to current status and system controls.
   Munin data collectors which provide a wide range of GPU and mining data are built in.
   Nodes can broadcast status packets on the local LAN or direct them to a specific host. Status information is collected and displayed by the mgpumon console application and/or used to generate webpages such as the one seen here.

New: all mining and GPU metrics are available via SNMP for use with any standard network management/monitoring tools (nagios, zabbix, cacti, etc)  Whether you choose Phoenix, Phoenix2 or cgminer all your live data is available in the same standard format.

Some quick points on the off chance that anyone actually reads any of this

BAMT does not work with every piece of hardware out there.  Please consult the hardware compatibility list  before wasting your time.  Also please update the list, good or bad, if you try hardware not already found there.

There is no upgrade from 0.4x to 0.5.  Too many changes in the base image to allow it.  Your 0.4 configuration will work fine on 0.5 however.  So, I supposed an 'in place upgrade' could be done by:
turn off 0.4 rig.
stick 0.4 rig's key into machine you will use to write new image
copy the config file in BAMT/CONFIG/FROM/* somewhere local
write 0.5 image to key
copy config files back into BAMT/CONFIG/TO
stick key back in miner

There is no root password on the distribution image!

You must set it:

Either open a root shell on desktop and type: passwd
or login via ssh with username 'user' and password 'live' and type: sudo passwd




1 - Get it

http://bamter.org
or save bamt's bandwidth by downloading it from BitcoinTrading.com

Download from BitcoinTrading's FASTER MIRROR!!!

2 - Put it on a usb key

For windows, use:  http://sourceforge.net/projects/win32diskimager/

Linux/mac: 

dd if=/path/to/bamt_v0.5a.img of=/dev/sdX  (device name of your usb key.  try to get the right device on the first try.  use raw device *not* a partition)

3 - Stick it in your rig



4 - Boot BAMT, and do what mother tells you (she mostly complains using the desktop background, or run 'mother -v' from shell/ssh for a quick checkup).

Download it from BitcoinTrading.com
« Last Edit: January 16, 2014, 05:08:21 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Boot BAMT version 0.5c with USB using any unsupported motherboard
« Reply #1 on: April 18, 2012, 12:41:44 pm »
Hey peoples!   A lot of people are saying that certain Gigabyte motherboards are impossible to boot into BAMT because they do not support booting into USB drives with multiple partitions.

This is mentioned on the hardware compatibility list, right up at the top.

I have made an image that makes this possible.

Download the bitcointrading.com_usbbooter.iso from us!

It's a 500KB file so it will fit on any USB drive.  Use your smallest one!  Use this to flash the iso to your USB stick (select other linux, new, from the dropdown box, right at the bottom).

Then boot from that stick in your BIOS and it will automatically boot from the other usb stick you have inserted (BAMT).
« Last Edit: October 05, 2012, 12:56:42 pm by maplesyrupghost »
BitcoinTrading.com founder




bitcointrading.com - bitcoin trading buy/sell classifieds forum

Boot BAMT version 0.5c with USB using any unsupported motherboard
« Reply #1 on: April 18, 2012, 12:41:44 pm »

Offline maplesyrupghost

Re: BAMT version 0.5c - Network Disconnection Solution
« Reply #2 on: May 11, 2012, 12:38:57 pm »
Hey!  So people have been widely reporting that BAMT 0.5c disconnects network and 0.4 didn't.  Well I experienced the HELL outta this problem, I must have formatted my USB 1000 times with extreme frustration.  BAMT actually LOSES it's IP!  Here is the solution to this problem:

1) Open a root SSH or terminal session

2) Type this to see which ethernet port you are using (handy for motherboards that have eth0 and eth1, this way you know which port to configure).  Whichever eth port has an IP currently, that's the one you are going to set static.
Code: [Select]
ifconfig
3) Type:
Code: [Select]
nano /etc/network/interfacesThis will start editing the network interfaces config.  You will probably see something like "auto lo / iface lo inet loopback", that one is cool, it can stay, but under it if you see "allow-hotplug eth0 / iface eth0 inet dhcp" those lines should be removed (IF you are using eth0)

4) Set the IP as static.  For me, I needed something along the lines of this:

Code: [Select]
auto lo
iface lo inet loopback

iface eth1 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

5) Save file, then type:
Code: [Select]
apt-get remove network-manager*
Make sure you get that asterik in there, that will remove all the network-managers.

6) Type:
Code: [Select]
/etc/init.d/networking restartThis should restart the network.  I think you could alternatively coldreboot.

And..  you should be good to go!
« Last Edit: October 05, 2012, 01:00:33 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Re: BAMT version 0.5 - Update BAMT with the latest cgminer
« Reply #3 on: June 18, 2012, 12:39:02 pm »
Bitcointalk member tosku has a quick guide on how to update BAMT with the latest version of cgminer, here are his instructions:

I updated BAMT with the latest version of cgminer. This is how I did it. I'm sure there are more elegant or "correct" ways, but this worked for me. If I'm doing something horribly wrong, please point it out.

Logged in as root, type this into a terminal to download the latest cgminer and prepare it with the ADL SDK:


Code: [Select]
cd /usr/share
git clone https://github.com/ckolivas/cgminer.git
cd cgminer/ADL_SDK
wget http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_4.0.zip
unzip ADL_SDK_4.0.zip
cd include
mv adl* ..
cd ..
cd ..

Keep going. The following instructions on compiling cgminer are taken from http://ck.kolivas.org/apps/cgminer/README

Code: [Select]
cd /opt
tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig

cd /usr/share/cgminer
./autogen.sh
CFLAGS="-O2 -Wall -march=native" ./configure
make

Now that cgminer is compiled, you need to replace the cgminer that came with BAMT with the latest version. It's a good idea to stop mining before doing that, and to make a backup of the old cgminer:

Code: [Select]
gpumon
D
q
cd /opt/miners
mkdir cgminer_backup
cd cgminer
cp * ../cgminer_backup/

cd /usr/share/cgminer
cp * /opt/miners/cgminer

Now restart mining and verify that things work as they should:

Code: [Select]
gpumon
S
0

You should see the latest version of cgminer running in a screen.
« Last Edit: October 05, 2012, 01:01:52 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Re: BAMT version 0.5 - Fix read-only filesystem problem
« Reply #4 on: July 03, 2012, 11:08:01 am »
Someone has found a solution to the 'read-only file system' problem, I've had it a few times, it's really annoying.

Read-only file system problem.

Code: [Select]
rm: cannot remove `/live/image/BAMT/CONTROL/ACTIVE/noOCGPU3': Read-only file system
Did a Scandisk under windows,

Code: [Select]
151k recovered in 9 file,   autocong cgsnoop phoenix2, and CHECK_NETWORK.SH , entry trunkated
Problem fixed.

My solution to that problem is to keep reformatting the stick.  Problem comes up, I reformat, good to go...  But this might be a quicker way to get mining again!
« Last Edit: January 01, 2013, 02:17:03 am by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Re: BAMT version 0.5 - Install onto hard drive info
« Reply #5 on: July 09, 2012, 01:35:28 pm »
Hey! I figured I would post a tutorial someone made awhile ago about how to install BAMT onto a hard drive.

FYI for anyone wanting to install BAMT to a harddrive - I installed it to 4 boxes last night (four separate hard drives), this is  the script I used to do it ;;
Code: [Select]
cd /
cfdisk /dev/sda
create 2 partitions [linux, and linux-swap]
make first partition bootable
write/quit
mkfs.ext3 /dev/sda1
mkdir /mnt/bamt
mount /dev/sda1 /mnt/bamt

cp --preserve -R {bin,boot,etc,home,initrd.img,lib,opt,root,sbin,selinux,srv,usr,var,vmlinuz} /mnt/bamt

mkdir /mnt/bamt/{dev,media,mnt,proc,sys,tmp}

cd /mnt/bamt
mount -o bind /dev /mnt/bamt/dev
mount -t proc /proc /mnt/bamt/proc
mount -o bind /sys /mnt/bamt/sys
chroot /mnt/bamt

apt-get update
apt-get install grub
[choose sda]
update-grub
grub-install /dev/sda

edit miner configs;
vi /etc/bamt/pools
vi /etc/bamt/bamt.conf
reboot
thanks to the bamt developer(s) for such a great program!

edit: of note, I have been using 'mgpumon /etc/bamt/mgpumon.conf' to monitor all my boxes from one place -> 'http://<serverIP>/mgpumon/' but I found that the css file wasn't being loaded.
to fix this, I changed the configuration line in /etc/bamt/mgpumon.conf ::

Code: [Select]
FROM => "httpcss": "/mgpumon.css",
TO => "httpcss": "mgpumon.css"
then created a symlink for the mgpumon.css file ;;
Code: [Select]
ln -s /var/www/bamt/mgpumon.css /tmp/mgpumon/mgpumon.css
« Last Edit: October 05, 2012, 01:03:05 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

While we wait for lodcrappo to get 7970's integrated into BAMT, let's get mining in the meantime with our cards.

Let's pretend this is a fresh bamt.

login as user
password live

Code: [Select]
sudo passwd root
[enter your new pass]
[enter your new pass again]
su

now do some fixer!

Code: [Select]
/opt/bamt/fixer
hit enter a few times until you get your prompt back.

Code: [Select]
cd /opt/
mkdir ADL
cd ADL
wget http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_3.0.zip
unzip ADL_SDK_3.0.zip
cd /opt/miners/
wget http://ck.kolivas.org/apps/cgminer/cgminer-2.5.0.tar.bz2
tar xsfv cgminer-2.5.0.tar.bz2
mv cgminer cgminer.org
mv cgminer-2.5.0 cgminer
cp /opt/ADL/include/*.h /opt/miners/cgminer/ADL_SDK/
cd cgminer
CFLAGS="-O2 -Wall -march=native -I/opt/AMD-APP-SDK-v2.4-lnx32/include/" LDFLAGS="-L/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/" ./configure --enable-bitforce
make install
/usr/share/ati/fglrx-uninstall.sh --force
sync
coldreboot

I don't know if the --enable-bitforce flag is required, seems sort of ridiculous but it works regardless so I would leave it.

the URL to cgminer's files will likely change when a new version comes out.  you can just change the number in the URL and it will get that version.  at least 2.5.0 is the latest today.

now we need our new driver, i haven't tried 12.6 yet, it might be faster.

Code: [Select]
cd /home/user/Desktop/
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run
chmod 755 amd-driver-installer-12-4-x86.x86_64.run
chmod +x amd-driver-installer-12-4-x86.x86_64.run
./amd-driver-installer-12-4-x86.x86_64.run
sync
coldreboot

Code: [Select]
nano /etc/bamt/bamt.conf
set each card to be enabled in the bamt.conf (disabled: 0) so that mgpumon doesn't think the cards are disabled.  don't change clocks or anything though, the cgminer conf does that.

also make sure each card has cgminer: 1 on it, like this:

Code: [Select]
gpu1:
disabled: 0
cgminer: 1

and somewhere in the settings part you need a 'cgminer: 1', anywhere above the # GPU Configuration should work.  I doubt you would need the cgminer opts because bamt isn't loading cgminer, but for the sake of flying cows let's put something there.

like this:

Code: [Select]
...
cgminer: 1
cgminer_opts: --api-listen --auto-gpu --auto-fan -c /etc/bamt/cgminer.conf

# GPU Configurtation

and that having been said, I just found a typo in bamt.. configurtation?

ok so ctrl+o to save, ctrl+x to exit nano.

Code: [Select]
apt-get remove network-manager*this is to remove the network-manager apps that cause the system to lose it's IP after a few hours, it's optional, but i recommend it.  scroll up a couple posts in this thread for instructions on the layout of this file you should edit:

Code: [Select]
nano /etc/network/interfaces
and then restart the network.

Code: [Select]
/etc/init.d/networking restart
now let's start cgminer to create a config file.  alternatively, instead of starting cgminer right now you could just create a cgminer.conf and paste in working settings.  if you do it that way, enter the aticonfig and the export lines before you start cgminer.

Code: [Select]
aticonfig --adapter=all --initial  -f
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
cd /opt/miners/cgminer
./cgminer

cgminer will ask you for your URL, username, pass, etc for the first pool, set that up, then hit S for settings, then W to write config file, save it as /etc/bamt/cgminer.conf then hit Q to quit, then edit your conf from nano using:

Code: [Select]
nano /etc/bamt/cgminer.conf
and you should have a configuration that's somewhat ready.  you could alternatively use cgminer itself to set all the settings you want, then save, it really doesn't make a difference at this point.

now that nano is open, let's mod the config some.  since I already have this set up, here's a working config:

Code: [Select]
{
"pools" : [
        {
                "url" : "http://whateverpool.com:8332",
                "user" : "yourusername",
                "pass" : "yourpassword"
        }
]
,
"intensity" : "14,14,14",
"vectors" : "2,2,2",
"worksize" : "64,64,64",
"kernel" : "diablo,diablo,diablo",
"gpu-engine" : "800-1155,800-1135,750-1000",
"gpu-fan" : "70-85,70-85,70-95",
"gpu-memclock" : "0,0,0",
"gpu-memdiff" : "-150,-150,-150",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"temp-cutoff" : "92,92,92",
"temp-overheat" : "87,87,87",
"temp-target" : "82,82,82",
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "1",
"log" : "5",
"queue" : "1",
"retry-pause" : "5",
"scan-time" : "60",
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/local/bin"
}

that's for 3 cards, 2 of them are 7970 and the 3rd is a 7950.  seems to be working alright.

ctrl+o to save, ctrl+x to exit nano.

now technically speaking, you're done. 

go start mining!

Code: [Select]
cd /opt/miners/cgminer
./cgminer --api-listen --auto-gpu --auto-fan -c /etc/bamt/cgminer.conf

Now it's running, but if your session dies (if you close the terminal window) cgminer will stop.  So we need to put it in a screen so it can mine forevers!

Code: [Select]
screen
./cgminer --api-listen --auto-gpu --auto-fan -c /etc/bamt/cgminer.conf
ctrl+a d

Now cgminer is running in the screen.  Note that 'ctrl+a' are pressed together but release 'ctrl' when hitting 'd'.  To see your screens, enter:

Code: [Select]
screen -ls
And to reattach a screen, now that you know the screen's number, you can reattach that screen with:

Code: [Select]
screen -r ####
If you get an 'all devices disabled, cannot mine' error, try doing a sync and coldreboot, might take a couple tries.

edited: a few things
edited: more things


Let me know if there are any issues with this and how it works for you!
« Last Edit: October 05, 2012, 01:03:54 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

BAMT 64-bit version 0.5a & 32-bit version 0.4 download.
« Reply #7 on: July 27, 2012, 01:31:14 pm »
Hey I just wanted to share with you a magical, elusive file: 64-bit BAMT.

This is not supported.

NEW! Made BitcoinTrading awesomely fast, enjoy the speed! :)

I have not even tried it, but it's real.
Download it from us! http://www.bitcointrading.com/files/bamt64_v05a.zip

Download it from us! FASTER MIRROR. http://files2.bitcointrading.com/bamt64_v05a.zip

MD5: 38D9658847F6862471CCF27C9A5CF8A8

I also uploaded version 0.4 in case anyone wanted a copy of that.

Download it from us! http://www.bitcointrading.com/files/bamt_v0.4.zip

Download it from us! FASTER MIRROR.  http://files2.bitcointrading.com/bamt_v0.4.zip

MD5: 4974FAC52C0591244AA95DA237DCC451
« Last Edit: March 31, 2013, 02:33:53 am by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

BAMT version 0.5c - Mine Litecoin (LTC) with cgminer instructions
« Reply #8 on: August 03, 2012, 03:50:08 pm »
Mine Litecoin (LTC) with cgminer instructions

This won't use BAMT's startup scripts yet.  Actually I know how to make that work, but if you install CGminer 2.6.x on BAMT 0.5c and tell BAMT to load it, it glitches and stops the mining constantly, and we need to update CGminer to run Litecoin, making BAMT work properly requires a bit of extra massaging, but I will try get that perfected this week.

Update!  See the new Lazy Litecoin section!

For now, this takes BAMT and turns it into a regular linux box, but it does still report somewhat to mgpumon and it is super easy to setup and use.  You just have to start it manually.

Let's pretend this is a fresh bamt 0.5c.

login as user
password live

Code: [Select]
sudo passwd root
[enter your new pass]
[enter your new pass again]
su

Now do some fixer!

Update: I discovered that fix #20 is the fix that causes newer-version CGMiner to go into a restart loop.  Avoid fix #20 like the plague!  But even if you install fix #20, the following script will be unaffected, but it's just knowing this now I can make the bamt scripts to work and the following script will be updated soon enough. 

Code: [Select]
/opt/bamt/fixer
Now enter this:
Click here to check out the new script that updates CGMiner and includes a script to start ltc mining by typing "ltc" anywhere in the OS.

Code: [Select]
cd /tmp
wget http://www.bitcointrading.com/files/bamt/updatecgminerlitecoin.sh
chmod u+x updatecgminerlitecoin.sh
./updatecgminerlitecoin.sh

Which contains: (but don't paste this in because it's already in the previous step, i'm just pasting the scripts' contents)

Code: [Select]
#!/bin/bash
mine stop
cd /usr/share
wget http://ck.kolivas.org/apps/cgminer/2.6/cgminer-2.6.1.tar.bz2
tar xvfj cgminer-2.6.1.tar.bz2
cd cgminer-2.6.1/ADL_SDK
wget http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_4.0.zip
unzip ADL_SDK_4.0.zip
cd include
mv adl* ..
cd /opt
tar xf /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/include/CL /usr/include
ln -s /opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/* /usr/lib/
ldconfig
cd /usr/share/cgminer-2.6.1
./autogen.sh
CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include" LDFLAGS="-L/usr/lib" ./configure --enable-scrypt
make
cd /opt/miners
mkdir cgminer_backup
cd cgminer
cp * ../cgminer_backup/
cd /usr/share/cgminer-2.6.1
cp -r * /opt/miners/cgminer
sync

Now cgminer is ready to mine Litecoin. 

I will update this when I can make BAMT start up cgminer 2.6.x but for now, you can pretty much leave bamt.conf alone for now.  I just noticed that if you enable the cards in bamt.conf (disabled: 0) and put cgminer: 1 on the cards, the # of shares gets passed through to gpumon, even if at the top of your bamt.conf it has cgminer: 0

You are going to need a conf for cgminer now.  The default location for the conf is /root/.cgminer/cgminer.conf, so creating one there is ideal so you don't need to specify it's location.  Apparently nano doesn't like saving to a folder that doesn't exist, so first creating the folder then creating the file works.
Code: [Select]
cd /root
mkdir .cgminer
nano /root/.cgminer/cgminer.conf

Now paste in your conf.  Here is one to get you started, tune it to your specifications.  I'll post confs for different setups in the near future, but this is what I use for 3x 5850s:

Code: [Select]
{
"pools" : [
        {
                "url" : "http://litecoinpool.org:9332/",
                "user" : "maplesyrupghost.user",
                "pass" : "pass"
        },{
                "url" : "http://lc.ozco.in:9332/",
                "user" : "maplesyrupghost.user",
                "pass" : "pass"
        }
]
,
"intensity" : "15,15,15",
"worksize" : "256,256,256",
"kernel" : "scrypt,scrypt,scrypt",
"gpu-engine" : "620-725,620-725,620-725",
"gpu-fan" : "20-85,20-85,20-85",
"gpu-memclock" : "1000,1000,1000",
"gpu-memdiff" : "0,0,0",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"lookup-gap" : "2,2,2",
"shaders" : "1440,1440,1440",
"temp-cutoff" : "95,95,95",
"temp-overheat" : "85,85,85",
"temp-target" : "82,82,82",
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "1",
"log" : "5",
"queue" : "1",
"retry-pause" : "5",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"load-balance" : true,
"kernel-path" : "/usr/local/bin"
}

Then hit CTRL+o to save.

Increase the intensity and see if you can get some more power out of it, but I think 15 you will find yourself pretty close to your maximum.  Also some people report higher hashrates when their GPUs are really highly clocked, but absolute bone stock GPUs will definitely maximize your speeds.  Litecoin is about memory, not GPU clock.

Now that the conf is in place, you can start the mining.  A little advice on screen, you can just type "screen" and it starts a screen session, or if you use the -q flag it starts it quietly (doesn't show the message screen), so "screen -q" is key.  Then in screen, you can type "exit" to leave screen or do CTRL+a,d (hold CTRL, press "a", let go of CTRL, press "d" and it will take that screen session and detach from it, so you can start cgminer and then close your window without the mining stopping. 

So when you boot up your rig and it's just sitting there waiting idle, you can paste in this:

Code: [Select]
cd /opt/miners/cgminer
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
screen -q
./cgminer --auto-fan --auto-gpu

Now that we have it running.

Press CTRL+a,d to detach from your screen.

If you want to reattach, press screen -r, if there are more than one screens running, you need to specify the PID.  To find the PID, enter:

Code: [Select]
screen -ls
This shows you if there are any screens running, if you see one like 13091.cgminer, then type:

Code: [Select]
screen -r 13091
And it will tell you what cgminer is up to.

Type 'gpumon' and you should see it start mining.  If the api fails to connect to BAMT, sometimes it takes a minute for it to show up. 

Refer to the official cgminer scrypt readme for more tuning advice.



Update For The Lazy!
I'm too lazy to make BAMT work the way we want, but I can make our lives easier.

We will make a Litecoin mining startup script and alias it.

Edit Jan 5th 2013: I did some work and made this even lazier.  I'm new to linux (1 year) but damn, I love how simple and effective bash scripting is.  This is the most lazy I could make it:

Do this:

Code: [Select]
wget http://www.bitcointrading.com/files/bamt/lazy_litecoin_lazier.sh
chmod u+x lazy_litecoin_lazier.sh
./lazy_litecoin_lazier.sh

That will grab this fancy new script and execute it.  It will set up the aliases and put the mining starter in the directories.  Now, if you want to customize the script instead of running it at defaults, simply wget it and then nano edit it and make the changes you desire.  I made the script have all the variables at the top so you can easily change them without even looking at the rest of the code. 

This is the contents of the script (but don't execute this if you already ran it in the previous step!):

Code: [Select]
#!/bin/bash
#
# BitcoinTrading.com Lazy Litecoin Script January 5th 2013 Edition
#
# If you want to change the paths of the scripts, you can do so by changing
# the variables at the start, as well as your cgminer options and directory.
#
# Yo dawg, I hear you like scripts so we put a script in your script
# so you can script while you script!
#
# You can just leave this at default settings, it'll work great, but I made it
# easier to customize.
#

echo '
 *****  Starting the BitcoinTrading.com Lazy Litecoin script!  *****'

scriptfolder="/opt/bamt/"
script1="start_mining_litecoin.sh"
script2="litecoin_starter.sh"
cgmineropts="--auto-fan --auto-gpu --api-listen"
cgminerdir="/opt/miners/cgminer"

echo '#!/bin/bash' >> $scriptfolder$script1
echo '# BitcoinTrading.com Lazy Litecoin Start Script' >> $scriptfolder$script1
echo "cd $cgminerdir" >> $scriptfolder$script1
echo 'export DISPLAY=:0' >> $scriptfolder$script1
echo 'export GPU_USE_SYNC_OBJECTS=1' >> $scriptfolder$script1
echo 'export GPU_MAX_ALLOC_PERCENT=100' >> $scriptfolder$script1
echo "./cgminer $cgmineropts" >> $scriptfolder$script1
chmod u+x $scriptfolder$script1
echo '#!/bin/bash' >> $scriptfolder$script2
echo '# BitcoinTrading.com Lazy Litecoin Start Script' >> $scriptfolder$script2
echo 'echo "Litecoin screen about to start."' >> $scriptfolder$script2
echo "screen -dmS LTCScreen $scriptfolder$script1" >> $scriptfolder$script2
echo 'echo "Litecoin screen session started."' >> $scriptfolder$script2
chmod u+x $scriptfolder$script2
# Put our aliases in bashrc...
echo "# Start of lines added by BitcoinTrading.com Lazy Litecoin Script:" >> /root/.bashrc
echo "alias ltc='cd $scriptfolder;./$script2'" >> /root/.bashrc
echo "alias noltc='killall screen'" >> /root/.bashrc
echo "# End of lines." >> /root/.bashrc

echo '
                    *****  All done!  Yay!  *****
'

Isn't that pretty?  I am going to throw a few more comments in there but right now it does exactly what it did before except instead of you doing 10 steps to make your life easier, you now only have to do 1 step.  You will need to restart your computer for the aliases to take effect.


Update!  I conjoined the previous 'updatecgminerlitecoin' script with the lazy Litecoin script into one easy script!

To install it all at once:

Code: [Select]
cd /tmp
wget http://www.bitcointrading.com/files/bamt/updatecgminerlitecoinandlazy.sh
chmod u+x updatecgminerlitecoinandlazy.sh
./updatecgminerlitecoinandlazy.sh


And it will do everything.


Now when you type 'ltc' anywhere, it will start the starter in a screen session silently.  You'll hear your cards spin up, but it's all you need to know.  That will also alias 'noltc' to kill all screens.  Not pretty but it works.  You will have to restart the system for it to take effect.

Want to see how things are doing?

screen -r would work, if there are multiple screens, use:

Code: [Select]
screen -r LTCScreen
and of course, use CTRL+a,d to exit that screen. 

If there are multiple LTCScreens...  Kill them all!!!  noltc and start over.  It works pretty responsively, actually I find it works better than bamt taking care of things.

You could also have multiple cgminers installed in different directories, say if you wanted a different setup for mining solo, you could alias that differently with a separate command.

Okay I think I have solved both the init problems and the system dying after awhie.

I don't know exactly why, but sometimes my cgminer dies.  On all my systems.  Like it just straight up shuts off, then the system is sitting idle for who knows how long.  And with Litecoin difficulty so low, and my equipment so crazy, a day of downtime hurts!

So here's what I have come up with.

1.) A script to check if cgminer is working every X minutes, if it is, exit, if not, start cgminer.
2.) A script to restart cgminer every Y minutes, in case it is running but not functional.

Okay, so, assuming you have installed the Lazy stuff above, you have 2 scripts there, litecoin_starter.sh and start_mining_litecoin.sh (I should REALLY get some different names for those but meh, seems to do the trick!).

So litecoin_starter.sh starts start_mining_litecoin.sh (cgminer) in a screen silently.  So we need something to start litecoin_starter.sh for us. 

So we have a third script.

I'll integrate this into the lazy thing later, right now you have to create  it.

Make a new file:

Code: [Select]
cd /opt/bamt/

nano iscgminerrunning.sh

Paste in:

Code: [Select]
#!/bin/bash
if pidof -x cgminer > /dev/null
then
    echo "cgminer already running."
    exit 1
fi
screen -dmS LTCScreen /opt/bamt/litecoin_starter.sh

(this is assuming you kept your paths at the default settings in my above script)

Then chmod it:

Code: [Select]
chmod u+x iscgminerrunning.sh
Now when you run that script, it will say cgminer is running or it will start cgminer.  Pretty snazzy.

Make sure you are logged in as root, then execute:

Code: [Select]
crontab -e
Then it brings up the cron editor, paste in this line after all the comments:

Code: [Select]
*/2 * * * * /opt/bamt/iscgminerrunning.sh >/dev/null 2>&1
This will check every 2 minutes (change the '/2' to whatever you want for minutes) if cgminer is running. 

The >/dev/null part of it will write the echoing to nowhere, so you don't end up with 10 million lines of errors in unsent mail queue!

Now what about restarting cgminer once in awhile?

I think we can just use our 'killall screen' command from earlier, since it is a built-in function.

So edit the crontab again (crontab -e) and paste in (at the end):

Code: [Select]
* */6 * * * killall screen
Will kill cgminer every 6 hours.  Then your other cron will restart it automatically.  You could use:

* * */2 * * killall screen # kill it every 2 days
* * */1 * * killall screen # kill it every day

Pretty sure that would work out okay.  Will let you know!  :)

Last update: Feb 2nd, '13
« Last Edit: February 02, 2013, 04:19:14 pm by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Re: BAMT version 0.5c - download phillips' 7970 edition
« Reply #9 on: August 30, 2012, 12:28:44 pm »
Hey so bitcointalk user phillips has integrated the 7900 drivers into BAMT, so you can just format the USB and away you go!

Thanks dude!

We're being bombarded with traffic!  I set this other server up for files:
Yeah that server was short-lived, it was cancelled from another project and was awaiting disconnection, but i think we got good couple weeks out of it.  I'll set something better up soon.  For now, use the link below!

http://www.bitcointrading.com/files/bamt_v0.5phillips7900.zip

(link fixed! sorry!)

He originally released it in a torrent, if you want to save us bandwidth and support him, download his torrent and SEED it!

https://ca.isohunt.com/torrent_details/402809617/BAMT+for+7970?tab=summary
« Last Edit: October 22, 2012, 02:04:54 am by maplesyrupghost »
BitcoinTrading.com founder




Offline maplesyrupghost

Re: BAMT version 0.6 Beta!
« Reply #10 on: November 30, 2012, 01:38:27 pm »
Hey I got a hold of the BAMT 0.6 beta!  I haven't tested this at all, just sharing it here. 

http://www.bitcointrading.com/files/bamt_v0.6_beta_test02.img

http://files2.bitcointrading.com/bamt_v0.6_beta_test02.img

I shouldn't have put 0.5 in the thread's title, if 0.6 becomes finalized I'm going to have to rename it.  :D
« Last Edit: March 31, 2013, 02:34:40 am by maplesyrupghost »
BitcoinTrading.com founder




Offline jhdscript

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 1
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
    • CoinPixel: Bitcoin and Litecoin casino
Hello, i have a problem. I set a static ip every reboot I loss it.

Another problem, i use 3 5970  cards and sometimes gpus stop for few seconds and restart. Someone can help ?

Someone can send me great bamt.conf for 3 5970 maybe ?

Best regards and thanx in advance

Offline steamboat

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 1
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Hello Maplesyrupghost,

Thanks for the great write-up. Question. Do I need to do any of the steps prior to the lazy patch for litecoin, or just run it on top of a fresh bamt install? I'm running 5x 695(7)0s, the rig had been a bamt btc miner but I'm converting it to litecoin for the time being, and don't know which dependencies are needed.

Thanks in advance and have a wonderful day,

Steamboat

Offline tonyadams

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 2
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Hello,
I have this problem bamt v 0.4 boots normal but 0.5c :
SYSLINUX 4.02 debia-20101014CHS Copyright (C) 1994-2010 H. Peter Anvin et al
ERROR: No configuration file found
No DEFAULT or UI configuration directive found!
boot:


I read around and looks like this will fix the problem :

" i looked through the image.  the original "0.4" image used a fat16 partition, but the 0.5 uses a fat32.  this was due to a request from someone who thought it would help their motherboard boot.  as far as i know, it didn't make any difference.

maybe some motherboards can't deal with fat32?  i don't know, but it is the only difference I can find between the two.  i'll upload an image using fat16 later if someone wants to try it."

"  fat16 image works and boots as expected "

 The website this image was uploaded to, is not working anymore. Any chance some one have a working link to 0.5c image with fat16 file system? Please help.




Offline maplesyrupghost

Hello,
I have this problem bamt v 0.4 boots normal but 0.5c :
SYSLINUX 4.02 debia-20101014CHS Copyright (C) 1994-2010 H. Peter Anvin et al
ERROR: No configuration file found
No DEFAULT or UI configuration directive found!
boot:


I read around and looks like this will fix the problem :

" i looked through the image.  the original "0.4" image used a fat16 partition, but the 0.5 uses a fat32.  this was due to a request from someone who thought it would help their motherboard boot.  as far as i know, it didn't make any difference.

maybe some motherboards can't deal with fat32?  i don't know, but it is the only difference I can find between the two.  i'll upload an image using fat16 later if someone wants to try it."

"  fat16 image works and boots as expected "

 The website this image was uploaded to, is not working anymore. Any chance some one have a working link to 0.5c image with fat16 file system? Please help.




What kind of motherboard do you have?
BitcoinTrading.com founder