Bitcoin Forum
May 27, 2024, 06:13:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
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 »
181  Bitcoin / Mining software (miners) / Re: Is there a tutorial for using screen to auto start cgminer? on: February 21, 2012, 10:56:32 PM
Is there a way to reattatch but if it is already attached, detach and then reattach.  Sometimes I check on rigs from multiple locations so it becomes
I mean I am lazy that is a LOT of typing.  
alias rbcm='screen -d -r cgm'

You don't want to go the '-d -R' way because -R would even create an empty screen session which won't help.
If there's no screen session that means cgminer must have died so we need to run the miner-launcher.sh

If for whatever reason the miner software gets unstable and keeps dying every now and then defining
alias nrbcm='screen -d -r cgm || miner-launcher.sh'
might be useful (n as in necro rbcm - raise from the dead if necessary Grin)
182  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.7 on: February 21, 2012, 10:31:10 PM
Doesn't really matter about being stored in a config file.  If the attacker has access to the config file he has access to your machine (and possibly as admin/root) and can do anything he wants including force your GPU to overheat from the command line.
I have a strong dislike for cleat text passwords stored in config files.
Access rights need to be very cautiously set on all such files.

True, once the attacker gains shell access, you're in deep trouble.
Your trouble can easily get much deeper, however, when the adversary finds clear-text login credentials in some script or config file (e.g. a password for the corporate database...)

Clear text passwords can really make your day when for whatever reason you're unable to grab the elusive root.
183  Bitcoin / Mining software (miners) / Re: Is there a tutorial for using screen to auto start cgminer? on: February 21, 2012, 10:20:00 PM
Oh, one other thing.
If having to constantly type screen -r cgm is bugging you, a good solution might be creating an alias in your .bashrc file.
You need to append the following line to ~/.bashrc:
Code:
alias rbcm='screen -r cgm'
Your system just learned a new command: rbcm (as in reattach bitcoin miner) will be translated to screen -r cgm.
Nifty.

Just keep in mind that when you su as root, you use root's home directory instead of your own so you need to update /root/.bashrc with that alias as well.
184  Bitcoin / Mining software (miners) / Re: Is there a tutorial for using screen to auto start cgminer? on: February 21, 2012, 09:48:41 PM
I admit it's going overboard but for the sake of elegance and clearly divided code I suggest you go with three files:
/etc/rc.local for autostart,
/usr/local/bin/miner-launcher.sh as a generic launcher you will invoke if you ever need to restart your miner.
/usr/local/bin/startcgminer.sh for launching cgminer. Cgminer technicalities belong here.


/etc/rc.local should include this line, let's keep it clean:
Code:
/usr/local/bin/miner-launcher.sh 60 &
That 60 is passed as a parameter to miner-launcher. It will be used for specifying how long miner-launcher should wait before starting the miner.
The ampersand returns control to rc.local at once, without waiting for the whole minute until miner-launcher is done with its work.


/usr/local/bin/miner-launcher.sh might look something like that:
Code:
#!/bin/bash
DEFAULT_DELAY=0

if [ "x$1" = "x" -o "x$1" = "xnone" ]; then
   DELAY=$DEFAULT_DELAY
else
   DELAY=$1
fi

sleep $DELAY

screen -dmS cgm su your_user_name -c "/usr/local/bin/startcgminer.sh"     #this will run your miner as a specified user, you need to replace your_user_name with an actual username
# if you have no issue with cgminer running as root by default, comment out the above line and uncomment the one below:
#screen -dmS cgm /usr/local/bin/startcgminer.sh
The miner-launcher might be upgraded to take a username or miner-dependent script as parameters. You could then call miner-launcher.sh startcgminer.sh or miner-launcher.sh 15 startdiablominer.sh to launch your miner of choice.


/usr/local/bin/startcgminer.sh is a good place for the implementation details:
Code:
#!/bin/bash
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1

cd /home/your_user_name/BTC/cgminer     # avoid using relative paths in scripts, this will save you a lot of headache. You need to replace your_user_name with an actual username
./cgminer
# or perhaps ./cgminer 2> cgminer.log     #cgminer output is being logged to cgminer.log

You need to make /usr/local/bin/miner-launcher.sh and /usr/local/bin/startcgminer.sh executable:
chmod +x /usr/local/bin/*miner*.sh

Make sure the files are owned by root (it's insecure to have user-writable executable files in system directories):
chown root:root /usr/local/bin/*miner*.sh


When you kill cgminer, simply invoking miner-launcher.sh will launch a fresh instance of screen for you and execute your favorite miner inside.
Since the -m argument is passed to screen, screen will die together with cgminer.


Am I forgetting something?? Uhmmm... don't think so.
Will this work as is, without any additional tinkering or debugging? This better work or else  Smiley
185  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.7 on: February 21, 2012, 07:46:34 PM
Yeah, that thought crossed my mind, but I dont think its pointless without encryption; its one thing to do a port scan and find vulnerable cgminer instances, its quite another to intercept IP traffic between the miner and its owner. I agree putting a password on it is of course not 100% secure, but far better than nothing (and in my case, better than an IP lockout, since I would be accessing it via 3G on dynamic IP).

If you have a VPS with a statically-assigned IP somewhere, you could tunnel your dynamic-IP 3G traffic through an easy to configure SSH tunnel.
To the miner it will look like the traffic originates at the whitelisted VPS.

If you don't wish to set up a VPS or if you want to be able to use the API with --api-allow W:127.0.0.1,192.168.1/24" configured (LAN access only) while you're off-site you will need to set up a VPN server.
While configuration-intensive and sometimes tricky to get going, a VPN will massively boost the security of your network - no need to even open the miner's ssh port to the general internet population.
If you're using a mid-to-high end router, it might already have a VPN server built in.

Passwords may not the be the best approach when stored in plain-text form in some config file and not encrypted in transit.
186  Bitcoin / Mining software (miners) / Re: Is there a tutorial for using screen to auto start cgminer? on: February 21, 2012, 07:10:17 PM
Bump - yes i know it's old...
Is this still the best method?
Which part? There is no substituting the command like screen -dmS miner startminer.sh


What can be changed, is the manner in which the above command is invoked - on my Debian-based machines, rather than launch cgminer via /etc/rc.local and call it a day I've set it up to start as a system service. With some scripting this allows me to do control it like any other OS daemon, e.g.
Code:
/etc/init.d/bcm0 start - invokes the time-honored [i]screen -dmS bcm-0 bcm-start.sh cgminer[/i] command[sup](1)[/sup]
/etc/init.d/bcm0 stop
/etc/init.d/bcm0 restart
/etc/init.d/bcm0 getstatus - prints whether or not cgminer is up and running, returns an exit status 1 if it isn't
/etc/init.d/bcm0 getpid - prints the PID of the active cgminer executable or returns an exit status 1 if cgminer isn't running

The service can be trivially disabled via the daemon control tool [i]update-rc.d[/i]:
update-rc.d bcm0 disable

Cgminer is only invoked via an intermediary script, /usr/local/bin/bcm-start.sh, which can launch a whole array of miners (the other ones being phoenix, diabloMiner, and ufasoft's cpuminer)
This way, whatever miner I want to launch, I don't have to mess with the /etc/init.d files.

The X.org server - a prerequisite - is being launched the same exact way.

The logging module is also tightly integrated into the system, logging some pertinent parameters of the mining rig with a 6 minute interval.
Cgminer output is being kept on-record as well so that it is easily accessible should errors crop up and need to be trouble-shot.


To ensure update flexibility and safety, I have been using the following set up:
Four concurrent versions of cgminer can coexist; they are labeled cgminer-stable, -testing, -oldstable, and -oldtesting and reside in their own respective directories.
Upon being installed, a new cgminer compilation is assigned the testing status by default.
Its status can be changed, e.g. to stable at any given time.

All cgminer calls are processed via a symlink named cgminer-current which always links to one of the four directories.

To make sense of four cgminer executables which can in some cases have the same version number but are based on different git commits, I needed to create an automatic cgminer installer (cgminer-update.sh) which creates the version.info file (containing the git version) in the installation directory.
A fresh copy of cgminer source will be downloaded from git, compiled and automatically installed into /opt/bcm/cgminer-testing.


I find it that such a tight integration with the OS is the right approach to take in machines as purpose-built as mining rigs are.
I tried hard to fit miners and miner control into the OS as snugly as possible, to stay true to the "Debian way" - whatever is might be Wink


If anyone's interested, I might write a guide and share some code... just give me some time to do that, a week or two(2) as I do have a day job and other real-life commitments...

Does anyone want this?

Notes:
(1) actually, the user is also being changed with su bcminer so that cgminer doesn't run as root which would be a horribly wrong idea from the system security standpoint.
(2) ummm... how does a "4 to 6 weeks" timeframe sound to you, guys? Tongue
    
187  Other / CPU/GPU Bitcoin mining hardware / Re: Thermaltake 1350w PSU troubles... on: February 21, 2012, 11:28:20 AM
The 1350w is pretty new, and thermaltake makes a decent PSU. I never drew more than 800w at the wall, so it's not like I was beating the hell out of it. It was running stable until I disconnected it, so I am stumped as to what could have gone awry while it was just sitting.
FYI, Thermaltake does not make PSUs, not a single one. They contract the PSUs out to oem manufacturers. The Thunderbolt series is made by Sirfa. Your Toughpower was manufactured by CWT.

Do check the voltages with a multimeter and inspect all connectors visually to make sure no contact was damaged during the installation.
You didn't forget to plug in the 4-pin ATX/ 8-pin EPS connector, did you? Wink
188  Other / CPU/GPU Bitcoin mining hardware / Re: Is this a good psu for my setup? on: February 21, 2012, 02:11:27 AM
Personally, I wouldn't touch Litecoin with a 10 feet pole...  failing to offer a single feature which Bitcoin would lack it just has no niche in the ecosystem.

Being CPU-mineable is totally irrelevant - when all's said and done it's just another Bitcoin clone but with little to none foothold in the market space.
As a business, why would I choose any of the current alt-coins over Bitcoin?
189  Other / CPU/GPU Bitcoin mining hardware / Re: Is this a good psu for my setup? on: February 21, 2012, 02:02:44 AM
have trouble running four 5850s with a 1100w PSU gold rated.  Windows machine that is.
Really? 1100? i have a pc power and cooling 910W running 4 5850s with 6 fans (one of those fans is a scyth too)
Hey, he said it was a Windows based machine... Wink

On a more serious note, up to 170W per a 5830 card, 150W for each 5850, 180W for a 100%-loaded 6 core Phenom (up to 270W when overclocked to 4.1 GHz), 20 for fans and drives...
OP should have no less than 1kW of juice at the ready when the cavalry... uhmmm... 5850s arrive.
190  Bitcoin / Bitcoin Technical Support / Re: How do GPU's get theire numbers? on: February 21, 2012, 01:52:44 AM
If found on MSI 890FXA-GD70 MB that in moving cards around I got aticonfig all screwed up.  Nothing seemed to fix until I reset (not flashed) bios.  Then cards were back in the right order.  I think BIOS may have something to do with the order that OS sees the cards in.
Naturally, see the Init Display First setting.
The order cards are initialized in is reflected in the BIOS device map (that measly 64k of memory which tends to get clogged up with the unnecessary mobo "goodies").

Some better-behaved bioses actually allow you to choose PEG1 or PEG2 (as in PCI Express Graphics) as the primary device.
I've yet to see a bios allowing me to select any PCIe slot for the primary GPU.
191  Bitcoin / Mining support / Re: 6950 mining, card crippled now (3btc bounty) on: February 21, 2012, 01:37:54 AM
The bounty be damned, I find it more interesting whether the malfunction was caused by the bios flash or mining.

I never damaged any of my cards but there have been failures aplenty reported in the forums.
One user reported 10 out of 10 failed GPUs after 6 months of mining - surely, he must have done something wrong.

Your cards seem to have had an easy life being undervolted and only slightly overclocked.

Since you mention this was a specially crafted BIOS, the failure is either mining-related or just random.
192  Other / CPU/GPU Bitcoin mining hardware / Re: Mining rig extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] on: February 21, 2012, 12:49:24 AM
Really? Also please don't say virtualization these are non VT-d capable CPUs.
I don't feel like digging through spec sheets, doesn't it take a Faildozer^WBulldozer-based CPU to get amd-vi (AMD equivalent of VT-d)? Ugh...
Intel is even worse as even some of their server-grade CPUs lack VT-d support.
193  Bitcoin / Mining support / Re: 6950 mining, card crippled now (3btc bounty) on: February 21, 2012, 12:41:39 AM
Thank you for the response. The bios were 6950 bios but are TW2 6950 bios.
Just run GPUz and check the clocks and voltages.
Post a screenshot here if you're unsure what to look for.
194  Bitcoin / Pools / Re: A1BitcoinPool Complaint on: February 21, 2012, 12:23:28 AM
lmao Cheesy
195  Other / Beginners & Help / Re: 6870 and 5970 on 750 Watt PSU? on: February 21, 2012, 12:19:01 AM
Provided you don't waste power by e.g. by CPU mining Litecoins, easily.
A 5970 shouldn't pull more than 250 W with its memory underclocked.
With 120 W for the rest of the system, the PSU load would be 82,7% - not unreasonable for a high quality PSU such as the ZT 750W.

Make sure that the CPU power save options (such as SpeedStep or C1E) are enabled in the BIOS.
196  Bitcoin / Mining support / Re: 6950 mining, card crippled now (3btc bounty) on: February 21, 2012, 12:04:12 AM
Did you unlock by reflashing with a 6970 bios?

The 6970 cards use higher-grade memory chips than 6950, thus a bios flash would set higher memory voltages and clocks than the 6950 memory can handle.
This approach is widely known to be potentially lethal to the card, that's why alternative means of unlocking were devised (e.g. the RBE method).
Once the damage is done, nothing short of replacing the failed memory chips can help.

Mining uses next to no memory at all, therefore as long as the physically first memory chip on the card is operational the card will work fine.

Also, remember never to use high overclock settings used for mining for playing games - games use other areas of the chip than only the stream processors which may not like the insanely high clocks.
197  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.7 on: February 20, 2012, 11:50:02 PM
I know others have been able to get much higher than 266Mhas/s rates, but sadly if I increase the card's Mh/s, my system becomes unstable. I am guessing it's because I am mining on Windows, and on my main machine that's also doing some other things
You're probably guessing right. Don't worry, all in all 266 MHash/s isn't that bad for a 1120 SP card employed in a non-dedicated machine.
For a dedicated rig, however, anything lower than 300 MHash/s is inexcusable unless the card is heavily undervolted.

I really doubt it's the worksize that caused the reject rate to go up. A random packet storm seems more plausible. Care to retry?
If you happen to be using a 12.x drivers X 2.6 sdk combo --vectors 4 and --worksize 128 might boost the hash rate somewhat.
198  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.7 on: February 20, 2012, 11:18:54 PM
It won't make up for high network latencies and the shares which turn stale in transit.
Give it a try, just don't expect miracles.
199  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.6 on: February 20, 2012, 11:11:09 PM
So what is that submit stale flag for ?

Cheating PPS pool ops or what Huh

Thank you and forgive my ignorance but it does not really explain it in the man.
It's for the very rare occasion where cgminer might miss an opportunity to score a share when it thinks it is already stale and doesn't send it out but the pool would have accepted it.
The SS counter in cgminer windows tells you how many times cgminer didn't bother with sending a calculated share.

You can't cheat any pool because if the share is indeed stale, the pool will just classify it as such.

P2pool is specific because it uses a much higher difficulty than the rest of the pools, therefore all shares are of a much higher value.


Conman, I don't feel like delving through the code right now but wasn't the fact that --submit-stale influences Utility the reason it's off by default?
I mean the situation where a share that would otherwise be locally discarded gets sent out increasing the [ U] rating even though that share gets tossed away by the pool?
200  Bitcoin / Mining software (miners) / Re: CGMINER GPU bitforce overclock monitor fanspeed GCN RPC linux/windows/osx 2.2.6 on: February 20, 2012, 11:00:53 PM
Due to high value or each high-diffigulty p2pool share, I recommend you use --submit-stale.
This will make cgminer submit every share it finds, even if it thinks it is already stale. This won't make a huge difference but might net you an additional share every now and then.
This is no longer necessary with the latest cgminer since p2pool will send the message "submitold" which cgminer now supports, so it will do it selectively for p2pool anyway.  Wink
You're a coding monster, Con. With all those updates it's hard to keep up.
Thanks.
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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!