Pages:
Author

Topic: Smartcoin Linux mining administration. [MULTI-MACHINE SUPPORT NOW IN!] - page 36. (Read 105029 times)

full member
Activity: 238
Merit: 100
Jaebird

I may create a simple API layer that separates the database from the API interface, so that those wishing to retrieve information for display purposes (including web pages) will have a method to do so (read-only information for display purposes only for obvious reasons).
I'm glad it worked well for you stacking it on top of LinuxCoin - I figured it would play nice, but hadn't had time to try it out myself, so thanks for the report.  Thanks for the kind words also Smiley
full member
Activity: 238
Merit: 100
Sharky,

I understand that a lot of people will want a web front end, but again, I created this specifically for those that wanted/needed something easily controllable over ssh.
I understand that its not going to be for everyone, and that's ok.
Another thing to consider here is security.  Do you really want your miners controllable over a web page?  What if I did a web page, a hacker got by security and changed all your pool workers, or peeked at your passwords.  For these reasons (and many others such as encrypted communication), there are some of us that will use only use shh to manage our miners.  Exposing your machine to http/https where there is the possibility that a user has a wallet.dat on that machine (or even the same network) is a bad idea, IMO.  I also don't want to make software that a user might download with the false assumption that I'm a security expert (likewise I can't expect all users to be security experts themselves). By entrusting this security to the ssh client/server, I eliminate problems on both sides of this equation Smiley


Don't worry, a lot of effort will go into making it reasonably easy to control multiple machines from one session, that is one of the main goals of this project. 
sr. member
Activity: 383
Merit: 250
BlueHelix,
I'll soon be adding the ability to pass a path as a parameter to the install script.
For now,  all you need to do is create a symbolic link in /usr/bin to smartcoin.sh

Jaebird,
Web interface is pretty low on my list, as smartcoin is specifically made to be a terminal application.
I'll likely add simple web display with netcat, but not sure how much I'd want to go beyond that at this point,  though I'll definitely revisit the question sometime in the future


A web interface is crucial if you want people using/donating that have more than one Linux box up and running.

Say I have 10 Linux boxes up and running but no ability to monitor them on one screen, it would be a real pain in the A**.

I would like the ability to go to one web page on my web server and see if every thing is going OK.

member
Activity: 79
Merit: 10
BlueHelix,
I'll soon be adding the ability to pass a path as a parameter to the install script.
For now,  all you need to do is create a symbolic link in /usr/bin to smartcoin.sh

Jaebird,
Web interface is pretty low on my list, as smartcoin is specifically made to be a terminal application.
I'll likely add simple web display with netcat, but not sure how much I'd want to go beyond that at this point,  though I'll definitely revisit the question sometime in the future


I understand. I figured if nzbtc wants to leverage your db schema, perhaps there is some synergy between your two projects. I run my miner as headless and sometimes it would be great to see the status page displayed in a readonly http get (JSON anyone?), rather than an ssh term. Btw, this is a great project. I combined it with linuxcoin and a usb thumbdrive...makes for a perfect no hassle miner. Your bash skills are truly great!
full member
Activity: 238
Merit: 100
BlueHelix,
I'll soon be adding the ability to pass a path as a parameter to the install script.
For now,  all you need to do is create a symbolic link in /usr/bin to smartcoin.sh

Jaebird,
Web interface is pretty low on my list, as smartcoin is specifically made to be a terminal application.
I'll likely add simple web display with netcat, but not sure how much I'd want to go beyond that at this point,  though I'll definitely revisit the question sometime in the future
member
Activity: 79
Merit: 10
I don't want to cross post, but nzbtc on the LinuxCoin thread is putting together a web frontend. I think it would be cool to have a web front end on smartcoin... synergy perhaps?
newbie
Activity: 20
Merit: 0
My user is not in the sudoers file. and I dont realy want to change that.

I installed as root but now my user has no symlinks Sad
can you build in a prompt so root can decide for which user this is !?

Or any other solution than  this maybe a fix_symlinks.sh
full member
Activity: 238
Merit: 100
redid the rejection % calculation. It is now accurate to 3 digits and is much better.. Just have to svn-update, and restart the status script to get the change.

A note about what I'm working on now:
I'm working on an Update system for smartcoin.  This is needed so that I can update the database schema if I need to, without losing your current information or requiring a full reinstall.  It will also allow you to specify stable or experimental updates.  Experimental updates will be pulled from the svn trunk.  Every now and then, when the trunk is stable, I will merge the changes back into the stable branch (currently the beta 1 branch), and increment a number stored in an update file (that will be part of the svn tree).   When the stable version sees this number increment, it can do the svn update which will only happen when stable changes are merged.
In both stable and experimenal branches, once the svn update is run, a post-update function is ran, which is passed the svn revision numbers before and after the update.  A loop in this function will execute special clauses (such as adding new database tables and fields) against certain revision numbers, bringing your copy up to date (including database schema) with current.  Hopefully this will put an end to re-installs, and provide a stable update platform for the users.  The Update option will be added to the menu system soon Smiley

full member
Activity: 238
Merit: 100
Revamped the AMD/ATI SDK location detection routine.  It *SHOULD* locate the SDK install pretty much anywhere it may be now (/home/user  /root  /opt .... whatever)
The downside is, at this present time, install will probably break if you have more than one AMD/ATI sdk installed (2.1 and 2.4 side-by-side  for example).  I'll work on coding the pieces later int the week to let handling multiple installs more graceful.

If anyone cares to give it a test on a fresh install, please post back if it was able to find the AMD SDK location on your machine.
full member
Activity: 238
Merit: 100
Yes, I made the switch to sqlite in favor of mysql,  mostly for support reasons.  You should be fine to uninstall mysql

member
Activity: 84
Merit: 10
Yes, it currently does prompt for location, but it tries to find it first and if found pre-fills it in for you

Yep, my bad.  Just pulled the latest and said, "Hey!  It does prompt now!".

Did you also move it to using sqllite?  I see it installed it, but I had previously installed MySQL and wondering if I can uninstall it now, since it never prompted me for credentials to the database.
full member
Activity: 238
Merit: 100
Yes, it currently does prompt for location, but it tries to find it first and if found pre-fills it in for you
member
Activity: 84
Merit: 10
Thanks for the report,   I'll add /opt to the list if locations to search

Any chance you can just prompt for the location with a default?  I install mine in /usr/local/miners, but I'd think there are lots of variations.
full member
Activity: 238
Merit: 100
Thanks for the report,   I'll add /opt to the list if locations to search
legendary
Activity: 1855
Merit: 1016
Thanks.
This version worked/working correctly.
But still a small change you need to make.
My AMD-APP directory was not /home/user.....as you mentioned, I used Inaba step by guide to install Ubuntu 11.04 64 bit with APP 2.4, I used search function  & find out that APP is installed in
Code:
/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/

Please update in your miner.
Thanks
full member
Activity: 238
Merit: 100
Also, please go into  your smartcoin directory and run
Code:
svn update
then kill and restart the status script (on the status screen for localhost, hit ctrl+c to kill it, o to open it -  or you can just kill(exit) smartcoin from the control screen, and start it right back up)
I just fixed a bug with the manual profiles (a query that MySql was fine with, but the new sqlite3 didn't quite like).  I just found it while testing it as I did the above manual profile example

full member
Activity: 238
Merit: 100
Clipse:  thanks for the kind words. I hope everyone that uses it finds it  very useful!

gyzer:  Glad to hear that you're up and running.  Though I'm sure it was a pain, the problems you had helped me come up with a better installer and should help a lot of people down the line


Have you guys tried out manual profiles yet?  Here is an example of a simple one:
Assume that you have a favorite pool, and at times you want to throw all your hashing power at that single pool.  Assume that you have 2 GPU's, GPU[0] and GPU[1], and that your favorite pool is BTCMine. Also assume that you have a BTCMine worker already set up

-Choose option Cool Configure Profiles
-'a' for add
-1 for localhost
-Give the profile a name, such as "All Eligius"
-Select which miner to use

At this point, the screen will clear, and your current progress (which is now blank) will be shown at the top of the screen.  Now we start setting up our instances.
- Select the BTCMine worker
- Select GPU[0]

The screen will clear again, showing the updated progress of this profile. you should now notice that you now have a single BTCMine instance assigned to GPU[0]
You are asked if you want to continue adding to the profile.  type 'y' for yes.

- Select the BTCMine worker again
- Select GPU[1]

Again, the screen will clear an give you an overview of the instances you have set up.  Now you can type 'n' for continuing adding instances, because you are finished.

You can now go into 5) Select Profile, and you will notice that the profile that you created is now listed there.


Remember, you can set up any combination of instances and cards as you want, and recall them any time with profiles.  They're a little complicated to understand at first, but I encourage you to play with them!






jr. member
Activity: 50
Merit: 10
Wow...I got it working. That last build was so much easier than the first few beta builds. I'm now up and running on two pools at the same time on two cards.

Thank you so much!
hero member
Activity: 504
Merit: 502
Great work on this.

I urge anyone using this and finding it usefull(as you no doubt would) to donate some spare minutes of donation to jondecker for this brilliant piece of software.

Busy redoing my miners and adding more, once thats done you will be getting minutes from me jon Smiley
full member
Activity: 238
Merit: 100
Ok, I'm having good luck getting it to work here with no LD_LIBRARY_PATHs set (I love linux, but LD_LIBRARY_PATH and subshells are always a PITA for linux developers)

You will need to fully uninstall
Code:
cd ~/sudo rm -r smartcoin
killall screen

Then reinstall fresh:
Code:
mkdir smartcoin
cd smartcoin
svn checkout http://smartcoin.googlecode.com/svn/branches/beta1/smartcoin ./
./smartcoin_install.sh

Whats new:
- Its now not possible to run the installer twice.  This used to cause double-entries in the database which could cause problems.
- An attempt to find the AMD/ATI SDK is made.  You are asked to enter the path - if it was found, then it is pre-entered for you. If it wasn't found, then you can still type it manually (if you used a substandard location etc..)
- Multiple installations of phoenix are handled more gracefully now.  You will now be asked to select from a list which one you want to use.


I'm hoping these changes will make  it much easier to get running, without having to worry so much about paths and environmental variables.
Let me know if it works!
Pages:
Jump to: