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 2269 times and has 9 replies Next Thread
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Linux: Start from Terminal ?

In windows I can use Boinc.exe --boinc_command --boinc_command -dir \path to\data.

I want to achieve same in Linux (mint)

Reason: to experiment without touching main install

Anyone know the equivalent for Linux?

Can start main with "sudo /etc/init.d/boinc-client start" but how to start using defined boinc commands and path ?
----------------------------------------

[Oct 30, 2016 2:29:12 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mamajuanauk
Master Cruncher
United Kingdom
Joined: Dec 15, 2012
Post Count: 1900
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

In windows I can use Boinc.exe --boinc_command --boinc_command -dir \path to\data.

I want to achieve same in Linux (mint)

Reason: to experiment without touching main install

Anyone know the equivalent for Linux?

Can start main with "sudo /etc/init.d/boinc-client start" but how to start using defined boinc commands and path ?


OC
Try these, works for me on Ubuntu:

The BOINCCMD program is the command line control program for BOINC. While you can start the BOINC client with its own set of switches, you can set these only once.

The BOINCCMD program allows you to control BOINC multiple times, especially useful for when you lack a GUI (BOINC Manager). Multiple commands per line are possible.

Usage: Boinccmd --command1 --command2 --command3

--lookup_account URL email passwd
Used to check up on your account and get your authenticator key and details sent to you.

--create_account URL email passwd name
Used to make an account at a project, using password such and so, your email address and what nickname to go on the account. Usage: boinccmd --create_account http://setiathome.berkeley.edu joe@email.com RoVeR12 Joe .. Watch out with case sensitivity on password!

--project_attach URL auth
Attach to project using your authenticator key.

--join_acct_mgr URL name password
Attach to an account manager.

--quit_acct_mgr
Quit using your current account manager.

--get_state
Show entire state.

--get_results
Show tasks. BOINC 6.12 and before.

--get_tasks
Show tasks. BOINC 7.0 and later.

--get_simple_gui_info
Show status of projects and active tasks.

--get_file_transfers
Show file transfers.

--get_project_status
Show status of all attached projects.

--get_disk_usage
Show disk usage per project attached.

--get_proxy_settings
Show proxy settings.

--get_messages [ seqno ]
Show messages, if need be output per sequence number.

--get_message_count
Show largest message sequence number.

--get_host_info
Shows details about your host, such as CPU used, Network name, operating system, disk size, etc.

--version, -V
Show core client version.

--result url task_name operation
Job operation options = suspend | resume | abort | graphics_window | graphics_fullscreen

--project URL operation
Project operation options = reset | detach | update | suspend | resume | nomorework | allowmorework

--file_transfer URL filename operation
File transfer operation options = retry | abort

--set_gpu_mode
Sets GPU mode. Options always | auto | never

--set_run_mode mode duration
Set run mode for given duration mode = always | auto | never

--set_network_mode mode duration
Set run mode for given duration mode = always | auto | never

--set_proxy_settings
Set up your proxy settings.

--run_benchmarks
Run CPU benchmarks.

--read_global_prefs_override
(Re-)Read the global_prefs_override.xml file.

--quit
Quit running the BOINC client.

--read_cc_config
(Re-)read the client configuration file (cc_config.xml).

--set_debts URL1 std1 ltd1 [URL2 std2 ltd2 ...]
Used to (re-)set the short term and long term debts of any given project. Usage: boinccmd --set_debts http://setiathome.berkeley.edu 0 0 (to reset the short term and long term debts on Seti@Home).

--get_project_config URL
Unknown

--get_project_config_poll
Unknown

--network_available
Unknown

--get_cc_status
Unknown
----------------------------------------
Mamajuanauk is the Name! Crunching is the Game!



[Oct 30, 2016 3:04:10 PM]   Link   Report threatening or abusive post: please login first  Go to top 
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

Thanks

The bit I am unclear about is the Linux command that will allow me to use these above so that it starts Boinc with certain parameters, for example

windows =
 C:\BOINC\boinc.exe --allow_multiple_clients -dir c:\BOINC\BOINCDATA* -gui_rpc_port xxxx


Every time I try in Linux so far it is seeing the boinc_commands as unrecognised linux flags

Maybe I have to use a different start method ??

so start boinc, make it use a second client on startup, point it at the data folder for this and run on a certain port.

Which method of getting linux to allow this ?

once it is running then other parameters are easy .
----------------------------------------

[Oct 30, 2016 3:55:44 PM]   Link   Report threatening or abusive post: please login first  Go to top 
captainjack
Advanced Cruncher
Joined: Apr 14, 2008
Post Count: 147
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

OldChap,

(disclaimer) I haven't tried exactly what you are suggesting, but here are some clues. The boinc executable is in the /usr/bin folder. Also in that folder are the boinccmd executable and the boincmgr executable. You should be able to start any of those executables from that folder. You can open a terminal, cd to that folder then just enter the executable name followed by the parameters that you want.

Try that and let us know what happens.
[Oct 30, 2016 4:43:28 PM]   Link   Report threatening or abusive post: please login first  Go to top 
adriverhoef
Master Cruncher
The Netherlands
Joined: Apr 3, 2009
Post Count: 2346
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

You can start multiple instances of the BOINC client (and the manager) on one host.

Try this (in a bash-like terminal):
$ mkdir /tmp/boinc-test
$ cd !$
Now use a GUI RPC port that differs from the standard port 31416, e.g. 31444:
$ boinc_client --allow_multiple_clients --gui_rpc_port 31444
If this works, wait a minute, then interrupt the process and start it as a daemon:
$ boinc_client --allow_multiple_clients --gui_rpc_port 31444 --daemon
You should now have a second running BOINC client daemon.

Where did I get this information?
$ service boinc-client status
$ boinc_client --help
$ man boincmgr
[Oct 30, 2016 9:31:09 PM]   Link   Report threatening or abusive post: please login first  Go to top 
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

All useful info but not yet quite right.

An improvement certainly as it is not now giving me the finger, but clearly I am missing something.

I'll have another try next weekend

Thanks guys
----------------------------------------

[Oct 31, 2016 1:32:30 AM]   Link   Report threatening or abusive post: please login first  Go to top 
KLiK
Master Cruncher
Croatia
Joined: Nov 13, 2006
Post Count: 3108
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

Find answers in the Wiki:
http://boinc.berkeley.edu/wiki/Installing_on_Linux

btw, Mint is a Debian version! ;)
----------------------------------------
oldies:UDgrid.org & PS3 Life@home


non-profit org. Play4Life in Zagreb, Croatia
[Oct 31, 2016 9:07:28 AM]   Link   Report threatening or abusive post: please login first  Go to top 
captainjack
Advanced Cruncher
Joined: Apr 14, 2008
Post Count: 147
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

OldChap,

Try this:

Edit /var/lib/boinc-client/gui_rpc_auth.cfg to see the value of the rpc password (you will need this when you switch BOINC manager to the second instance of BOINC)
Edit /var/lib/boinc-client/cc_config.xml
In the options sections add a line for <allow_multiple_clients>1</allow_multiple_clients>
Either restart primary boinc or read config files in primary boinc
Enter the following commands in a terminal session:
cd /var/lib
sudo mkdir boinc-client-31418
sudo cp /var/lib/boinc_client/ca-bundle.crt /var/lib/boinc-client-31418/ca-bundle.crt
sudo cp /var/lib/boinc-client/gui_rpc_auth.cfg /var/lib/boinc-client-31418/gui_rpc_auth.cfg
cd /usr/bin
sudo boinc --allow_multiple_clients --dir /var/lib/boinc-client-31418 --gui_rpc_port 31418

That should get you started. The second copy of boinc client will be running with the user of "root".

Try that and let us know how it goes.
[Oct 31, 2016 1:27:41 PM]   Link   Report threatening or abusive post: please login first  Go to top 
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

Back to testing this:

Your post is good cap'njack in that I can see we are very nearly there.

In windows starting populates the BOINCDATA folder with files and some folders too (notices, slots etc) but here it seems not to.....

....... (to change preferences, visit a project web site or select Preferences in the Manager) 
dir_open: Could not open directory 'slots' from '/var/lib/boinc-client2-30301'. 05-Nov-2016 12:35:28 [---]
GUI RPC bind to port 30301 failed: 98 05-Nov-2016 12:35:29 gstate.init() failed Error Code: -180


Not sure if the failure to bind to 30301 is related

So for now the question is: How to fully populate this boinc-client2.... Manually add the folder or otherwise do you think?

Hmmmm...... code tags not working here?
----------------------------------------

----------------------------------------
[Edit 2 times, last edit by OldChap at Nov 5, 2016 12:59:10 PM]
[Nov 5, 2016 12:51:28 PM]   Link   Report threatening or abusive post: please login first  Go to top 
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Linux: Start from Terminal ?

Ta Dah !!!

Good news.

Manually added the slots folder and that resolved the "could not open" issue

and the "bind to port" issue was fixed by moving to a different port (I used 60201 as I have used that one before in windows)

I only have one issue reported still and that may not be an issue as such I just have to wait and see.

The report was:

dir_open: Could not open directory '/dev/input/mice' from '/var/lib/boinc-client2-30301

That said I have now connected to BoincTasks and added project

With cores divided between boinc-client and boinc-client2 I can now start to experiment with settings and see the real time difference between the two

Many thanks for your help in getting me here captainjack
----------------------------------------

[Nov 5, 2016 2:38:03 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread