Pages:
Author

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

sr. member
Activity: 286
Merit: 251
kjj,

I have been trying to get auto mining working but this seems to be quite a problem with this distribution.

First, I tried adding an entry to /etc/init.d and making a called  to /etc/rc2.d/S99mine.pl   but this did not seem to work.

next I tried what you sugested with /home/user/.config/autostart/auto.desktop, even tried changing ownership and execute perms, but it didn't work. The directory autostart did not exist which I thought was odd.

I have also tried putting things in /etc/rc.local but this also did not work.

I can start it through cron, but this is not ideal.

I have a simple script (which I can share if there is interest) which will start and stop all necessary miners but the only way I can start this seems to be from ths ssh command line.

Any other suggestions as to what my problem is here ?  Surely the best way would be through init.d but I'll settle for anything that works!
legendary
Activity: 1148
Merit: 1001
Radix-The Decentralized Finance Protocol
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?
sr. member
Activity: 406
Merit: 250
thanks guys.
i am going to mess around with this for a a little bit.
I will let you know if I have that problem

haha i realized the username and pass is right on the front page as well Wink


member
Activity: 112
Merit: 100
"I'm not psychic; I'm just damn good"
u have to be in the right dir to run

screen -d -m -S miner1 ./poclbm.py blah blahblah (or ./phoenix)
use screen -ls to list the miners u have
use screen -X -S miner1 quit
to stop the mining.

I use these few commands in a script and put them on startup applications in ubuntu to auto run headlessly. everytime i can't ssh into the machine i assume it hang or froze i just restart it. but this seldom happens.

I'm having problems controlling my miners on linuxcoin. i SSH into it perfectly fine but I realize when i tried to run poclbm or phoenix, the device list only shows me the processors. however when i do aticonfig --lsa, i see my GPUs.

Anyone have this problem and know how to solve it?
kjj
legendary
Activity: 1302
Merit: 1026
I don't think screen likes it when the command to run has args.  It gets hard to tell where one ends and the next begins.  Try making a script to run poclbm, and calling that on your screen line.

Code: (/home/user/startup.sh)
screen -dmS d0 /home/user/miner_0.sh
screen -dmS d1 /home/user/miner_1.sh

Code: (/home/user/miner_0.sh)
cd /opt/miners/poclbm
python /opt/miners/poclbm/poclbm.py -d0 --host=blah blah args

The other way to do it (with multiple lxterminal windows) is if you want them all to show up on the monitor.
sr. member
Activity: 406
Merit: 250
For most people, the contents of the shell script will just cd into /opt/miners/phoenix or whatever, and run the miner with their args.

For you though, you need a shell script that has 8 lines that look like this:

lxterminal --command="script_to_start_miner_1.sh"
lxterminal --command="script_to_start_miner_2.sh"
etc.

And yes, you can remotely connect screen sessions.

CTRL-A, d will detach a running screen session (if any).  CTRL-A, n and CTRL-A, p will cycle through them.  If no session is connected, "screen -ls" will list sessions.  "screen -r SESSION_NAME" will connect.  If the session you want isn't detached, "screen -r SESSION_NAME -d" will detach it, and connect you to it.  Also try "man screen".

So I just SSH to it and then I can use those commands to see the different screen sessions?  Is there a password for the user account?  Or do I use root?  and what is the password for root if so?

I wouldn't want to launch them in lxterminal if I want to remotely monitor them right?  

would this script work?

apt-get install screen
cd /opt/miners/poclbm
screen -mdS d0 python /opt/miners/poclbm/poclbm.py -d0 --host=blah blah args
screen -mdS d1 python /opt/miners/poclbm/poclbm.py -d1 --host=blah blah args
screen -mdS d2 python /opt/miners/poclbm/poclbm.py -d2 --host=blah blah args
screen -mdS d3 python /opt/miners/poclbm/poclbm.py -d3 --host=blah blah args

that is what i tried but it would only start one session.  am i missing something?
member
Activity: 84
Merit: 10
Anyone can help me connect to the internet?
I used all my router ports soo I'm trying to get linuxcoin internet conenction via connecting it to a windows 7 machine that is connected to the internet... and has 2 network cards..
But I dont manage to do it..
Can anyone help me... Thank you


EDIT: I managed to fix the problem.. I just bridged the connection
Thank you
kjj
legendary
Activity: 1302
Merit: 1026
Yes, currently I have 8 different bash scripts.  2 per miner, 1 per pool.  I'm only using 2 pools at the moment.  Will probably switch to 3 once I get this figured out, and switching to poclbm might be worth the easy setup of reduncancy.
My cards are overclocked in the bios, so I do not mess with scripts and overclocking.

Currently I just open 8 different terminals and type ./miner0.sh in one.  ./mine1.sh into another etc.  This starts one miner per terminal and allows me to see their progress.


Yes, kjj, I read that post, but what it fails to mention is the code inside shell_script.sh
And when i tried using the first half of the bash script i found by googling, it would only start one miner in a screen session, which was hidden, so I couldn't even see if it was working or idle.  Is there a way to remotely connect to the screen sessions?  

So, basically, I'm not sure if he's using the same script of if it's custom.

For most people, the contents of the shell script will just cd into /opt/miners/phoenix or whatever, and run the miner with their args.

For you though, you need a shell script that has 8 lines that look like this:

lxterminal --command="script_to_start_miner_1.sh"
lxterminal --command="script_to_start_miner_2.sh"
etc.

And yes, you can remotely connect screen sessions.

CTRL-A, d will detach a running screen session (if any).  CTRL-A, n and CTRL-A, p will cycle through them.  If no session is connected, "screen -ls" will list sessions.  "screen -r SESSION_NAME" will connect.  If the session you want isn't detached, "screen -r SESSION_NAME -d" will detach it, and connect you to it.  Also try "man screen".
sr. member
Activity: 392
Merit: 250
Hi,
I can not initialize linuxcoin, problem with X servers.
I perform this procedure.
- Linuxcoin 0.2A.iso
- Use USB pen drive, with FAT32 partition for iso (1GB)
- Use this partition in unetbootin
- In the second usb pen drive, format ext3 (1GB)
-I follow the procedure for formatting and transformation in ext4
- Reboot
unetbootin-in menu selection linuxcoin persisting (flash only)
- Result: "failed to start the X server (your graphical interface). It Is Likely That It Is Not Correctly set-up. Would you like to view the X server output to diagnose problem?

-This result, I was given to ALL unebootin option, default, linuxcoin, linuxcoin (safe), etc. ...

 Huh
sr. member
Activity: 406
Merit: 250
Quote
Thanks that helps a lot.   I use phoenix though, so adjusting aggression is the same?  Or would it be better to use poclbm?

I'm not very familiar with phoenix flags, I only used it long enough to determine it wasn't as fast for me as poclbm or diablominer. The idea is that you want to give the back up miner instances less of a share of your gpu's hashing power. a high -f does this. With phoenix, I cant remember which way AGRESSION goes, but basically you want your backup miner instances to be less AGRESSive.

Quote
What about just automatically starting the miners at boot?  I still haven't found a graceful way of doing that.

It's tricky because I don't think you can start miners until X starts, so you don't want it running immediately as the machine boots. Plus you have make sure you add the correct OC parms in there. I find it easier to just boot up, run AMDOverdriveCtrl as gui, and then I have a bash script which simply runs the instances with my preferred flags so I don't have to copy and paste a million six times.

Yes, currently I have 8 different bash scripts.  2 per miner, 1 per pool.  I'm only using 2 pools at the moment.  Will probably switch to 3 once I get this figured out, and switching to poclbm might be worth the easy setup of reduncancy.
My cards are overclocked in the bios, so I do not mess with scripts and overclocking.

Currently I just open 8 different terminals and type ./miner0.sh in one.  ./mine1.sh into another etc.  This starts one miner per terminal and allows me to see their progress.


Yes, kjj, I read that post, but what it fails to mention is the code inside shell_script.sh
And when i tried using the first half of the bash script i found by googling, it would only start one miner in a screen session, which was hidden, so I couldn't even see if it was working or idle.  Is there a way to remotely connect to the screen sessions?  

So, basically, I'm not sure if he's using the same script of if it's custom.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Quote
Thanks that helps a lot.   I use phoenix though, so adjusting aggression is the same?  Or would it be better to use poclbm?

I'm not very familiar with phoenix flags, I only used it long enough to determine it wasn't as fast for me as poclbm or diablominer. The idea is that you want to give the back up miner instances less of a share of your gpu's hashing power. a high -f does this. With phoenix, I cant remember which way AGRESSION goes, but basically you want your backup miner instances to be less AGRESSive.

Quote
What about just automatically starting the miners at boot?  I still haven't found a graceful way of doing that.

It's tricky because I don't think you can start miners until X starts, so you don't want it running immediately as the machine boots. Plus you have make sure you add the correct OC parms in there. I find it easier to just boot up, run AMDOverdriveCtrl as gui, and then I have a bash script which simply runs the instances with my preferred flags so I don't have to copy and paste a million six times.

donator
Activity: 2058
Merit: 1007
Poor impulse control.
yes, some changes seem to be working.

Code:
root@linuxcoin:/home/user# sudo su leafpad
Unknown id: leafpad

Sorry mate, I realise I wasn't very clear.

Code:
> sudo su
# leafpad

Try that.
sr. member
Activity: 406
Merit: 250

Quote
Does anyone have an effective way at auto launching 4 miners at start up.  In a way that I can monitor them remotely. 

I've been able to check for pool being up or down and launch miners at the up pool, but I didn't find a good way of monitoring them apart from dumping to a text file eg ./pocbm flagss usrname pass blahblah > blah.txt This is ugly hacky though.

For the moment I'm just waiting on smartcoin to be completed: http://forum.bitcoin.org/index.php?topic=16548.40

This should do everything you want. Donate to the dude if you'd like to see it sooner.

Quote
Also, I saw someone mention how to essentially load balance between two pools, so that if a miner goes idle it will distribute the resources to the lower priority pool.  I have been searching and searching trying to find the info again, but I can't seem to find it.  Does anyone know what I'm talking about or where that post is located?

set up two or three miners for each gpu each set to go to a different pool. Set lower priority pools to higher --frames (or less AGGRESSION)

For example:
screen1:
./poclbm blah eu.eligius -f10

screen2:
./poclbm blah ozco.in -f20

screen3:
./poclbm blah deepbit.net -f30

This means that when eligius goes down, hashrate will go to ozco.in, and if they're both down, then hashes go to deepbit. If you want to have even amounts of hashrate going to different pools, then make the -f the same. If I use say -f10, f11, f12 on 3 different pools I get 75% going to first pool, 24% going to second pool and 1% going to third pool - unless one of them goes down. Just play with the -f flag and multiple miner instances for each gpu.

Can remember where original post is either. BTW, smartcoin will also help with this.


Thanks that helps a lot.   I use phoenix though, so adjusting aggression is the same?  Or would it be better to use poclbm?

What about just automatically starting the miners at boot?  I still haven't found a graceful way of doing that.

Can't wait for smartcoin to be finished.  It looks like its going to be a smooth piece of software
hero member
Activity: 504
Merit: 500
yes, some changes seem to be working.

Code:
root@linuxcoin:/home/user# sudo su leafpad
Unknown id: leafpad
donator
Activity: 2058
Merit: 1007
Poor impulse control.
so now everytime I reboot I must use the persistance option?
Yes, but you can edit /live/image/syslinux.cfg and move the persistent option to the top of the list (or just delete everything apart from the persistent one).

Niccy.

PS - Thank you for the BTC.

I tried to edit the file, but when I try to save it I get:

"cannot open file to write"

