1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

BOINC Config Utility

Discussion in 'World Community Grid (WCG)' started by FordGT90Concept, Aug 7, 2013.

  1. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    No it is nots. It has just a base Ubuntu 13.04 install , Chrome and Boinc. Thats it.
     
    Crunching for Team TPU
  2. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    Try it with Mono...unless you're telling me that defeats the purpose. :(
     
    Crunching for Team TPU
  3. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Yes that defeats the purpose. I am thinking of this to be more suited to new users. A click and done deal if it's even possible. Also the cc_config file will need root access to change it. For me I don't mind firing up terminal and sudo editing the file. But newbies to *nix will run in fear. LOL.

    I was helping another member the other day editing his config file and didn't even think to tell him how to get to terminal. He found it with a goggle search. I have also seen the occasional "how do I install Boinc on Linux" question. So if this program is possible it has to be geared towards newbies in the *nix world.
     
    Norton says thanks.
    Crunching for Team TPU
  4. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    If Mono handles permissions the same way as .NET, it should be easy to elevate them. Someone would have to try it and tell me if it requires higher permissions. If Mono behaves the same as .NET, it should demand adequate permission before it even starts.
     
    Crunching for Team TPU
  5. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Here's how I do it.

    First I fire up terminal.
    Then I type " sudoedit /ect/boinc-client/cc_config.xml"
    It will ask for root password \, I enter it and hit enter
    then it will pop up the file and I add in
    "<options>
    <report_results_immediately>1</report_results_immediately>
    </options>"

    screenies after this line


    [​IMG]

    [​IMG]


    I may have to setup the other rig to try it out with mono as it seems to only be offically supported up to Ubuntu 12.10 and I am running 13.04.




    I tried opening it with mono and nothing happened
     
    Last edited: Sep 12, 2013
    Norton and FordGT90Concept say thanks.
    Crunching for Team TPU
  6. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    Did it close itself or did it just hang? It should be incapable of hanging. I might know why it just closed if that's what happened.
     
    Crunching for Team TPU
  7. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    It didn't do anything. I right clicked and sad to open with mono and absolutely nothing happened.
     
    Crunching for Team TPU
  8. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    Crunching for Team TPU
  9. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Same thing, nothing. I am going to try it under wine once it installs.




    Under wine I get a quick blip of a black box is all. Also theres no rush on this. I will put together another rig to keep testing this on so I don't boink my Linux install on my i7 rig.
     
    Last edited: Sep 12, 2013
    FordGT90Concept says thanks.
    Crunching for Team TPU
  10. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    Maybe this will help:
    http://www.mono-project.com/Guide:Running_Mono_Applications

    mono WcgConfigurator.exe should have worked.


    If the terminal is ignoring my Console.ReadKey() commands, that would be all it should do. Maybe try changing report_results_immediately to 0, run it, and check if it changed back to 1.


    Still...this isn't sounding any more efficient than your method because Mono isn't designed to be intrinsic like .NET is to Windows. :(
     
    Crunching for Team TPU
  11. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Also it should ask for the root password to change the file. For some reason it is lock down tight and you need root access to open the file to edit it.





    Changed from 1 to 0 and ran the exe file through mono and nothing happened.
     
    Last edited: Sep 12, 2013
    Crunching for Team TPU
  12. Norton

    Norton WCG-TPU Team Captain

    Joined:
    Dec 21, 2011
    Messages:
    9,122 (8.32/day)
    Thanks Received:
    21,474
    That would be me :laugh:.... Norton = Linux noob :ohwell:
     
    ThE_MaD_ShOt says thanks.
    Crunching for Team TPU More than 25k PPD
  13. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Ah I wasn't trying to single you out buddy. LOL
     
    Crunching for Team TPU
  14. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    2.0.2: http://fordgt90concept.homeip.net/apps/Binaries/WcgConfigurator.exe

    It should "requireAdministrator" but that's a UAC thing, I doubt Mono will adhere to it. Under UAC, if administrator account is password protected, it would require the password be input.


    Don't quote me on this but Mono may require elevated rights, not WcgConfigurator. On windows, when it executes it is the executable. On *nix, it might only be Mono that executes.
     
    Crunching for Team TPU
  15. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Okay we are getting somewhere now. kinda LOL I tried simply clicking on it and right clicking and hitting open with mono. Did same thing as before which is nothing. So I fired up terminal and provoked it from there and got this.

    [​IMG]
     
    FordGT90Concept says thanks.
    Crunching for Team TPU
  16. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    Was that 2.0.2? If so, you're right: can't touch the cc_config.xml. Is there a way for my application to demand read/write privileges to that file?
     
    Crunching for Team TPU
  17. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Yes it was 2.0.2. The program would have to gain root/admin access to the file.

    Now I may be talking out my bung hole and off my rocker, but is there a way to write the program so it:
    A: opens terminal
    B: enters the "sudoedit /etc/boinc-client/cc_config.xml" command
    C: enters the password for root/admin
    D: applies the report results line to the config file
    E: enters "ctrl+x"
    F: enters "yes"
    D: enters "enter"
    E: closes terminal.


    Now if someone with more experience in Linux knows of another way to gain access to the file and to apply the changes, please chime in.


    Basically we need it to work like the older version of the configurator, where it went to the command prompt. and had simple choices to make. We just need it to go to terminal in linux and have some simple question to answer. Like press enter and enter password for root.
     
    Last edited: Sep 12, 2013
    FordGT90Concept says thanks.
    Crunching for Team TPU
  18. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,429 (2.62/day)
    Thanks Received:
    3,015
    Location:
    Statesville, NC
    Hehehe yea the new unity shell interface takes some getting use too.. hehehe But remember the easiest way to get to terminal is
    Code:
    Ctrl + Alt + T
    :toast:
     
    Norton says thanks.
    Crunching for Team TPU
  19. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
  20. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    I am beginning to fell the same way. Maybe I just need to write up a detailed tutorial on how to make the changes through terminal and hope new people to *nix will be able to understand it clearly.
     
    Crunching for Team TPU
  21. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    I'm thinking there has to be a way to start the program as a user kind of like on Windows with "Run As Administrator." I have no clue how to do that in *nix but I'm looking.
     
    ThE_MaD_ShOt says thanks.
    Crunching for Team TPU
  22. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Not sure man. I am logged in as admin on my nix rig and it still locks the file down. I have to still sudo edit it and enter password to access the file. No right clicking and editing.
     
    Crunching for Team TPU
  23. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,098 (6.24/day)
    Thanks Received:
    3,915
    Location:
    IA, USA
    There has to be a way or BOINC couldn't write to it. I need to replicate that way.
     
    Crunching for Team TPU
  24. ThE_MaD_ShOt

    ThE_MaD_ShOt

    Joined:
    Nov 29, 2011
    Messages:
    5,114 (4.58/day)
    Thanks Received:
    3,775
    Location:
    Hi! I'm from the Internet
    Does boinc actually write to the xml file or does it just read from it?
     
    Crunching for Team TPU
  25. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,429 (2.62/day)
    Thanks Received:
    3,015
    Location:
    Statesville, NC
    I've got to run to a meeting, but why not create the file outside of /etc and then do a sudo cp to the /etc directory?
     
    Crunching for Team TPU

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page