Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > Starting up dnet with an AS...

Starting up dnet with an AS...
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Dec 2, 2001, 10:17 PM
 
can't you start up teh dnet client in the terminal by typing its full path?
Can you copy that text and put it in an applescript?
Can you have the script run at startup, thereby starting dnet on machine startup, without having it stop and restart every hour?
I don't know much about terminal commands but i do know AppleScript, wouldn't this work fine?
     
Fresh-Faced Recruit
Join Date: Nov 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Dec 2, 2001, 10:35 PM
 
You can download the dnetc wrapper from the distributed.net download site. That will let you launch the dnetc client on startup without having to mess with the terminal. Even with the terminal, you shouldn't have to restart it every hour. How did you configure it?
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Dec 2, 2001, 10:48 PM
 
I just start mine manually every time, i mean how often do you restart with X? Not very. But reading the directions on teammacnn, it talks about crontabs (don't know what they are) nad how you hav eto set your client to quit every 55 minutes because it starts up a new copy of the client every hour. Where is this 'wrapper', I haven't seen it, it doesn't stay in the dock does it? I run it out of the terminal now and its GGGGone.
     
Fresh-Faced Recruit
Join Date: Mar 2000
Location: Nanaimo, BC, Canada
Status: Offline
Reply With Quote
Dec 3, 2001, 01:12 PM
 
i find the crontabs to work very nicely... that way you don't have to mess with your System folder... and you don't have to start it manually.


Actually, I did a dangerous thing to make it startup with MacOS X before I learned about crontabs:

I modified the text file for the Directory Services item in Startup Items... at the very bottom, I add one line:

/dnetc/dnetc -quiet

worked like a charm, you just have to download the RC5 client and set it up in the directory you want *as root*, otherwise, it might not work.

I even had it display a message saying "RC5 startup" in the OS X startup sequence.


However, once I realised how easy crontabs where to set up... I did it that way, it's much less nerve racking.


FYI: To set up RC5 using crontabs

#1 Login to MacOS X as whoever (this procedure does not require root). Download RC5, and run it in the Terminal. In the first configuration option, set a time limit of 55 minutes (00:55)

#2 Using BBEdit (make sure it's set to save files with UNIX linebreaks), type the following line.

00 * * * * /Applications/dnetc/dnetc -quiet

(explanation, don't type this in: this line will make the OS X start RC5 whenever whenever the clock minutes is 00. So at the top of ever hour. The believe the other fields are, from left to right, "any" hour, "any" day, "any" week, "any" year. As for the actual command... just make sure the path is pointing to where you have the RC5 program.

#2(b) There is only one trick to making a "crontab" file.... the spaces in between each setting (ie. 10 * * * * /Applicblah/dnetc -quiet) have to be TABS!. Don't use the space bar... it won't work. Also, make sure BBEdit is set to save files with UNIX linebreaks... it won't work with Mac breaks. Now save that file as "crontab" in your Home directory (it doesn't really matter... but that's easiest).

#3 In Terminal, open a new window... go to the directory where you saved your crontab file, if you put it in your Home directory, you shouldn't have to do anything.

#4 Type:

crontab crontab

(That tells the application "crontab" to look for the file you created called "crontab")

#5 To make sure it worked type:

crontab -l

(That's a lowercase "L". This will list any directions the crontab application has... you should see the entry you typed.)


There!!

You're done! Now just wait until the top of the hour, open up CPU Monitor, and make sure it pegs at 100%.


NOTE: you don't have to set it to "00", for "immediate gratification", I just set the minutes value to 2 minutes after I'm working on it... that way I don't have to wait until it's over. (So for example, it's 11:19 right now, so I would set the minutes to 22)
     
Mac Enthusiast
Join Date: Jul 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Dec 4, 2001, 08:10 AM
 
Originally posted by chrisale:
[QB]i find the crontabs to work very nicely... that way you don't have to mess with your System folder... and you don't have to start it manually.


Actually, I did a dangerous thing to make it startup with MacOS X before I learned about crontabs:

I modified the text file for the Directory Services item in Startup Items... at the very bottom, I add one line:

/dnetc/dnetc -quiet

worked like a charm, you just have to download the RC5 client and set it up in the directory you want *as root*, otherwise, it might not work.

I even had it display a message saying "RC5 startup" in the OS X startup sequence.


However, once I realised how easy crontabs where to set up... I did it that way, it's much less nerve racking.
[QB]
Just curious as to why this is nerve racking I was actually looking to do something like this without the quiet. Is there a way to start it minimized in the dock? I like to check in on the progress. Also is this running in all user contexts or is it running as a service? In other words, will it start up if I log in as bob or mike, or do I need to modify files for each user?
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Dec 5, 2001, 11:58 PM
 
yeah but doesn't that mean that dnet only runs for 55 out of every 60 minutes? and doesn't that also mean that every 55 minutes, you lose the current two blocks (for MP machines) becuase they are quit. I don't wanna do it that way, the first way you said to do it sounds perfect for me! Thats jsut hwo I want it to run. Where is the file you modify, and where do you put dnet?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:41 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2