Pages:
Author

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

legendary
Activity: 1148
Merit: 1001
Radix-The Decentralized Finance Protocol
It has been mentioned before in this thread, but if you are using unetbootin to write the ISO to the flash drive, you need to edit the syslinux.cfg file in the root directory and add "persistent" to the first append line.  Unetbootin overrules the boot configuration in the ISO and uses its own.

The step by step sequence that I've been using is:

1) plug new flash drive into a linux box (an existing one, or write the linuxcoin ISO to a CD and boot that for this step)
2) find the device name, and unmount it if it automounted.
3) use fdisk to create 2 partitions.  Partition 1 is 1GB, type "b" or "c", active.  Partition 2 is all remaining space, type 83, not active.
4) use mkfs.ext4 to create a filesystem on partition 2 (probably /dev/sda2 or /dev/sdb2)
5) plug the drive into a windows box
6) go to disk management, format partition 1.
7) use unetbootin to write the ISO
8 ) edit syslinux.cfg
9) remove the flash drive from windows, boot the new box with the drive.

Optional steps if you are doing a lot of boxes:

10) accept the AMD license
11) install ntp
12) copy over my startup and restart scripts (generic versions with CHANGEME as the worker name)
13) shut down, boot from the CD again, and use dd to clone this prepared drive onto other drives

Why do you need to format from windows? Why not use unetbootin from linux also?
member
Activity: 87
Merit: 10
Is the first partition marked active?  What did you use to write the ISO to it?

unetbootin for mac os
full member
Activity: 154
Merit: 100
Hey everyone!  I'm going to try out Linuxcoin tonight and I've been reading through all the helpful posts on here.  I do have one quick question.  I run Ubuntu on my main computer and I've used the usb-creator application to write a CD ISO to a bootable flash drive (including with a persistence partition).  Has anyone had any luck using this same tool to write Linuxcoin to a USB stick, or should I follow the unetbootin instructions?
kjj
legendary
Activity: 1302
Merit: 1026
Is the first partition marked active?  What did you use to write the ISO to it?
member
Activity: 87
Merit: 10
I'm just trying this for the first time, and when I try to boot it just sits at "Verifying DMI Pool Data.........."

It detects the usb stick as USB-HDD0 and I've set that as the boot device?

The rest looks straight forward, I just can't get it to boot lol.
kjj
legendary
Activity: 1302
Merit: 1026
It has been mentioned before in this thread, but if you are using unetbootin to write the ISO to the flash drive, you need to edit the syslinux.cfg file in the root directory and add "persistent" to the first append line.  Unetbootin overrules the boot configuration in the ISO and uses its own.

The step by step sequence that I've been using is:

1) plug new flash drive into a linux box (an existing one, or write the linuxcoin ISO to a CD and boot that for this step)
2) find the device name, and unmount it if it automounted.
3) use fdisk to create 2 partitions.  Partition 1 is 1GB, type "b" or "c", active.  Partition 2 is all remaining space, type 83, not active.
4) use mkfs.ext4 to create a filesystem on partition 2 (probably /dev/sda2 or /dev/sdb2) (use -L live-rw)
5) plug the drive into a windows box
6) go to disk management, format partition 1.
7) use unetbootin to write the ISO
8 ) edit syslinux.cfg
9) remove the flash drive from windows, boot the new box with the drive.

Optional steps if you are doing a lot of boxes:

10) accept the AMD license
11) install ntp
12) copy over my startup and restart scripts (generic versions with CHANGEME as the worker name)
13) shut down, boot from the CD again, and use dd to clone this prepared drive onto other drives
legendary
Activity: 1441
Merit: 1000
Live and enjoy experiments
Sorry kinda new at this.  Isn't persistent mode supposed to save the things onto your flash drive during your session instead of a total clean slate every time you reboot your computer?  If not then how do i save things to my flash without having them erased.  Thanks I'm pretty new to linux but learning very fast especially with your linuxcoin.

Peace
Mike
Didn't he talk about creating a writeable partition with fdisk:
http://forum.bitcoin.org/index.php?topic=7374.msg136868#msg136868
What made you think it's not saving things onto your flash drive?
kjj
legendary
Activity: 1302
Merit: 1026
Nifty progress today.

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

Code: (/home/user/start.sh)
#!/bin/bash
xhost +
echo $DISPLAY > /home/user/.display
lxterminal --title miner1_start --command "/home/user/miner1.sh"
lxterminal --title miner2_start --command "/home/user/miner2.sh"

Code: (/home/user/miner1.sh)
#!/bin/bash
cd /opt/miners/phoenix
./phoenix.py -u http://__USER__:__PASSWORD__@__PROXY/POOL__:__PORT__/ -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=0

Code: (/home/user/miner2.sh)
#!/bin/bash
cd /opt/miners/phoenix
./phoenix.py -u http://__USER__:__PASSWORD__@__PROXY/POOL__:__PORT__/ -k phatk BFI_INT VECTORS FASTLOOP=false AGGRESSION=11 DEVICE=1

Code: (/home/user/restart.sh)
#!/bin/bash
export DISPLAY=`cat /home/user/.display`
pc=`ps waxuf | grep miner1.sh -c`
ld=`aticonfig --odgc --adapter=0 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
if [[ $pc -lt 2 ||  $ld -lt 50 ]] ; then
 killall -KILL miner1.sh
 nohup lxterminal --title miner1 --command /home/user/miner1.sh &
fi
pc=`ps waxuf | grep miner2.sh -c`
ld=`aticonfig --odgc --adapter=1 | grep "GPU load" | cut -c 30-35 | cut -d % -f 1`
if [[ $pc -lt 2 ||  $ld -lt 50 ]] ; then
 killall -KILL miner2.sh
 nohup lxterminal --title miner2 --command /home/user/miner2.sh &
fi

Code: (crontab -e)
1,11,21,31,41,51 * * * * /home/user/restart.sh

miner1.sh and miner2.sh are owned by root.root, and are setuid/setgid (mode 6755) while the others are owned by user.user and are mode 0755.

Very simple to extend this to multiple miners, and it will restart any that are crashed or hung.
full member
Activity: 182
Merit: 100
Sorry kinda new at this.  Isn't persistent mode supposed to save the things onto your flash drive during your session instead of a total clean slate every time you reboot your computer?  If not then how do i save things to my flash without having them erased.  Thanks I'm pretty new to linux but learning very fast especially with your linuxcoin.

Peace
Mike
legendary
Activity: 1855
Merit: 1016
The file manager never opens & also if i triple click or do some clicks then it logs out automatically & asks user name & password.
There user & live works.
But root not.

I have discovered these same issues.  unfortunately unless someone takes over the project, it looks like 0.2a just became final. 

Here's my work around....

for the file manager.  right click desktop > new folder > name it whatever you want
file manager will open whenever you open that folder. 

I have the same issue with the mouse.  I'm not sure what is causing it or what the other login session is for, i've never bothered.  I just press tab and it brings me back to the linuccoin desktop with welcome message and license agreement as if I just logged in.  the sucky part is that the miners don't stay running and need to be relaunched.

Thanks for work around.
sr. member
Activity: 406
Merit: 250
The file manager never opens & also if i triple click or do some clicks then it logs out automatically & asks user name & password.
There user & live works.
But root not.

I have discovered these same issues.  unfortunately unless someone takes over the project, it looks like 0.2a just became final. 

Here's my work around....

for the file manager.  right click desktop > new folder > name it whatever you want
file manager will open whenever you open that folder. 

I have the same issue with the mouse.  I'm not sure what is causing it or what the other login session is for, i've never bothered.  I just press tab and it brings me back to the linuccoin desktop with welcome message and license agreement as if I just logged in.  the sucky part is that the miners don't stay running and need to be relaunched.
legendary
Activity: 1855
Merit: 1016
The file manager never opens & also if i triple click or do some clicks then it logs out automatically & asks user name & password.
There user & live works.
But root not.
kjj
legendary
Activity: 1302
Merit: 1026
There isn't a root password.  Take a look in /etc/shadow.

Easy enough to become root though.  On the command line you can just type "sudo su".  In the GUI, you can just open one marked "root terminal".
legendary
Activity: 1855
Merit: 1016
I am new to mining (I have 3 5850's delivering today!) and I am looking for a good linux distro to use for my miner.  I was thinking ubuntu....till I saw this Smiley

I was wondering if there was a how-to or a tutorial I could read to learn how to install this to a local hard drive and run it.

In progress Wink

I'm getting the exact same error as REF was having. I don't see the solution here. Any ideas of what it could be? Thanks.


it pops up for not even a second and then closes

okay i tried what you said.
Code:
Welcome to LinuxCoin's bitcoin mining script !!

0 exit
1 Start a poclbm mining session
2 Start a phoenix mining session
3 Set fan speed on ATI cards
 ?1
Starting a poclbm mining session....
Enter your DEVICE number and press [ENTER]:
0
Enter your URL and press [ENTER]:
btcguild.com
Enter your USERNAME and press [ENTER]:
ref_xx1
Enter your PASSWORD and press [ENTER]:
xxxxxx
Enter your FLAGS and press [ENTER]:
-w128 -v
press [ENTER] for menu

gives me this error
Code:
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/miners/poclbm/BitcoinMiner.py", line 272, in miningThread
    self.loadKernel()
  File "/opt/miners/poclbm/BitcoinMiner.py", line 373, in loadKernel
    binaryW = open(cacheName, 'wb')
IOError: [Errno 13] Permission denied: 'cf3403e6e93974c01918bf40f386b25f.elf'

when i try using phoenix the second window only pops up for a second


Use a root terminal.

props on this awesome project!
Thanks man Cheesy !!

I had same permission error & i searched this thread & i see more than 4-5 times asked , still root password is never given out.

user & its password live won't work with root .

What is the password for "root" user?
member
Activity: 238
Merit: 10
I feel sorry for you, that is very sad. I wish you the best luck!!


My question:
Is anyone able to start mining remotely with ssh?

user@linuxcoin:/opt/miners/phoenix$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH":/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/"user@linuxcoin:/opt/miners/phoenix$ export DISPLAY=:0
user@linuxcoin:/opt/miners/phoenix$ sudo python phoenix.py -u http://url -k phatk DEVICE=0 VECTORS BFI_INT AGGRESSION=11 FASTLOOP=false WORKSIZE=256
No protocol specified
No device specified or device not found, use DEVICE=ID to specify one of the following

   
  • AMD Athlon(tm) II X2 250 Processor
[0 Khash/sec] [0 Accepted] [0 Rejected]user@linuxcoin:/opt/miners/phoenix$


Obviously I am missing an environment variable, right?
can anybody help, please?
hero member
Activity: 504
Merit: 500
Quote
Nope totally bitcoin unrelated she ran off with an old friend  well ex friend lol wish me luck


Consider yourself lucky. She could have stuck around for another year or 2...
sr. member
Activity: 308
Merit: 251
Sorry guys I've been incognito due to my slu* bag ex gf doing the dirty on me and emptying my bank Sad now I have £1000 to pay by the 28th or I have no fixed abode Sad. I'll let you guys know when work restarts.

Sorry people but this one was out of my control and unforeseen Sad

was she jealous of the miners?
I think mines starting to get there.
She didn't empty your bitcoin wallet did she?

In all seriousness.... Sorry dude.... women can be down right brutal when they want to be.

Nope totally bitcoin unrelated she ran off with an old friend Sad well ex friend lol wish me luck Wink
kjj
legendary
Activity: 1302
Merit: 1026
Hi

Im trying to get LinuxCoin working but I am failing. This is what I do:

(Im basically following this instructions: http://forum.bitcoin.org/index.php?topic=7374.msg136868#msg136868
- From Ubuntu, I create a 1Gb FAT partition on my USB and leave the rest unformated.
- Using unetbootin I install LinuxCoin in that partition.
- Reboot into LinuxCoin.
- This order: "fdisk /dev/sdb" ask me to reboot again with a warning about some DOS something being deprecated. I suspect it has to do with the format, because this info is different for me:

This is the example:
Quote
  Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     2099199     1048576   83  Linux

My System is FAT32 instead of Linux. If I try to run the next order it fails.

- I reboot again into LinuxCoin and "mkfs.ext4 /dev/sdb2 -L live-rw" now works.
- Reboot again per instructions, check if persitence works by saving a file in the Desktop and resbooting. It does not.

Any idea?

If you use unetbootin, you need to edit syslinux.cfg and add "persistent" to the first append line.
sr. member
Activity: 406
Merit: 250
Sorry guys I've been incognito due to my slu* bag ex gf doing the dirty on me and emptying my bank Sad now I have £1000 to pay by the 28th or I have no fixed abode Sad. I'll let you guys know when work restarts.

Sorry people but this one was out of my control and unforeseen Sad

was she jealous of the miners?
I think mines starting to get there.
She didn't empty your bitcoin wallet did she?

In all seriousness.... Sorry dude.... women can be down right brutal when they want to be.
sr. member
Activity: 308
Merit: 251
Sorry guys I've been incognito due to my slu* bag ex gf doing the dirty on me and emptying my bank Sad now I have £1000 to pay by the 28th or I have no fixed abode Sad. I'll let you guys know when work restarts.

Sorry people but this one was out of my control and unforeseen Sad
Pages:
Jump to: