Pages:
Author

Topic: LinuxCoin A lightweight Debian based OS with everything ready to go. - page 27. (Read 285123 times)

full member
Activity: 135
Merit: 100
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!

sr. member
Activity: 308
Merit: 251
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
sr. member
Activity: 322
Merit: 251
FirstBits: 168Bc
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)
member
Activity: 84
Merit: 10
I yam what I yam. - Popeye
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!
sr. member
Activity: 308
Merit: 251
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.
donator
Activity: 392
Merit: 252
@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

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:[email protected]:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

screen -d -m -S two ./phoenix.py -u http:// user2:[email protected]:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

Then you can ssh into the machine and use screen -r 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
donator
Activity: 798
Merit: 500
@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

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:[email protected]:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

screen -d -m -S two ./phoenix.py -u http:// user2:[email protected]:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

Then you can ssh into the machine and use screen -r 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.
newbie
Activity: 42
Merit: 0
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
member
Activity: 84
Merit: 10
I yam what I yam. - Popeye
STEP-BY-STEP HEADLESS LINUXCOIN

That was brilliant!

Thank you!
donator
Activity: 392
Merit: 252
Running Linuxcoin 2.1.b..

donator
Activity: 392
Merit: 252
full member
Activity: 135
Merit: 100

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:[email protected]:8080 -k poclbm DEVICE=0 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user2:[email protected]:8080 -k poclbm DEVICE=1 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user3:[email protected]:8080 -k poclbm DEVICE=2 BFI_INT VECTORS AGGRESSION=5 &

sleep 2

./phoenix.py -u http:// user4:[email protected]: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


donator
Activity: 392
Merit: 252
You rock sir!

Not sure I can remember you saying it was added, but the option to reboot into persistence automatically so that when I'm away I can remote reboot and have the system come up automatically.

Thanks again

Trip

After you've installed Linuxcoin onto your USB using Unetbootin, open up the windows readable directory and edit syslinux. Change the timeout to 1 and remove all other options other than USB persistence.

Now you will always boot into persistence mode.

~ enjoy
full member
Activity: 167
Merit: 100
lxrandr

well that showed up but not as a gui as i thought it would .  all it gave was a list of resolutions not to tell me how to change to one of them .   useing root terminal as well


Jen
sr. member
Activity: 308
Merit: 251
[quote author=cyrusfox link=topic=7374.msg384515#msg384515

How does one add a page? I just signed up and wanted to post how to change the boot options menu.

I can see pages but have no option to add.

You have to type in the url of the page you want to add. For example if I wanted to create a page titled setup_linuxcoin I would type in my address bar.

http://www.linuxcoin.co.uk/wiki/index.php/Setup_linuxcoin

And click create.

Well that was a failure. I think you assume we are as smart as you. 8^)

There is a now page somewhere in the bowels of the wiki that describes Boot Menu editing.

I'll just wait for pages to exist and make small changes if needed.
[/quote]

LOL I didn't mean actually call your page setup_linuxcoin Cheesy !! If you want your page to be called setup bootmenu you do http://www.linuxcoin.co.uk/wiki/index.php/setup_bootmenu or if you want to create a page called linuxcoin rules http://www.linuxcoin.co.uk/wiki/index.php/linuxcoin_rules

I moved your page here

http://www.linuxcoin.co.uk/wiki/index.php/Edit_bootmenu_to_remove_options

Also if you could preview before you actually commit or I'll be there all day trawling through logs Cheesy
member
Activity: 84
Merit: 10
I yam what I yam. - Popeye
[quote author=cyrusfox link=topic=7374.msg384515#msg384515

How does one add a page? I just signed up and wanted to post how to change the boot options menu.

I can see pages but have no option to add.

You have to type in the url of the page you want to add. For example if I wanted to create a page titled setup_linuxcoin I would type in my address bar.

http://www.linuxcoin.co.uk/wiki/index.php/Setup_linuxcoin

And click create.
[/quote]

Well that was a failure. I think you assume we are as smart as you. 8^)

There is a now page somewhere in the bowels of the wiki that describes Boot Menu editing.

I'll just wait for pages to exist and make small changes if needed.
sr. member
Activity: 308
Merit: 251
I added a page for changing the time zone in the wiki.

Awesome! Thanks so much, I had spent so long trying to figure it out using instructions for an old version of DBE and it didn't do a thing, that worked instantly! I have been working on the wiki, I did the long entry about OC'ing. I think I am gong to write another one just called Linux Short cuts, all the useful shortcuts I have learned. I am really new to Linux, I know Windows and command line interfaces pretty well, but I am still learning may way through Linux.

Only thing Linux coin is really missing for me is a CPU underclocking utility. Does anyone know of a piece of software I can get on this that will allow me to change the p-state frequencies and voltages of my AM3 CPU. On windows there is PhenomMSRtweaker which works great(allows me to force the processor into lowest p state which is set at 1350Mhz @ .895V)

LinuxCoin does this automatically using frequency scaling. You can set it to powersave etc but there's no need really because it sets itself accordingly.

I added a page for changing the time zone in the wiki.

How does one add a page? I just signed up and wanted to post how to change the boot options menu.

I can see pages but have no option to add.

You have to type in the url of the page you want to add. For example if I wanted to create a page titled setup_linuxcoin I would type in my address bar.

http://www.linuxcoin.co.uk/wiki/index.php/Setup_linuxcoin

And click create.

More news on LinuxCoin 0.2-final I'm just finishing the optimizations to the kernel and I think we are golden. I'll contact the people that asked so they can test then I'll unleash onto the public.

LinuxCoin's kernel is also now optimized for CPU mining too !! Also included hashkill, cgminer with GPU support, sticky notes, secure bitcoin wallet, monit watchdog, updated PXE scripts, optimized pyopencl and lots more. I can't remember the total amount of changes !!
member
Activity: 84
Merit: 10
I yam what I yam. - Popeye
I added a page for changing the time zone in the wiki.

How does one add a page? I just signed up and wanted to post how to change the boot options menu.

I can see and edit existing pages but have no option to add a page that is obvious to me.
newbie
Activity: 15
Merit: 0
I added a page for changing the time zone in the wiki.

Awesome! Thanks so much, I had spent so long trying to figure it out using instructions for an old version of DBE and it didn't do a thing, that worked instantly! I have been working on the wiki, I did the long entry about OC'ing. I think I am gong to write another one just called Linux Short cuts, all the useful shortcuts I have learned. I am really new to Linux, I know Windows and command line interfaces pretty well, but I am still learning may way through Linux.

Only thing Linux coin is really missing for me is a CPU underclocking utility. Does anyone know of a piece of software I can get on this that will allow me to change the p-state frequencies and voltages of my AM3 CPU. On windows there is PhenomMSRtweaker which works great(allows me to force the processor into lowest p state which is set at 1350Mhz @ .895V)
full member
Activity: 150
Merit: 100
I added a page for changing the time zone in the wiki.
Pages:
Jump to: