Is finstall still being maintained?
Moderator: Site Moderators
-
- Posts: 2948
- Joined: Sun Dec 02, 2007 4:36 am
- Hardware configuration: Machine #1:
Intel Q9450; 2x2GB=8GB Ram; Gigabyte GA-X48-DS4 Motherboard; PC Power and Cooling Q750 PS; 2x GTX 460; Windows Server 2008 X64 (SP1).
Machine #2:
Intel Q6600; 2x2GB=4GB Ram; Gigabyte GA-X48-DS4 Motherboard; PC Power and Cooling Q750 PS; 2x GTX 460 video card; Windows 7 X64.
Machine 3:
Dell Dimension 8400, 3.2GHz P4 4x512GB Ram, Video card GTX 460, Windows 7 X32
I am currently folding just on the 5x GTX 460's for aprox. 70K PPD - Location: Salem. OR USA
Is finstall still being maintained?
I just tried installing with finstall and noticed that it didn't work. Specificly, the (SMP) url's and file names are no longer valid. I edited them to point to the correct location and it then worked just fine.
Re: Is finstall still being maintained?
I still update the finstall script and I haven't noticed anything wrong.
Just report what is wrong and I will fix it.
Just report what is wrong and I will fix it.
-
- Posts: 2948
- Joined: Sun Dec 02, 2007 4:36 am
- Hardware configuration: Machine #1:
Intel Q9450; 2x2GB=8GB Ram; Gigabyte GA-X48-DS4 Motherboard; PC Power and Cooling Q750 PS; 2x GTX 460; Windows Server 2008 X64 (SP1).
Machine #2:
Intel Q6600; 2x2GB=4GB Ram; Gigabyte GA-X48-DS4 Motherboard; PC Power and Cooling Q750 PS; 2x GTX 460 video card; Windows 7 X64.
Machine 3:
Dell Dimension 8400, 3.2GHz P4 4x512GB Ram, Video card GTX 460, Windows 7 X32
I am currently folding just on the 5x GTX 460's for aprox. 70K PPD - Location: Salem. OR USA
Re: Is finstall still being maintained?
Old version:
Fclient_linuxA_SMP_Fdwnl=http://folding.stanford.edu/release/
Fclient_linuxA_SMP=FAH_SMP_Linux.tgz
Fclient_linuxA_SMP_name=fah5
new version:
Fclient_linuxA_SMP_Fdwnl=http://www.stanford.edu/group/pandegrou ... g/release/
Fclient_linuxA_SMP=FAH6.02beta1-Linux.tgz
Fclient_linuxA_SMP_name=fah6
With those small changes, it seems to work correctly to install the Linux SMP client
Fclient_linuxA_SMP_Fdwnl=http://folding.stanford.edu/release/
Fclient_linuxA_SMP=FAH_SMP_Linux.tgz
Fclient_linuxA_SMP_name=fah5
new version:
Fclient_linuxA_SMP_Fdwnl=http://www.stanford.edu/group/pandegrou ... g/release/
Fclient_linuxA_SMP=FAH6.02beta1-Linux.tgz
Fclient_linuxA_SMP_name=fah6
With those small changes, it seems to work correctly to install the Linux SMP client
Re: Is finstall still being maintained?
Thanks, it is fixed.P5-133XL wrote:Old version:
Fclient_linuxA_SMP_Fdwnl=http://folding.stanford.edu/release/
Fclient_linuxA_SMP=FAH_SMP_Linux.tgz
Fclient_linuxA_SMP_name=fah5
new version:
Fclient_linuxA_SMP_Fdwnl=http://www.stanford.edu/group/pandegrou ... g/release/
Fclient_linuxA_SMP=FAH6.02beta1-Linux.tgz
Fclient_linuxA_SMP_name=fah6
With those small changes, it seems to work correctly to install the Linux SMP client
-
- Posts: 471
- Joined: Mon Dec 03, 2007 6:20 am
- Location: Amsterdam
- Contact:
Re: Is finstall still being maintained?
I've got fix for you too, on OpenBSD 4.3 (which was recently released, and for which I wrote a F@H related HOWTO) the code added to /etc/rc.{local,shutdown} by the installService script throws an error:Ivoshiee wrote:Thanks, it is fixed.
Code: Select all
root@vmware-openbsd:~# tail -3 /etc/rc.local /etc/rc.shutdown
==> /etc/rc.local <==
#Start up Folding@Home Service
echo "Starting Folding@Home Service..."
su folding -c "/home/folding/foldingathome/folding start"
==> /etc/rc.shutdown <==
su folding -c "/home/folding/foldingathome/folding stop"
echo "Sleeping 20 seconds to allow Folding@Home service time to shut down properly..."
sleep 20
root@vmware-openbsd:~# su folding -c "/home/folding/foldingathome/folding start"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
['folding' ver. 5.9]
Starting up FAH client(s) on 1 processor(s):
Starting FAH client at CPU1...
FAH client #1 startup: OK
^C
root@vmware-openbsd:~# su - folding -c "/home/folding/foldingathome/folding start"
['folding' ver. 5.9]
Starting up FAH client(s) on 1 processor(s):
Starting FAH client at CPU1...
FAH client #1 startup: OK
^C
Code: Select all
- Same as the -l option (deprecated).
[...]
-l Simulate a full login. The environment is discarded except for
HOME, SHELL, PATH, TERM, LOGNAME, and USER. HOME and SHELL are
modified as above. LOGNAME and USER are set to the target login.
PATH is set to the value specified by the ``path'' entry in
login.conf(5). TERM is imported from your current environment.
The invoked shell is the target login's, and su will change di-
rectory to the target login's home directory.
Code: Select all
--- finstall-orig 2008-05-04 00:24:47.000000000 +0200
+++ finstall 2008-05-04 00:25:48.000000000 +0200
@@ -2551,12 +2551,12 @@
cat >> /etc/rc.local << $terminator
#Start up Folding@Home Service
echo "Starting Folding@Home Service..."
-su \$USERNAME -c "\$Fpath/folding start"
+su - \$USERNAME -c "\$Fpath/folding start"
$terminator
cat >> /etc/rc.shutdown << $terminator
#Shut down Folding@Home Service
-su \$USERNAME -c "\$Fpath/folding stop"
+su - \$USERNAME -c "\$Fpath/folding stop"
echo "Sleeping 20 seconds to allow Folding@Home service time to shut down properly..."
sleep 20
$terminator
Re: Is finstall still being maintained?
Another excellent contribution!
Finstall is fixed and released as 6.0.
Finstall is fixed and released as 6.0.
-
- Posts: 471
- Joined: Mon Dec 03, 2007 6:20 am
- Location: Amsterdam
- Contact:
Re: Is finstall still being maintained?
I've got another patch for you, it adds support for Arch Linux which uses BSD style init:
archlinux.patch | finstall
Code: Select all
--- finstall-orig 2009-01-21 00:54:57.000000000 +0100
+++ finstall 2009-01-21 01:42:56.000000000 +0100
@@ -2314,6 +2314,12 @@
# To get to know more about FAH go to http://folding.stanford.edu.
StartDir="/etc/init.d"
+# Arch Linux uses /etc/rc.d/ for init scripts, and DAEMONS
+# in /etc/rc.conf specifies which services to start at boot
+if [ -r /etc/arch-release ]
+ then
+ StartDir="/etc/rc.d"
+fi
Fpath="$Fdir"
#tr utility will be used if it is available:
tr_OK=$tr_OK
@@ -2412,6 +2418,16 @@
then
#Debian specific:
update-rc.d folding defaults
+elif [ -e /etc/arch-release ];
+ then
+#Arch specific:
+ if [ \$(egrep "^DAEMONS=(.*?\s*[!|@]?folding\s*.*?)" /etc/rc.conf | wc -l) == 0 ]
+ then
+# folding is not yet added to DAEMONS in /etc/rc.conf
+ cp /etc/rc.conf /etc/rc.conf.folding-bak
+ sed -r 's/^\s*DAEMONS=\((.*?)\)/DAEMONS=\(\1 folding\)/' /etc/rc.conf > /etc/rc.conf.new
+ mv /etc/rc.conf.new /etc/rc.conf
+ fi
else
#All other Linux distros:
chkconfig --add folding
@@ -2457,6 +2473,11 @@
# To get to know more about FAH go to http://folding.stanford.edu.
StartDir="/etc/init.d"
+# Arch Linux uses /etc/rc.d/ for init scripts
+if [ -r /etc/arch-release ]
+ then
+ StartDir="/etc/rc.d"
+fi
UseSudo=false
# Several Linux distros these days use sudo instead of a separate root account,
@@ -2512,6 +2533,16 @@
then
#Debian specific:
update-rc.d -f folding remove
+elif [ -e /etc/arch-release ];
+ then
+#Arch specific:
+ if [ \$(egrep "^DAEMONS=(.*?\s*[\!|@]?folding\s*.*?)" /etc/rc.conf | wc -l) == 1 ]
+ then
+# folding is added to DAEMONS in /etc/rc.conf
+ cp /etc/rc.conf /etc/rc.conf.folding-bak2
+ sed -r 's/^DAEMONS=\((.*?)\s*[!|@]?folding\s*(.*?)\)/DAEMONS=\(\1\2\)/' /etc/rc.conf > /etc/rc.conf.new
+ mv /etc/rc.conf.new /etc/rc.conf
+ fi
else
#All other Linux distros:
chkconfig --del folding
Re: Is finstall still being maintained?
Thanks, I'll implement it and some other changes as well.smoking2000 wrote:I've got another patch for you, it adds support for Arch Linux which uses BSD style init:
archlinux.patch | finstallCode: Select all
--- finstall-orig 2009-01-21 00:54:57.000000000 +0100 +++ finstall 2009-01-21 01:42:56.000000000 +0100 @@ -2314,6 +2314,12 @@ # To get to know more about FAH go to http://folding.stanford.edu. StartDir="/etc/init.d" +# Arch Linux uses /etc/rc.d/ for init scripts, and DAEMONS +# in /etc/rc.conf specifies which services to start at boot +if [ -r /etc/arch-release ] + then + StartDir="/etc/rc.d" +fi Fpath="$Fdir" #tr utility will be used if it is available: tr_OK=$tr_OK @@ -2412,6 +2418,16 @@ then #Debian specific: update-rc.d folding defaults +elif [ -e /etc/arch-release ]; + then +#Arch specific: + if [ \$(egrep "^DAEMONS=(.*?\s*[!|@]?folding\s*.*?)" /etc/rc.conf | wc -l) == 0 ] + then +# folding is not yet added to DAEMONS in /etc/rc.conf + cp /etc/rc.conf /etc/rc.conf.folding-bak + sed -r 's/^\s*DAEMONS=\((.*?)\)/DAEMONS=\(\1 folding\)/' /etc/rc.conf > /etc/rc.conf.new + mv /etc/rc.conf.new /etc/rc.conf + fi else #All other Linux distros: chkconfig --add folding @@ -2457,6 +2473,11 @@ # To get to know more about FAH go to http://folding.stanford.edu. StartDir="/etc/init.d" +# Arch Linux uses /etc/rc.d/ for init scripts +if [ -r /etc/arch-release ] + then + StartDir="/etc/rc.d" +fi UseSudo=false # Several Linux distros these days use sudo instead of a separate root account, @@ -2512,6 +2533,16 @@ then #Debian specific: update-rc.d -f folding remove +elif [ -e /etc/arch-release ]; + then +#Arch specific: + if [ \$(egrep "^DAEMONS=(.*?\s*[\!|@]?folding\s*.*?)" /etc/rc.conf | wc -l) == 1 ] + then +# folding is added to DAEMONS in /etc/rc.conf + cp /etc/rc.conf /etc/rc.conf.folding-bak2 + sed -r 's/^DAEMONS=\((.*?)\s*[!|@]?folding\s*(.*?)\)/DAEMONS=\(\1\2\)/' /etc/rc.conf > /etc/rc.conf.new + mv /etc/rc.conf.new /etc/rc.conf + fi else #All other Linux distros: chkconfig --del folding
Re: Is finstall still being maintained?
It took some time (and failed long wait for a new FAH client), but I've updated the finstall script.
I wonder why egrep does trigger an error when to run installService. It should not get run at the first place.
I wonder why egrep does trigger an error when to run installService. It should not get run at the first place.
Code: Select all
[ivo@haskaa foldingathome]$ ./installService
Installing FAH as a service...
'/etc/init.d/folding' is present.
Do You want to reinstall it?: y
egrep: /etc/rc.conf: No such file or directory
Password:
[ivo@haskaa foldingathome]$
Code: Select all
#!/bin/bash
# This is FAH ("Folding At Home") service installation script.
# To get to know more about FAH go to http://folding.stanford.edu.
StartDir="/etc/init.d"
# Arch Linux uses /etc/rc.d/ for init scripts, and DAEMONS
# in /etc/rc.conf specifies which services to start at boot
if [ -r /etc/arch-release ]
then
StartDir="/etc/rc.d"
fi
Fpath="/home/ivo/folding2/foldingathome"
#tr utility will be used if it is available:
tr_OK=true
UseSudo=false
# Several Linux distros these days use sudo instead of a separate root account,
# use of the su command is only allowed to the root user or users who use sudo.
# So for finstall to work, it has to use sudo to run the su command or the it
# will not be allowed.
#
# The LSB specifies two ways to find out which distro your program is run on.
# The file /etc/lsb-release, and the program /usr/bin/lsb_release.
# The program is the only thing specified in the standard, so the file may be
# missing even on LSB conforming distros.
#
# See also:
# http://lists.freestandards.org/pipermail/lsb-discuss/2004-May/002143.html
# http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html
#
# Check for /etc/lsb-release and inside it for distribution name
#
# $ cat /etc/lsb-release
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=6.06
# DISTRIB_CODENAME=dapper
# DISTRIB_DESCRIPTION="Ubuntu 6.06.1 LTS"
if [ -r /etc/lsb-release ]
then
# using Ubuntu?
ret=$(grep DISTRIB_ID /etc/lsb-release | sed 's/^\w*=//')
if [ "X$ret" == "XUbuntu" ]
then
UseSudo=true
fi
elif [ -x /bin/lsb_release ]
then
# using Ubuntu?
ret=$(/bin/lsb_release --id | sed 's/^Distributor ID:\t//')
if [ "X$ret" == "XUbuntu" ]
then
UseSudo=true
fi
elif [ -x /usr/bin/lsb_release ]
then
# using Ubuntu?
ret=$(/usr/bin/lsb_release --id | sed 's/^Distributor ID:\t//')
if [ "X$ret" == "XUbuntu" ]
then
UseSudo=true
fi
fi
AskChoice(){
#Ask for y/n type choice.
#Input: $Message
#Output: $Answer
local answerOK
local input_count
input_count=0
answerOK="false"
while [ "$answerOK" = "false" ]
do
if [ $input_count -gt 9 ];
then
echo
echo CANCELLED!
echo
exit 1
fi
echo -n "$Message"
read Answer
if [ "$tr_OK" = "true" ]
then
Answer=$(echo $(echo "$Answer" | tr A-Z a-z))
fi
if [ "$Answer" = "yes" -o "$Answer" = "y" -o "$Answer" = "no" -o "$Answer" = "n" ]
then
answerOK="true"
fi
let "input_count=input_count+1"
done
}
ServiceInstall(){
cat << EOF
#!/bin/bash
if [ -w ${StartDir}/folding ];
then
rm -f ${StartDir}/folding
fi
cp ${Fpath}/folding ${StartDir}/
if [ -e /etc/debian_version ];
then
#Debian specific:
update-rc.d folding defaults
elif [ -e /etc/arch-release ];
then
#Arch Linux specific:
if [ $(egrep "^DAEMONS=(.*?\s*[!|@]?folding\s*.*?)" /etc/rc.conf | wc -l) == 0 ]
then
# folding is not yet added to DAEMONS in /etc/rc.conf
cp /etc/rc.conf /etc/rc.conf.folding-bak
sed -r 's/^\s*DAEMONS=\((.*?)\)/DAEMONS=\(\1 folding\)/' /etc/rc.conf > /etc/rc.conf.new
mv /etc/rc.conf.new /etc/rc.conf
fi
else
#All other Linux distros:
chkconfig --add folding
fi
EOF
}
echo "Installing FAH as a service..."
echo ""
if [ -r ${StartDir}/folding ];
then
echo "'${StartDir}/folding' is present."
Message="Do You want to reinstall it?: "
AskChoice
if [ "$Answer" = "n" -o "$Answer" = "no" ];
then
exit
fi
fi
# When running on Ubuntu use sudo, because su is not available to normal users
if [ $UseSudo == true ]
then
sudo su - -c "$(ServiceInstall)"
else
su - -c "$(ServiceInstall)"
fi
#END
-
- Posts: 94
- Joined: Thu Nov 13, 2008 4:18 pm
- Hardware configuration: q6600 @ 3.3Ghz windows xp-sp3 one SMP2 (2.15 core) + 1 9800GT native GPU2
Athlon x2 6000+ @ 3.0Ghz ubuntu 8.04 smp + asus 9600GSO gpu2 in wine wrapper
5600X2 @ 3.19Ghz ubuntu 8.04 smp + asus 9600GSO gpu2 in wine wrapper
E5200 @ 3.7Ghz ubuntu 8.04 smp2 + asus 9600GT silent gpu2 in wine wrapper
E5200 @ 3.65Ghz ubuntu 8.04 smp2 + asus 9600GSO gpu2 in wine wrapper
E6550 vmware ubuntu 8.4.1
q8400 @ 3.3Ghz windows xp-sp3 one SMP2 (2.15 core) + 1 9800GT native GPU2
Athlon II 620 @ 2.6 Ghz windows xp-sp3 one SMP2 (2.15 core) + 1 9800GT native GPU2 - Location: Calgary, Canada
-
- Posts: 471
- Joined: Mon Dec 03, 2007 6:20 am
- Location: Amsterdam
- Contact:
Re: Is finstall still being maintained?
It's probably the use of a sub shell ($()) which might by evaluated always even when it's in a condition which is never triggered, you can try replacing it with backticks.Ivoshiee wrote:It took some time (and failed long wait for a new FAH client), but I've updated the finstall script.
I wonder why egrep does trigger an error when to run installService. It should not get run at the first place.