LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-23-2004, 02:04 AM   #1
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
add a program to run in vty/console at boot?


i have moved from windows to linux and
have brought the google donation (google compute) with me
http://toolbar.google.com/dc/
http://folding.stanford.edu/


and i want it to run when i boot my computer
defininetly not with in KDE. Long before KDE loads

thanks

Quote:
http://www.stanford.edu/group/pandeg.../download.html

To launch: To use this program, make sure that you can execute it (chmod +x FAH5-Linux.exe) and then run it ./FAH5-Linux.exe

More information: http://vsp27.stanford.edu/console-userguide.txt provides details on the various command line flags supported.

FAH502-Linux.exe

And before someone starts calling names yes this .exe actually works god know why they named it that though.
 
Old 11-23-2004, 03:49 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
As far as the folding client, it was written for Linux, so it should not be problematic.

First verify that it launches correctly on your system by running it from a command line console.

If it runs, copy it to say /usr/bin

Then edit /etc/rc.d/rc.local and add a line to invoke the client at boot with an ampersand at the end of the line so it is launched as a background task.

BTW: You also may want to "nice" it too...

E.G.

nice CLIENT.EXE &

So that you are given back cycles when you need or want them.

As far as the google bar, I see no Linux client listed.
 
Old 11-23-2004, 04:42 AM   #3
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872

Original Poster
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally posted by opjose
As far as the folding client, it was written for Linux, so it should not be problematic.

First verify that it launches correctly on your system by running it from a command line console.
If it runs, copy it to say /usr/bin

Then edit /etc/rc.d/rc.local and add a line to invoke the client at boot with an ampersand at the end of the line so it is launched as a background task.

BTW: You also may want to "nice" it too...

E.G.

nice CLIENT.EXE &

So that you are given back cycles when you need or want them.

As far as the google bar, I see no Linux client listed.
cool thanks

yea the toolbar isnt for linux nothing at the google site is for linux
shame coz i want google desktop

the link was just to show what the program does
and the stanford uni provide a mirror to the linux version made by the foundation


Quote:
Then edit /etc/rc.d/rc.local and add a line to invoke the client at boot with an ampersand at the end of the line so it is launched as a background task.
i'm not sure here though?

i see

Quote:
#!/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.

[ -f /etc/sysconfig/system ] && source /etc/sysconfig/system

[ -f /etc/sysconfig/msec ] && source /etc/sysconfig/msec
[ -z "$SECURE_LEVEL" ] && SECURE_LEVEL=3
[ -f /etc/sysconfig/init ] && source /etc/sysconfig/init
if [ $SECURE_LEVEL -lt 4 ]; then
[ -z "$REWRITEISSUE" ] && REWRITEISSUE=rewrite
if [ $SECURE_LEVEL -lt 3 ]; then
[ -z "$REWRITEISSUENET" ] && REWRITEISSUENET=rewrite
fi
fi

SYSTEM=${SYSTEM=Mandrakelinux}

# Source functions
. /etc/init.d/functions

if [ "$REWRITEISSUE" = "rewrite" -a -f /etc/mandrake-release ]; then
R=$(cat /etc/mandrake-release)

arch=$(uname -m)
a="a"
case "_$arch" in
_a*) a="an";;
_i*) a="an";;
esac

NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
if [ "$NUMPROC" -gt "1" ]; then
SMP="$NUMPROC-processor "
[ "$NUMPROC" = "2" ] && \
SMP="Dual-processor "
if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
a="an"
else
a="a"
fi
fi

# This will overwrite /etc/issue at every boot. So, make any changes you

# want to make to /etc/issue here or you will lose them when you reboot.

if [ -x /usr/bin/linux_logo ]; then
/usr/bin/linux_logo -c -n -f | sed -e 's|\\|\\\\|g' > /etc/issue
echo "" >> /etc/issue
else
> /etc/issue
fi
echo "$R" >> /etc/issue
echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue

if [ "$REWRITEISSUENET" = "rewrite" ]; then
echo "Welcome to ${HOST}" > /etc/issue.net
echo "$R" >> /etc/issue.net
echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue.net
else
NAME="$SYSTEM"
gprintf "Welcome to %s\n" "$NAME" > /etc/issue.net
echo "-------------------------" >> /etc/issue.net
fi
else
if [ -f /etc/security/msec/issue.$SECURE_LEVEL ]; then
cat /etc/security/msec/issue.$SECURE_LEVEL > /etc/issue
elif [ -f /etc/security/msec/issue ]; then
cat /etc/security/msec/issue > /etc/issue
else
rm -f /etc/issue
fi
if [ -f /etc/security/msec/issue.net.$SECURE_LEVEL ]; then
cat /etc/security/msec/issue.net.$SECURE_LEVEL > /etc/issue.net
elif [ -f /etc/security/msec/issue.net ]; then
cat /etc/security/msec/issue.net > /etc/issue.net
else
rm -f /etc/issue.net
fi
fi

touch /var/lock/subsys/local

Last edited by carl0ski; 11-23-2004 at 04:47 AM.
 
Old 11-23-2004, 06:07 AM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Just append a line as I indicated to start the client and background it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can a command/program be run automatically on boot? chuanweizuo Linux - Hardware 1 11-28-2005 10:36 AM
How do i have a program run at boot? ultramancool Linux - Software 4 02-25-2005 07:07 AM
How to add a command to run during Mandrake 10.1 boot up simonw Linux - General 5 10-27-2004 02:35 PM
where do i add a command to make it run on boot stuart Linux - Newbie 4 06-21-2004 06:03 PM
How to run a program on the console over telnet jhayes Linux - Software 4 04-07-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration