From 3352f847704718c43f346b781725e4ff8b2112de Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 18 Jun 2011 17:06:11 +0200 Subject: mining/: added all mining scripts and configs mining/Makefile: format - how to format the usb stick (or hard drive) install - installs all necessary components, writes ati_license, copies files in home dir configure - how to configure the miner mining/user/*: files to be dumped in the miners home directory --- mining/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mining/Makefile (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile new file mode 100644 index 00000000..c673ee3e --- /dev/null +++ b/mining/Makefile @@ -0,0 +1,11 @@ +.PHONY: all format install +select-target: + @echo "You are made of stupid!" +format: + cat README +install: + echo '#!/bin/bash' > /usr/bin/ati_license + echo 'sudo tar xvf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /' >> /usr/bin/ati_license + cp -r user /home +configure: + cat CONFIGURE -- cgit v1.2.3 From 9adf9b9c122dbf0dc81c82d2421c8b147d41dc21 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Wed, 22 Jun 2011 00:15:03 +0200 Subject: Makefile: does more of the right things now Makefile will patch quirks from the live system: 1. /etc/init.d/live-boot 2. ati_license Makefile will install and configure lm-sensors --- mining/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index c673ee3e..0fab7b1f 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -1,11 +1,18 @@ .PHONY: all format install select-target: @echo "You are made of stupid!" + echo "look here" + @cat Makefile format: cat README install: + apt-get install --yes lm-sensors echo '#!/bin/bash' > /usr/bin/ati_license + echo '#!/bin/sh' > /etc/init.d/live-boot + echo 'wall "going down"' >> /etc/init.d/live-boot + chmod 755 /etc/init.d/live-boot echo 'sudo tar xvf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /' >> /usr/bin/ati_license cp -r user /home configure: - cat CONFIGURE + sensors-detect + @cat CONFIGURE -- cgit v1.2.3 From efee2013940fa4c57ec3b1ae046e64036864cc46 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 23 Jun 2011 01:10:24 +0200 Subject: updated mining CONFIGURE, more infos about what to do to use the mining Makefile: installs tmux --- mining/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index c673ee3e..b8ed2f6c 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -4,6 +4,7 @@ select-target: format: cat README install: + sudo apt-get install tmux echo '#!/bin/bash' > /usr/bin/ati_license echo 'sudo tar xvf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /' >> /usr/bin/ati_license cp -r user /home -- cgit v1.2.3 From acd206da56f6ebfa123745cf6ab2f429d064363b Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Thu, 30 Jun 2011 22:55:26 +0200 Subject: added script to check btc guild miner status seems to be working --- mining/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index 0fab7b1f..11058fb1 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -1,11 +1,11 @@ -.PHONY: all format install +.PHONY: all format install configure select-target: @echo "You are made of stupid!" echo "look here" @cat Makefile format: cat README -install: +install: configure apt-get install --yes lm-sensors echo '#!/bin/bash' > /usr/bin/ati_license echo '#!/bin/sh' > /etc/init.d/live-boot -- cgit v1.2.3 From e03dc47d843f4ee351f59528bed7d8d581f827f7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jul 2011 17:24:48 +0200 Subject: mining: added archlinux cruise control mining/Makefile: added archlinux cruise control (auto installer) which always does the right thing. loosely after http://rubyists.github.com/2011/06/08/how-to-build-a-namecoin-or-bitcoin-miner-in98-easy-steps.html mining/{user/,}/bin:renamed mining/bin/newkey.sh: add policy Xorg keygen --- mining/Makefile | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index b867d469..21db5091 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -5,7 +5,7 @@ select-target: @cat Makefile format: cat README -install: configure +fix-linucCoin: configure apt-get install --yes lm-sensors tmux echo '#!/bin/bash' > /usr/bin/ati_license echo '#!/bin/sh' > /etc/init.d/live-boot @@ -16,3 +16,41 @@ install: configure configure: sensors-detect @cat CONFIGURE +archlinux: + @echo "!! ARCHLINUX Cruise Control Mining installer !!" + @echo "** adding main network profile" + cp /etc/network.d/examples/ethernet-dhcp /etc/network.d/main + echo 'POST_UP="sed -i \"1i nameserver 8.8.8.8\" /etc/resolv.conf"' >> /etc/network.d/main + @echo "** adding worker account" + grep -q worker /etc/passwd || adduser worker + @echo "** adding archlinuxfr to pacman.conf" + grep -q archlinuxfr /etc/pacman.conf || echo "[archlinuxfr]" >> /etc/pacman.conf && echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf + + pacman --needed --noconfirm -Syu rsync git openssh yajl sudo tmux lm_sensors vim yaourt kernel26-headers + @echo "** installing tinc" + yaourt -S tinc + sed -i -e 's/.*\%wheel.*/%wheel ALL=(ALL) NOPASSWD: ALL/1' /etc/sudoers + @echo "** Installing ATI drivers" + [ "`yaourt -Q catalyst-utils`" ] || yaourt -S --noconfirm catalyst-utils + [ "`yaourt -Q catalyst-hook`" ] || yaourt -S --noconfirm catalyst-hook + [ "`yaourt -Q amdstream`" ] || yaourt -S --noconfirm amdstream + @echo "** installing X" + pacman --needed -S --noconfirm -f xorg-server xorg-apps xorg-appres xorg-xinit xautolock xlockmore xorg-fonts xorg-xhost xorg-xauth xterm rxvt-unicode xorg-twm + @echo "** copying bin folder" + cp -r bin /home/worker + @echo "** creating new .Xauthority for worker" + sudo -u worker /home/worker/bin/newkey.sh + @echo "configuring X" + @echo "!! ACTION REQUIRED, write down the first number of your ATI Graphics Adapter." + @echo "!! i will open /etc/X11/xorg.conf for you, change the BusID of every Device to the numbers you see here" + @echo "!!press enter to continue" + lspci|grep VGA + read + aticonfig --initial=dual-head + vim /etc/X11/xorg.conf + @echo "** creating xinitrc and start x" + echo 'setxkbmap -option terminate:ctrl_alt_bksp' > /home/worker/.xinitrc + echo 'xautolock -corners +-+- -locker "xlock -mode blank"&' >> /home/worker/.xinitrc + echo 'xterm &' >> /home/worker/.xinitrc + echo 'exec awesome' >> /home/worker/.xinitrc + @echo '!! start x with `xinit -- -auth ~/.Xauthority`' -- cgit v1.2.3 From 12237bd4762086a14b526771c5fc67752b22d7eb Mon Sep 17 00:00:00 2001 From: Chinaman Date: Fri, 8 Jul 2011 18:02:29 +0200 Subject: mining/bin/archlinux-cruise-control added script is pulled out from the original Makefile. added TODO file(because every project needs one --- mining/Makefile | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index 21db5091..f8362cda 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -17,40 +17,4 @@ configure: sensors-detect @cat CONFIGURE archlinux: - @echo "!! ARCHLINUX Cruise Control Mining installer !!" - @echo "** adding main network profile" - cp /etc/network.d/examples/ethernet-dhcp /etc/network.d/main - echo 'POST_UP="sed -i \"1i nameserver 8.8.8.8\" /etc/resolv.conf"' >> /etc/network.d/main - @echo "** adding worker account" - grep -q worker /etc/passwd || adduser worker - @echo "** adding archlinuxfr to pacman.conf" - grep -q archlinuxfr /etc/pacman.conf || echo "[archlinuxfr]" >> /etc/pacman.conf && echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf - - pacman --needed --noconfirm -Syu rsync git openssh yajl sudo tmux lm_sensors vim yaourt kernel26-headers - @echo "** installing tinc" - yaourt -S tinc - sed -i -e 's/.*\%wheel.*/%wheel ALL=(ALL) NOPASSWD: ALL/1' /etc/sudoers - @echo "** Installing ATI drivers" - [ "`yaourt -Q catalyst-utils`" ] || yaourt -S --noconfirm catalyst-utils - [ "`yaourt -Q catalyst-hook`" ] || yaourt -S --noconfirm catalyst-hook - [ "`yaourt -Q amdstream`" ] || yaourt -S --noconfirm amdstream - @echo "** installing X" - pacman --needed -S --noconfirm -f xorg-server xorg-apps xorg-appres xorg-xinit xautolock xlockmore xorg-fonts xorg-xhost xorg-xauth xterm rxvt-unicode xorg-twm - @echo "** copying bin folder" - cp -r bin /home/worker - @echo "** creating new .Xauthority for worker" - sudo -u worker /home/worker/bin/newkey.sh - @echo "configuring X" - @echo "!! ACTION REQUIRED, write down the first number of your ATI Graphics Adapter." - @echo "!! i will open /etc/X11/xorg.conf for you, change the BusID of every Device to the numbers you see here" - @echo "!!press enter to continue" - lspci|grep VGA - read - aticonfig --initial=dual-head - vim /etc/X11/xorg.conf - @echo "** creating xinitrc and start x" - echo 'setxkbmap -option terminate:ctrl_alt_bksp' > /home/worker/.xinitrc - echo 'xautolock -corners +-+- -locker "xlock -mode blank"&' >> /home/worker/.xinitrc - echo 'xterm &' >> /home/worker/.xinitrc - echo 'exec awesome' >> /home/worker/.xinitrc - @echo '!! start x with `xinit -- -auth ~/.Xauthority`' + bin/archlinux-cruise-control -- cgit v1.2.3 From d68cc2cacb434a7d7605c4a50671f4180d1afaba Mon Sep 17 00:00:00 2001 From: user Date: Sat, 9 Jul 2011 07:11:12 +0000 Subject: mining Makefile: enable auto-configure --- mining/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mining/Makefile') diff --git a/mining/Makefile b/mining/Makefile index f8362cda..8701920f 100644 --- a/mining/Makefile +++ b/mining/Makefile @@ -14,7 +14,7 @@ fix-linucCoin: configure echo 'sudo tar xvf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /' >> /usr/bin/ati_license cp -r user /home configure: - sensors-detect + yes '' | sensors-detect @cat CONFIGURE archlinux: bin/archlinux-cruise-control -- cgit v1.2.3