Also when I try to change the background on the desktop, the changes do not stay after a reboot... Undecided

1. You need to edit the file as root. 'sudo su leafpad' from the terminal does the trick, then open from leafpad.
2. Can you keep other changes after boot? If not your persistence might not have worked.
hero member
Activity: 504
Merit: 500
so now everytime I reboot I must use the persistance option?
Yes, but you can edit /live/image/syslinux.cfg and move the persistent option to the top of the list (or just delete everything apart from the persistent one).

Niccy.

PS - Thank you for the BTC.

I tried to edit the file, but when I try to save it I get:

"cannot open file to write"

Also when I try to change the background on the desktop, the changes do not stay after a reboot... Undecided
donator
Activity: 2058
Merit: 1007
Poor impulse control.
It would be handy to know if it's something someone else might do wrong, even if LC not involved. Plus schadenfreude is one of my favourite hobbies! Smiley

basically I tried creating a auto.desktop file which would execute my 4 miners in screen sessions.  However I could only get it to launch the first miner.  Therefore I abandon working on it and forgot to delete the file.  So when the computer would start it would start the miner automatically in a screen session I couldn't see.  Therefore, when i started up the miner in a root terminal it would only do half speed.  The good news is I was actually mining at full speed the whole time that I thought I was having a problem.



Ha! I did something very similar. Took me a day to figure it out. I thought I'd wrecked a gpu.  Embarrassed

donator
Activity: 2058
Merit: 1007
Poor impulse control.

Quote
Does anyone have an effective way at auto launching 4 miners at start up.  In a way that I can monitor them remotely. 

I've been able to check for pool being up or down and launch miners at the up pool, but I didn't find a good way of monitoring them apart from dumping to a text file eg ./pocbm flagss usrname pass blahblah > blah.txt This is ugly hacky though.

For the moment I'm just waiting on smartcoin to be completed: http://forum.bitcoin.org/index.php?topic=16548.40

This should do everything you want. Donate to the dude if you'd like to see it sooner.

Quote
Also, I saw someone mention how to essentially load balance between two pools, so that if a miner goes idle it will distribute the resources to the lower priority pool.  I have been searching and searching trying to find the info again, but I can't seem to find it.  Does anyone know what I'm talking about or where that post is located?

set up two or three miners for each gpu each set to go to a different pool. Set lower priority pools to higher --frames (or less AGGRESSION)

For example:
screen1:
./poclbm blah eu.eligius -f10

screen2:
./poclbm blah ozco.in -f20

screen3:
./poclbm blah deepbit.net -f30

This means that when eligius goes down, hashrate will go to ozco.in, and if they're both down, then hashes go to deepbit. If you want to have even amounts of hashrate going to different pools, then make the -f the same. If I use say -f10, f11, f12 on 3 different pools I get 75% going to first pool, 24% going to second pool and 1% going to third pool - unless one of them goes down. Just play with the -f flag and multiple miner instances for each gpu.

Can remember where original post is either. BTW, smartcoin will also help with this.
sr. member
Activity: 406
Merit: 250
It would be handy to know if it's something someone else might do wrong, even if LC not involved. Plus schadenfreude is one of my favourite hobbies! Smiley

basically I tried creating a auto.desktop file which would execute my 4 miners in screen sessions.  However I could only get it to launch the first miner.  Therefore I abandon working on it and forgot to delete the file.  So when the computer would start it would start the miner automatically in a screen session I couldn't see.  Therefore, when i started up the miner in a root terminal it would only do half speed.  The good news is I was actually mining at full speed the whole time that I thought I was having a problem.

Still curious about people remote linuxcoin solutions.

Does anyone have an effective way at auto launching 4 miners at start up.  In a way that I can monitor them remotely. 

Also, I saw someone mention how to essentially load balance between two pools, so that if a miner goes idle it will distribute the resources to the lower priority pool.  I have been searching and searching trying to find the info again, but I can't seem to find it.  Does anyone know what I'm talking about or where that post is located?
Pages:
Jump to: