Bitcoin Forum
December 03, 2016, 10:02:39 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
  Print  
Author Topic: LinuxCoin A lightweight Debian based OS with everything ready to go.  (Read 271294 times)
Jonathan Ryan Owens
Donator
Sr. Member
*
Offline Offline

Activity: 392



View Profile WWW
July 21, 2011, 07:43:12 PM
 #981


STEP-BY-STEP HEADLESS LINUXCOIN
A good step-by-step guide for a noob, especially to someone who've tried to figure this magic and as a result, got lost in the sea of inaccurate and incomplete guides, almost the way I did…

INTRODUCTION

After going through number of "How-To's" and "Guides" I've found on the Internet, then reading trough hundred’s of forum pages, I found myself less wiser, tremendously confused, and far from being able to put together this seemingly simple Linux system – LinuxCoin. After a week of sleepless nights, rerading trough cryptic notes of the other (they claimed those to be complete guides), I've finally got it working.

That’s when I decided to compile my own guide, targeting the noobs (like me) with hope that this will safe someone the head-scratching I had to do.

Please note, this guide is based on a certain release of LinuxCoin and most definitely will not be accurate if used with any consecutive releases.

Thanks and gratitude to saving someone time and efforts can be expressed by sending fractions of BTC to 18KusJBxwh4WyV9t72q1WFppwoVxTs2BeB

REQUIREMENTS

Before attempting to build a BTC mining machine, you must ensure that you understand what is required:

1. Account with a mining pool
2. Create miners (a.k.a. workers) – one miner per GPU
3. 64-bit computer system - CPU, MOBO, RAM, PSU, CASE
4. ATI 4xxx - 6xxx series graphics card(s) – depending on your MOBO, CASE and PSU
5. 4GB USB flash-drive
6. unetbootin-win-549 - download it here
7. linuxcoin-v0.2.1b.iso - download it here
8. live-rw persistent file (2GB) - download it here

CREATE LIVE-ISO ON A USB FLASH-DRIVE

1.   Assemble the 64-BIT computer system, install the cheapest 64-bit CPU you can buy in it, install 2 x 1GB memory sticks (again, cheapest you can find), install the ATI card(s), don't forget to connect the PCI-e power cables, power-it on, set the BIOS to boot from USB and the power option to "last state”

2.   Quick format the USB flash-drive with FAT32, now is the time to label it something meaningful, i.e. LinuxCoin

3.   Using unetbootin, install the live-iso onto the formatted flash-drive, set 128MB for the Ubuntu reboot-files (only if you wondered...)

4.   When finished, don't reboot your PC as unetbootin asks you, instead remove the USB flash-drive, re-insert it, then copy the live-rw persistent file into the root of the USB flash-drive

5.   Now you have the LinuxCoin live-iso ready on the USB flash-drive - it comes pre-loaded with

a.   Latest ATI drivers
b.   Latest ATI SDK
c.   Aticonfig
d.   AMDOverdriveCTRL
e.   Python
f.   Poclbm
g.   Phoenix

All these components pre-installed will make your life so-much-easier and allow you to dive into configuring the system straight away.

You can boot the computer using the freshly loaded USB flash-drive and see if everything loads OK. Don't worry about the error messages you see during the boot - I guess the author of LinuxCoin has had too much on his plate lately to worry about perfection - the truth is this distro works as it is and at the end of the day, it does the job it is designed to do.

The only thing left now is to configure the system to default boot into persistent mode, accept the ATI SDK license (once-off), set the AMDOverdriveCTRL application to clock each card at the desired parameters, write the script needed to start the miner(s) with one command, and set it to start on boot - quite a list of items to do, but the end result justifies it - you will end up with a "headless" LinuxCoin that you can leave unattended.

EDIT CONFIGS AND CREATE .SH FILES

1.   Boot from the newly created USB flash-drive

2.   Select "System Tools" > "ATI SDK License", read it (I mean scroll down until the end), accept it, confirm the registration.

3.   The next few steps will be done through the Terminal window - select "Accessories" > "Root Terminal

4.   Now we will change the syslinux.cfg file so to boot by default into LinuxCoin persistent without the need to select any menu item, aka "headless"

5.   cd /live/image

6.   nano syslinux.cfg

7.   Change the menu title (third line) to something more meaningful like "--- LinuxCoin 0.2.1b ---", replace the section under the "label unetbootdefault" with the one you will find under "label ubnentry2" and then delete the remainder sections - don't worry, you will not need them in the future anyway (you can leave perhaps the memory test menu item…)

Code:
default menu.c32
prompt 0
menu title --- LinuxCoin 0.2.1b ---
timeout 4

label unetbootindefault
menu label --> LinuxCoin (persistent)
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live config quiet splash persistent rw vga=791 persistent

label ubnentry0
menu label --> Memory Stress Test (loop)
kernel /isolinux/memtest.bin
append initrd=/ubninit - persistent

8.   "Ctrl+x", "y", "Enter"

9.   Now we will determine how many active cards (and their IDs) there are in this system before attempting to create the miner's shell script

10.   AMDOverdriveCtrl -i0

11.   Scroll-up and see how many adapters are "active" and note their numbers (i.e. 0,4,8,12) - you will need to insert those numbers info the appropriate "AMDOverdriveCtrl" lines (i.e. i0, i4, i8, i12) in the next script.

12.   Now we will create a script that will overclock the cards and start all your miners with a single shell command

13.   sudo touch /usr/local/bin/startminers.sh

14.   sudo chmod 755 /usr/local/bin/startminers.sh

15.   sudo nano /usr/local/bin/startminers.sh

Code:
#!/bin/bash

sudo aticonfig --od-enable

sudo AMDOverdriveCtrl -i0 &
sudo AMDOverdriveCtrl -i4 &
sudo AMDOverdriveCtrl -i8 &
sudo AMDOverdriveCtrl -i12 &

cd /opt/miners/phoenix/

./phoenix.py -u http://user1:pass1@bitcoins.lc:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user2:pass2@bitcoins.lc:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user3:pass3@bitcoins.lc:8080 -k poclbm DEVICE=2 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user4:pass4@bitcoins.lc:8080 -k poclbm DEVICE=3 BFI_INT VECTORS AGGRESSION=5 &

16.   "Ctrl+x", "y", "Enter"

17.   Now we will create an auto-start script, one that will start the startminers.sh script at start

18.   sudo touch /home/user/auto.sh

19.   sudo chmod 755 /home/user/auto.sh

20.   sudo nano /home/user/auto.sh

Code:
#!/bin/bash

xhost +
echo $DISPLAY > /home/user/.display
lxterminal --command "/usr/local/bin/startminers.sh"

21.   "Ctrl+x", "y", "Enter"

22.   Now we will configure the system to start that "auto.sh" script when the desktop loads

23.   cd /home/user/.config

24.   mkdir autostart

25.   sudo chmod 755 /home/user/.config/autostart

26.   sudo nano /home/user/.config/autostart/auto.desktop

Code:
[Desktop Entry]
Encoding=UTF-8
Name=coin
Exec=lxterminal --command "/home/user/auto.sh"
Terminal=true

27.   "Ctrl+x", "y", "Enter"

28.   Now we are ready to tune the Overclocking parameters individually for each card

29.   cd /usr/local/bin

30.   startminers.sh

31.   A terminal session will open and (in this case) four instances of the AMDOverdriveCtrl will open on the desktop - just drag them separate so you can work in each of them.

32.   Select "Overdrive", slide the parameter selectors to your liking (in each Low-Med-High section), when ready, press "Set" and "Save defaults", then move to the next card's AMDOverdriveCtrl instance

33.   With all cards set, the machine is ready - fully configured - if you followed this document to the letter and did not made too many spelling or syntax errors in the shell scripts, the thing should work 100%

34.   Click on the On/Off red button in the bottom-right corner, then select reboot.

35.   Wait for the message that says you need to remove the USB flash-drive (DON'T DO THAT!), then just press "Enter"

That's it - hopefully the machine will boot nicely without requiring any interaction and go straight into mining using the overclocked settings, earning you some BTCs in the process.

Spend them wisely or keep them for a better day – that might just be the best investment you’ve ever made!

If you have any comments, you can find me at the forum.bitcoing.org - I am gopher




I wish I'd had this guide two weeks ago. Still, good job - and it's a pretty thorough guide for the basics.

I would like to add that, once you have configured your persistent installation how you like it, that it's a REALLY GOOD IDEA to copy the live-rw file BACK onto your windows / other machine for safe keeping. If you run multiple rigs (like I do), it means that you can create the linuxcoin persistent USB, copy over your customized live-rw file, boot your new machine up and make a few simple edits (device IDs, worker info, etc) and be up and running in 5 minutes.

1480802559
Hero Member
*
Offline Offline

Posts: 1480802559

View Profile Personal Message (Offline)

Ignore
1480802559
Reply with quote  #2

1480802559
Report to moderator
1480802559
Hero Member
*
Offline Offline

Posts: 1480802559

View Profile Personal Message (Offline)

Ignore
1480802559
Reply with quote  #2

1480802559
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480802559
Hero Member
*
Offline Offline

Posts: 1480802559

View Profile Personal Message (Offline)

Ignore
1480802559
Reply with quote  #2

1480802559
Report to moderator
1480802559
Hero Member
*
Offline Offline

Posts: 1480802559

View Profile Personal Message (Offline)

Ignore
1480802559
Reply with quote  #2

1480802559
Report to moderator
Jonathan Ryan Owens
Donator
Sr. Member
*
Offline Offline

Activity: 392



View Profile WWW
July 21, 2011, 07:45:05 PM
 #982

Running Linuxcoin 2.1.b..


Smalleyster
Member
**
Offline Offline

Activity: 70


I yam what I yam. - Popeye


View Profile WWW
July 21, 2011, 09:38:45 PM
 #983

STEP-BY-STEP HEADLESS LINUXCOIN

That was brilliant!

Thank you!

Feel like investing in a Miner?:
http://bitcointalk.org/index.php?topic=30044.msg377773#msg377773
A soup to nuts newbee system for a secure, portable USB wallet (free instructions):
NoobHowTo: http://bitcointalk.org/index.php?topic=27088.msg341387#msg341387
TripHammer
Jr. Member
*
Offline Offline

Activity: 42


View Profile
July 21, 2011, 10:05:11 PM
 #984

Indeed brilliant, I have added it to the WiKi though I think I created a few garbage pages trying to work out the catagory thing, and I have not been through and fixed all the formatting yet.

No credit to me, all credit to gopher!


Trip

Just in case Smiley 13AP8mCpruBQVtVWbQgYGSnBgGxe2g8ERe
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 756


View Profile
July 21, 2011, 11:07:10 PM
 #985

@gopher  very nice - would have saved me days of work a few weeks ago. Since I use almost the exact same configuration but remotely, let me just add you can start each of your miners in a screen session that you can attach to remotely by adding
Code:
screen -d -m -S <screen name> <miner start>

so your script would look something like this:
Code:
#!/bin/bash

sudo aticonfig --od-enable

sudo AMDOverdriveCtrl -i0 &
sudo AMDOverdriveCtrl -i4 &
sudo AMDOverdriveCtrl -i8 &
sudo AMDOverdriveCtrl -i12 &

cd /opt/miners/phoenix/

screen -d -m -S one ./phoenix.py -u http://user1:pass1@bitcoins.lc:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

screen -d -m -S two ./phoenix.py -u http:// user2:pass2@bitcoins.lc:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

Then you can ssh into the machine and use screen -r <screen name> to view and "Ctrl+a","d" to detach.
I don't know how to do a web dashboard so this is my simple way of viewing my miner windows remotely.

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Jonathan Ryan Owens
Donator
Sr. Member
*
Offline Offline

Activity: 392



View Profile WWW
July 22, 2011, 04:48:12 AM
 #986

@gopher  very nice - would have saved me days of work a few weeks ago. Since I use almost the exact same configuration but remotely, let me just add you can start each of your miners in a screen session that you can attach to remotely by adding
Code:
screen -d -m -S <screen name> <miner start>

so your script would look something like this:
Code:
#!/bin/bash

sudo aticonfig --od-enable

sudo AMDOverdriveCtrl -i0 &
sudo AMDOverdriveCtrl -i4 &
sudo AMDOverdriveCtrl -i8 &
sudo AMDOverdriveCtrl -i12 &

cd /opt/miners/phoenix/

screen -d -m -S one ./phoenix.py -u http://user1:pass1@bitcoins.lc:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

screen -d -m -S two ./phoenix.py -u http:// user2:pass2@bitcoins.lc:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

Then you can ssh into the machine and use screen -r <screen name> to view and "Ctrl+a","d" to detach.
I don't know how to do a web dashboard so this is my simple way of viewing my miner windows remotely.

+1

drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 22, 2011, 08:50:02 AM
 #987

Excellent work guys !!! I'm working on patching up aufs so that we can run with linux 3.0 !! It's compiling now so fingers crossed it compiles OK and aufs work lol.
Smalleyster
Member
**
Offline Offline

Activity: 70


I yam what I yam. - Popeye


View Profile WWW
July 22, 2011, 08:56:21 AM
 #988

Excellent work guys !!! I'm working on patching up aufs so that we can run with linux 3.0 !! It's compiling now so fingers crossed it compiles OK and aufs work lol.

Fingers, toes and eyes crossed!

Feel like investing in a Miner?:
http://bitcointalk.org/index.php?topic=30044.msg377773#msg377773
A soup to nuts newbee system for a secure, portable USB wallet (free instructions):
NoobHowTo: http://bitcointalk.org/index.php?topic=27088.msg341387#msg341387
netrin
Sr. Member
****
Offline Offline

Activity: 322


FirstBits: 168Bc


View Profile
July 22, 2011, 12:46:55 PM
 #989

Three promising locked down Live Linux projects:

http://www.spi.dod.mil/lipose.htm (US Dept. of Defense)
http://tails.boum.org/index.en.html (Tails)
http://dee.su/liberte (Liberte Linux)

Greenlandic tupilak. Hand carved, traditional cursed bone figures. Sorry, polar bear, walrus and human remains not available for export.
drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 22, 2011, 04:11:29 PM
 #990

Three promising locked down Live Linux projects:

http://www.spi.dod.mil/lipose.htm (US Dept. of Defense)
http://tails.boum.org/index.en.html (Tails)
http://dee.su/liberte (Liberte Linux)

Your on to something there !! the 3.0 kernel was nothing special and didn't really make any performance increases so I'm going to revert back to my original one and add grsecurity and PaX Wink
gopher
Full Member
***
Offline Offline

Activity: 135


View Profile
July 22, 2011, 04:28:03 PM
 #991

Indeed brilliant, I have added it to the WiKi though I think I created a few garbage pages trying to work out the catagory thing, and I have not been through and fixed all the formatting yet.

No credit to me, all credit to gopher!


Trip

Trip, thanks for putting it on the wiki - great work, I could do not have done the formatting better!

drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 22, 2011, 06:52:55 PM
 #992

Great news !! the grsecurity patch was a success after a bit of patching here and there Wink So we are rocking Debian hardened linux-2.6.29 with grsecurity, PaX, ck optimizations & my own little pepper Cheesy !! Also included is tor / privoxy / firestarter !!

I need people to test this out ? I'm looking for five people with 0 to lots of experience that can trial for a few days and report back to me with your likes / dislikes and suggestions. Also looking for bugs. If you would like to trial linuxcoin please send me a PM sharpish and I'll be giving out the copy of the ISO tomorrow.

PS we just hit 1000 replies Cheesy

Just built & tested a rig for a friend. here's the figures Cheesy I'd say were pretty good.  ? I know its a bit overkill on the hardware bit he's planning to use it as a gaming machine if he ever gets bored of mining Cheesy

Asus Crosshair IV Formula AMD 890FX (Socket AM3/AM3+) DDR3 Motherboard
Kingston HyperX Genesis Grey 8GB (2x4GB) DDR3 PC3-12800C9 1600MHz Dual Channel Kit
Corsair Flash Voyager Mini 8GB USB2.0 Flash Drive
4 x Sapphire ATI Radeon HD 5850 Extreme 1024MB GDDR5 PCI-Express Graphics Card **OcUK Exclusive**
OCZ ZX Series 1000W '80 Plus Gold' Modular Power Supply
AMD Phenom II X4 Quad Core 850 "95W Edition" 3.30GHz (Socket AM3

hashrate: 1500MH/s
clocks: 910,300
miner: Phoenix svn BFI_INT VECTORS WORKSIZE=128 AGGRESSION=11 FASTLOOPS=false
power: 675w peak 650w average 2.90A (headless)

Jonathan Ryan Owens
Donator
Sr. Member
*
Offline Offline

Activity: 392



View Profile WWW
July 24, 2011, 08:43:23 AM
 #993

New distro?Huh

Please?

drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 24, 2011, 03:00:21 PM
 #994

New distro?Huh

Please?

lol keep ya pants on do you realize how much work it is to rip out the stock kernel and basically change the way it works ? It's not easy stuff and I've only just been exposed to grsecurity so working through the small things that have come up after the upgrade.

It's getting there I'm not going to put a deadline to this anymore as I can't keep up with the ones I set myself hehehe so trust me it's on its way and it will be worth the wait Wink
sharky112065
Sr. Member
****
Offline Offline

Activity: 383



View Profile
July 24, 2011, 09:32:11 PM
 #995

New distro?Huh

Please?

lol keep ya pants on do you realize how much work it is to rip out the stock kernel and basically change the way it works ? It's not easy stuff and I've only just been exposed to grsecurity so working through the small things that have come up after the upgrade.

It's getting there I'm not going to put a deadline to this anymore as I can't keep up with the ones I set myself hehehe so trust me it's on its way and it will be worth the wait Wink

The only problem I see with this is that going from beta to release means you fix the bugs and release. If you are adding new stuff it will still be beta. IMO you should have squashed bugs in the beta and released then any new features should have been re-released as a beta.

The way you are doing it, we will always have beta and no release versions.

Don't get me wrong, I like that you are adding to and refining it.


Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
Jessi
Sr. Member
****
Offline Offline

Activity: 322


View Profile WWW
July 25, 2011, 12:06:29 AM
 #996

I would like to be part of the beta test, too. Why not make it "open beta"?  Cheesy

www.Bitcoin-Tools.de - Price Alert & Calculator
A little tool to keep you informed or wake you up, if Mt.Gox reaches a defined price level and a calculator to convert  BTC or USD based on live Prices.
BTC: 1BQTankpeCZict849JRHxxYFnwZARV3YX7 | LTC: LecEsSJMYZK7wk493QvyNzA4BxHpXviAEA | PPC: PQdjfxTbjnXThwJ5bbEgJkc9GZcKpib9DM
Reckman
Hero Member
*****
Offline Offline

Activity: 712


View Profile
July 25, 2011, 01:42:22 AM
 #997

How is everyone keeping their miners running? im having trouble with a miner restart script.

Thanks for the help

Dedicated thread with bounty

http://forum.bitcoin.org/index.php?topic=31473.0
mikeo
Full Member
***
Offline Offline

Activity: 185



View Profile
July 25, 2011, 01:49:43 AM
 #998

Looks like my Bitcoin client is corrupt. I get a some sort of "Error: Debian Exception..." shortly after it opens then it automatically closes the client :-/

Running 0.2.1b persistent. How do I repair and/or extract my bitcoins from it?

If this post tickles your fancy or helped you make more bitcoin I'll gladly take a tip:
17DWhv9f5TkRDL6kyA45qiG34d4v1QiwqE
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 1946


Poor impulse control.


View Profile WWW
July 25, 2011, 03:08:07 AM
 #999

Looks like my Bitcoin client is corrupt. I get a some sort of "Error: Debian Exception..." shortly after it opens then it automatically closes the client :-/

Running 0.2.1b persistent. How do I repair and/or extract my bitcoins from it?

please say "and i *did* back it up"

copy the wallet.dat file somewhere safe, delete directory and reinstall new bitcoin client. copy wallet.dat file over to new directory. had to do this a few times my self.

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
mikeo
Full Member
***
Offline Offline

Activity: 185



View Profile
July 25, 2011, 05:02:39 AM
 #1000

Looks like my Bitcoin client is corrupt. I get a some sort of "Error: Debian Exception..." shortly after it opens then it automatically closes the client :-/

Running 0.2.1b persistent. How do I repair and/or extract my bitcoins from it?

please say "and i *did* back it up"

copy the wallet.dat file somewhere safe, delete directory and reinstall new bitcoin client. copy wallet.dat file over to new directory. had to do this a few times my self.

Copied the Wallet.dat file to a safe place and deleted directory. What's the best way for thix linux noob to install a new Bitcoin client?

If this post tickles your fancy or helped you make more bitcoin I'll gladly take a tip:
17DWhv9f5TkRDL6kyA45qiG34d4v1QiwqE
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!