LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Seti at home installation (https://www.linuxquestions.org/questions/linux-software-2/seti-at-home-installation-5884/)

RecoilUK 08-26-2001 02:57 PM

Seti at home installation
 
Hi guys

OK i,ve just installed Seti at home and placed the folder in /usr/share and can start it up without problems using

/usr/share/seti/setiathome -verbose

however I dont want to do this

Ideally I would prefer to just type in

seti

does anyone know how I can do this, and allow any user to start it up.

Thx guys

RecoilUK

mcleodnine 08-26-2001 03:39 PM

make a script file called 'seti' that would look like this
Code:

#!/bin/bash
/usr/share/set/setiathome --verbose

and change the executable bit
Code:

chmod +x seti
Crude but effective.

RecoilUK 08-26-2001 11:37 PM

Hi there

Ok so I just make a text file with a .sh extension is this right?

And I would save this in /bin or not?

I havnt done anything like this before.

Thx m8

RecoilUK

RecoilUK 08-26-2001 11:56 PM

Hi again

Nevermind i,ve sorted it

I made a text file instead of a shell script with the command that I usually type in it and called it seti.

I placed this in /usr/bin

and it works for any user but each user can have a seperate file that they are scanning, which is what I wanted

Thx

RecoilUK

warfie 05-07-2002 03:48 AM

Services
 
mcleodnine,
I too have a problem with seti but slightly different,
I want seti to start as a service with all the other services,
can you help me there?

James

Mara 05-07-2002 04:39 AM

Re: Services
 
Quote:

Originally posted by warfie

I too have a problem with seti but slightly different,
I want seti to start as a service with all the other services,
can you help me there?

James

Add a script (or a line running seti) to your starting scripts. I use /etc/rc/d/rc.local. It's a script, so just add the seti line and it'l start next boot.

To RecoilUK
Seti needs a directory with executable for every user. You can solve it by creating it into users' home directories (for example ~/seti). So there will be a script starting seti for user that starts the script:
#!/bin/bash
~/seti/setiathome --verbose

warfie 05-07-2002 05:24 AM

warfie
 
I'm obviosly more of a newbie than you realise!
you say
"Add a script (or a line running seti) to your starting scripts"
I say ......"whaaaa?"

can you please dumb it down a little for me?

James-the-moron

Mara 05-07-2002 07:49 AM

It's as easy as I say :) Really.
How do you start seti?
Something like /usr/seti/setiathome , right?
So open /etc/rc.d/rc.local in your favourite text editor (beeing root!).
There will be

#!/bin/sh

Then lines with # at the beginning, then some strange texts :)
After those #s, in new line write the command you use to run seti. If you run it using /usr/seti/setiathome, write
/usr/seti/setiathome &
(this & is quite important, it makes seti to run in background)
And that's all.
If you don't know where's your seti (nearly impossible, but maybe...) use
whereis setiathome
I'll show you the right location.

Jazm 05-07-2002 10:10 PM

warfie, what seti team do you crunch for? TP?

warfie 05-08-2002 02:37 AM

None

warfie 05-08-2002 03:20 AM

Didn work Mara?!?!
 
I did exactly as you said, no joy, any idea, or maybe you need more info?

Mara 05-08-2002 12:45 PM

Send this part of the file you've modified. Then I can look into it :)

nevar 05-08-2002 12:50 PM

umm. just a quicki.. what is seti?

Mara 05-08-2002 01:32 PM

Setiathome (sometimes called 'seti' ).
SETI Search for Extraterestrial Inteligence. Setiathome is a program used by 3mln users worldwide to work on data from observatory to find other habitated planets.
You download the program, start it, it downloads a package and works on it. When finished sends the results back and gets new package. :)

nevar 05-08-2002 01:36 PM

kinda like the UD cancer research thingy.. cool when i get my machine working again i'll download it. :)

Jazm 05-08-2002 05:31 PM

SETI is a distributed computing effort that attempts to identify possible extraterestrials. Each chunk of data that you crunch is called a work unit or WU for short. Crunching on a SETI team is very competitive and alot of fun, and a good use for idle CPU cycles. This link is to the AMDMB.com SETI forum, aka 'The Killer Frogs'.
Join a team, cooperative crunching is great.

warfie 05-09-2002 06:07 AM

what are the benefits of team crunching?

Jazm 05-09-2002 09:19 AM

Quote:

Originally posted by warfie
what are the benefits of team crunching?
FREE BEER

warfie 05-10-2002 03:57 AM

sending the file I modified
 
Copy and Paste is not the same as windows? how do I?

ngomong 05-10-2002 03:04 PM

To copy and paste...

Select the text with your mouse...
Move to where you want to paste, then click the middle mouse button.

(You need to make sure the text you want copied is highlighted... when you move to the new window, dont' select anything new on accident...)

warfie 05-10-2002 07:45 PM

cheers
 
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

/home/james/seti/setiathome &

[ -f /etc/sysconfig/msec ] && source /etc/sysconfig/msec
[ -z "$SECURE_LEVEL" ] && SECURE_LEVEL=3

cmfarley19 01-26-2003 07:58 AM

The way SETI suggests doing this is to make an entry in your crontab.
That way if SETI stops running for some reason (usually a communication error back to berkely) it will automatically restart without rebooting.
Here are my crontab entries:
0 * * * * cd /home/cfarley/seti; setiathome -nice 1 > /dev/null 2> /dev/null
15 * * * * cd /home/cfarley/seti; setiathome -nice 1 > /dev/null 2> /dev/null
30 * * * * cd /home/cfarley/seti; setiathome -nice 1 > /dev/null 2> /dev/null
45 * * * * cd /home/cfarley/seti; setiathome -nice 1 > /dev/null 2> /dev/null

cron will attempt to start seti every 15 minutes. If it is already running it ingores it. If it fails to start, it will try again 15 minutes later.

The SETI Unix README: setiathome.ssl.berkeley.edu/README.unix.txt

There is a nice PHP script I found to display your SETI stats. There is a link to it on my homepage. I'll send it to you if you're interested.

nouse66 03-19-2003 02:54 AM

i'm running seti the easy (no cron jobs) way and i noticed with "top" that it runs in 'nice' mode. i have a couple questions...

'nice' means low priority, right?

does that effect performance when i'm leaving my computer to run only seti?

cmfarley19 03-19-2003 04:46 AM

Nice usually has a number associated with it as in
45 * * * * cd /home/cfarley/seti; setiathome -nice 1 > /dev/null 2> /dev/null
The lower the number the higher the priority.
$ nice --help
Usage: nice [OPTION] [COMMAND [ARG]...]
Run COMMAND with an adjusted scheduling priority.
With no COMMAND, print the current scheduling priority. ADJUST is 10
by default. Range goes from -20 (highest priority) to 19 (lowest).

-n, --adjustment=ADJUST increment priority by ADJUST first
--help display this help and exit
--version output version information and exit

Report bugs to <bug-sh-utils@gnu.org>.


All times are GMT -5. The time now is 06:19 AM.