Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 10
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1221 times and has 9 replies Next Thread
FOBioPatel
Cruncher
Joined: Apr 10, 2005
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
biggrin Instructions for Installation on Linux with only SSH (command line) access

I had trouble getting things started, primarily because I am new to Linux and I was fed too much information. Kevin at World Community Grid was kind enough to tolerate my requests for assistance and provided me with very simple installation instructions. Here they are for your reference - if you are having any trouble getting this to work:

Remove the BOINC stuff that you have installed so far.

Create a directory where you want to download and install BOINC on your server. I used /home/boinc

For simplicity's sake, you can create a user named boinc and give it SSH access (and root access if possible).

In the /home/boinc directory run the following commands
1.)
wget http://boinc.berkeley.edu/dl/boinc_5.2.7_i686-pc-linux-gnu.sh


2.)
chmod 700 boinc_5.2.7_i686-pc-linux-gnu.sh


3.)
./boinc_5.2.7_i686-pc-linux-gnu.sh


This will create a directory /home/boinc/BOINC where all the files are
installed.

go into this directory (by typing "cd BOINC" - no quotes - while logged in as boinc and run the following command

4.)

./boinc -attach_project http://www.worldcommunitygrid.org <key>

<key> is a 32 character string and is
whatever Account Key you were assigned
when you downloaded the Linux client
(it was also emailed to you)

***I am assuming I can just exit my SSH client after it fully initializes and runs, but I am not sure. I do not know how to check the status if I open a new SSH session.***

Finally - you may want to upload a script named "boinc " and copy it in your /etc/init.d/ folder.

You want to make sure this boinc script has lines 41 through 44 to read as follows:
BOINCUSER=boinc
BOINCDIR=/home/boinc/BOINC
BUILD_ARCH=i686-pc-linux-gnu
BOINCEXE=/home/boinc/BOINC/run_client


If you follow these steps then you should be able to run the software.

You are not recommended to manually change any permissions on any files, as this is not needed.

There is something that can be done in directory /etc/rc3.d so
./boinc start
runs when the server boots up and
./boinc stop
runs when the server shuts down or gets ready to reboot - but I do not know what it is. My system admin did it for me.

biggrin
----------------------------------------
----------------------------------------
[Edit 8 times, last edit by FOBioPatel at Nov 13, 2005 6:01:12 AM]
[Nov 8, 2005 6:11:10 AM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

To get the state of boinc when logging back into the user boinc via ssh, you can type in run the "boinc_cmd" with --get_state as an option.

ex.

# ./boinc_cmd --get_state

This print out what the status of each workunit you have downloaded on your system is at. If the computer is running the workunit it'll give you a number in the "fraction done" area.

Hope that helps
[Nov 8, 2005 3:24:07 PM]   Link   Report threatening or abusive post: please login first  Go to top 
FOBioPatel
Cruncher
Joined: Apr 10, 2005
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

After I rebooted (after following the above steps) I manually did a ./boinc status to see what PID it was running on.

It said it wasn't running. So I tried to manually start it, it was supposed to start automatically as a daemon at bootup.

# ./boinc start
The BOINC client requires initialization. [WARNING]
Starting BOINC client as a daemon: [FAILED]

Help!
----------------------------------------
[Nov 8, 2005 4:41:23 PM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

Well, i believe you need to change BOINCDIR to /home/boinc/BOINC. This is because when you originally attached boinc to worldcommunitygrid, you preformed this in /home/boinc/BOINC from what your previous instructions have mentioned. Hopefully this helps.
[Nov 8, 2005 9:00:34 PM]   Link   Report threatening or abusive post: please login first  Go to top 
FOBioPatel
Cruncher
Joined: Apr 10, 2005
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

EXCELLENT CATCH - I will update my post. Thank You.
----------------------------------------
[Nov 8, 2005 9:52:12 PM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

Glad to help, if you have any more questions feel free to ask.
[Nov 8, 2005 9:58:06 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

Any idea how to set the proxy from the command line?


[Nov 10, 2005 1:38:45 AM]   Link   Report threatening or abusive post: please login first  Go to top 
uplinger
Former World Community Grid Tech
Joined: May 23, 2005
Post Count: 3952
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

There is a command in the BOINC directory called boinc_cmd. You should be able to run

./boinc_cmd --set_proxy_settings <http_server_name> <http_server_port> <http_user_name> <http_user_passwd> <socks_server_name> <socks_server_port> <socks_version> <socks5_user_name> <socks5_user_passwd>

All options are needed. This command should be run while the client is running. If you do not include all, then you will receive "Missing command-line argument".
[Nov 10, 2005 5:09:52 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Instructions for Installation on Linux with only SSH (command line) access

For me, i think it was killing the client when i exited out of the SSH session. I created 2 simple scripts, one was called startwcg, and the other was called wcgconsole.
startwcg started the wcg client in a "GNU screen " session and detatched it immediately. (If you don't know how to use screen then ask, i just don't feel like giving a tutorial right now. Basic functionality is pretty simple and everything is in the man page.)

Here is my code for startwcg:
#!/bin/csh
cd /path/to/directory/BOINC/
screen -A -m -d -S worldgrid ./boinc -attach_project www.worldcommunitygrid.org accountnumberthingshere

And then the code for the wcgconsole, which reattaches the screen session so that you can check its status:
#!/bin/csh
screen -r worldgrid

Make sure: 1) You have GNU Screen installed
2) you have changed the permissions of the two scripts to execute. (I always just use chmod 777)
[Nov 11, 2005 8:25:36 PM]   Link   Report threatening or abusive post: please login first  Go to top 
FOBioPatel
Cruncher
Joined: Apr 10, 2005
Post Count: 21
Status: Offline
Reply to this Post  Reply with Quote 
applause Re: Instructions for Installation on Linux with only SSH (command line) access

After I rebooted (after following the above steps) I manually did a ./boinc status to see what PID it was running on.

It said it wasn't running. So I tried to manually start it, it was supposed to start automatically as a daemon at bootup.

# ./boinc start
The BOINC client requires initialization. [WARNING]
Starting BOINC client as a daemon: [FAILED]

Help!



I believe this had to do with running ./boinc start from a username other than what is specified in the script. (For example, I would log in from another account and go into root to run the script. Therefore you may want to try setting BOINCUSER=root in your 'boinc' file.

I have done this, but I have not rebooted the server. I just want to crank out the solutions for now instead of messing with startup and shutdown scripts at the moment.
----------------------------------------
[Nov 12, 2005 5:26:10 AM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread