Discussion in 'World Community Grid (WCG)' started by FordGT90Concept, Aug 7, 2013.
No it is nots. It has just a base Ubuntu 13.04 install , Chrome and Boinc. Thats it.
Try it with Mono...unless you're telling me that defeats the purpose.
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.
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.
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
screenies after this line
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
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.
It didn't do anything. I right clicked and sad to open with mono and absolutely nothing happened.
Maybe that will be more descriptive (or work altogether...one can hope).
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.
Maybe this will help:
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.
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.
That would be me .... Norton = Linux noob
Ah I wasn't trying to single you out buddy. LOL
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.
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.
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?
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.
Hehehe yea the new unity shell interface takes some getting use too.. hehehe But remember the easiest way to get to terminal is
Ctrl + Alt + T
Ctrl + Alt + T
Maybe this would work? So how is that BOINC ...ll meaning there's no way to accomplish this.
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.
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.
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.
There has to be a way or BOINC couldn't write to it. I need to replicate that way.
Does boinc actually write to the xml file or does it just read from it?
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?
Separate names with a comma.