which directory ...

Questions and Answers : Unix/Linux : which directory ...
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Jim Baize
Volunteer tester

Send message
Joined: 6 May 00
Posts: 758
Credit: 149,536
RAC: 0
United States
Message 50750 - Posted: 2 Dec 2004, 20:44:39 UTC

I am a linux newbie and I am trying to install BOINC. Unfortunately, I don't know where to put it in the directory tree. Where is the "usual" or "accepted" directory for things like this?

Thank you in advance.

Jim
ID: 50750 · Report as offensive
Zardoz

Send message
Joined: 21 Nov 03
Posts: 13
Credit: 17,383,109
RAC: 0
United States
Message 50794 - Posted: 3 Dec 2004, 1:11:12 UTC

Hi Jim,

If you're new to Unix/Linux you might want to find a copy of the "Linux Filesystem Hierarchy"--available from many locations on the web as a .pdf file. It's a good reference for understanding how how the Linux filesystem is layed out, what generally goes where, and where to go look for things. Note that each distribution will be a little different.

Anyway, on my system I put the boinc directory structure in /var as "/var/boinc/..." but some might argue for "/usr/local/boinc/...". I chose /var over /usr mainly because the boinc and seti clients contain dynamic data and must be writable while the system is up and running and /usr should remain static; i.e., you should be able to make /usr readonly and still have the system operate normally.

Hope this helps you decide.

==> dave

ID: 50794 · Report as offensive
pindakoe

Send message
Joined: 4 Jun 00
Posts: 60
Credit: 345,676
RAC: 0
Netherlands
Message 51189 - Posted: 4 Dec 2004, 7:31:39 UTC

This website has a nice explanation how to setup BOINC as a daemon/service under its own username (to limit the access it has to your system):

http://pirates.vassar.edu/help/unix.html


ID: 51189 · Report as offensive
Profile Jim Baize
Volunteer tester

Send message
Joined: 6 May 00
Posts: 758
Credit: 149,536
RAC: 0
United States
Message 51272 - Posted: 4 Dec 2004, 16:02:28 UTC

@ Kees-Jeen
Thank you for the links and the information. I am looking at the Pirates site right now. I hope I can get it to work.

@Zardoz
I am going to try to find the "Linux Filesystem Hierarchy" also. It sounds like a very helpful article, and on a subject that I've been wanting to read.

I have put on my Christmas list a couple of books on Linux. I hope I can get at least one of them.

Thank you again both of you for your help.

Jim
ID: 51272 · Report as offensive
Profile Jim Baize
Volunteer tester

Send message
Joined: 6 May 00
Posts: 758
Credit: 149,536
RAC: 0
United States
Message 51298 - Posted: 4 Dec 2004, 16:46:32 UTC - in response to Message 51189.  

I've tried these instructions with Debian and they don't work. I am going to still continue to try to figure it out. When I do I will send the instructions to you or to this list or both.

Jim

> This website has a nice explanation how to setup BOINC as a daemon/service
> under its own username (to limit the access it has to your system):
>
> http://pirates.vassar.edu/help/unix.html
>
>
>
ID: 51298 · Report as offensive
Profile Jim Baize
Volunteer tester

Send message
Joined: 6 May 00
Posts: 758
Credit: 149,536
RAC: 0
United States
Message 51306 - Posted: 4 Dec 2004, 17:09:26 UTC - in response to Message 51298.  
Last modified: 5 Dec 2004, 13:58:35 UTC

Ok... I've tried the following command. I am running the testing version of Debian (Sarge).

I have no idea yet if it worked or not. Like I said, I'm a linux newbie.

start-stop-daemon -x ~boinc/boinc_4.13_i686-pc-linux-gnu-gz --start -b -c boinc -r ~boinc

Ok, so, now if I understand what I did ...
-x (execute )
--start (start the daemon)
-b (force to the background)
-c (run as )
-r (run in )

if I have messed up on my understanding, please inform me so that I may learn.

Thank you.

Jim

> I've tried these instructions with Debian and they don't work. I am going to
> still continue to try to figure it out. When I do I will send the
> instructions to you or to this list or both.
>
> Jim
>
> > This website has a nice explanation how to setup BOINC as a
> daemon/service
> > under its own username (to limit the access it has to your system):
> >
> > http://pirates.vassar.edu/help/unix.html
> >
> >
> >
>

[Edit] I don't think this worked. :( I looked on the SETI Website but haven't seen the name of my Linux machine. Hopefully it was just because the pages hadn't had time to update yet.
ID: 51306 · Report as offensive
Zardoz

Send message
Joined: 21 Nov 03
Posts: 13
Credit: 17,383,109
RAC: 0
United States
Message 51658 - Posted: 5 Dec 2004, 21:35:59 UTC

Hi Jim,

If your account doesn't list the system then yes it "didn't work" and it doesn't seem to have done it's initial connection to the project.

You need to run the boinc client interactively the first time through and answer some questions (account, seti URL, et cetera) before attempting to run it as a daemon on system start. Also, from the command you listed it's hard to tell exactly what was expected, but it appears you may have been trying to execute the gzip compressed file that was downloaded.

Can you try/confirm the following:

1. Go to the directory that you downloaded the BOINC client "boinc_4.13_i686-pc-linux-gnu.gz" into. Example:

'cd /home/boinc'

you should be able to see the file with an 'ls' command.

2. Unpack the archive using the gunzip command. Example:

'gunzip boinc_4.13_i686-pc-linux-gnu.gz'

you should now see the unpacked file "boinc_4.13_i686-pc-linux-gnu" replacing the ".gz" version. This file sould also 'bigger'... use the command 'ls -l'.

3. Make the boinc client file executable by changing the 'mode' bits on the file to allow execute access using "chmod". Example:

'chmod +x boinc_4.13_i686-pc-linux-gnu'

4. Execute the boinc client interactively. Example:

'./boinc_4.13_i686-pc-linux-gnu'

It should prompt you for your information, connect to the project, run the benchmarks... and start processing work.

Are you able to get this far?

==> dave


ID: 51658 · Report as offensive

Questions and Answers : Unix/Linux : which directory ...


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.