dslreports logo
 
    All Forums Hot Topics Gallery
spc
uniqs
5

Pin
Premium Member
join:2002-06-19
The Dungeon

Pin

Premium Member

Re: [FP] MstrBlstr

in.tftpd and portmap should match the 1st 3 octets of the network portion of your IP address.

If your IP address was A.B.C.D and your net mask was 255.255.255.0, then A.B.C. would go in place of 192.168.1.

Your done with host.deny, unless you have some type of security problem later down the road.

MstrBlstr0
Premium Member
join:2001-07-14
Corpus Christi, TX

MstrBlstr0

Premium Member

Hey, on this one:


# /etc/exports - NFS filesystems accessible over the network
## LTS-begin ##

#
# The lines between the 'LTS-begin' and the 'LTS-end' were added
# on: Sun Jun 30 01:05:22 EDT 2002 by the ltsp installation script.
# For more information, visit the ltsp homepage
# at »www.ltsp.org
#

/opt/ltsp/i386 192.168.1.0/255.255.255.0(ro,no_root_squash)
/var/opt/ltsp/swapfiles 192.168.1.0/255.255.255.0(rw,no_root_squash)

#
# The following entries need to be uncommented if you want
# Local App support in ltsp
#
/home 192.168.1.0/255.255.255.0(rw,no_root_squash)

## LTS-end ##


It says 192.168.1.0

I changed them to read 192.168.1.1 was that right? Or should they have stayed 192.168.1.0?
MstrBlstr0

MstrBlstr0 to Pin

Premium Member

to Pin
Wow now for this one... :D
code:
#!/bin/bash
# /home/foldy/bin/foldy_folding
# Script to start Stanford protein folding client.
# Author: The Gator Edited by: MstrBlstr 4/2/03
#

#
# Edit parameters below as needed for target environment.
# Note: SMP_HOSTS is a list of hostnames separated by spaces.
# Comment out the definition and export of SMP_HOSTS if you do
# not have any dual-processor machines to list.
#
# SMP_HOSTS="foldy01 foldy03 foldy05"
FAH_CLIENT=/usr/bin/FAH3Console
FAH_OPT="-local -advmethods -forceasm -verbosity 9"

#
# End of editable parameters.
#
FAH_HOST=`hostname`
export FAH_CLIENT FAH_OPT FAH_HOST
# export SMP_HOSTS
if [ ! -x $FAH_CLIENT ]; then
echo "Folding program: $FAH_CLIENT not found"
sleep 5
exit 1
fi

# Define function that starts folding, which is passed
# the "machine ID" aka "task number" as its argument.
#
FAH_start() {
#
# Make sure the client directory EXISTS
#
FAH_TASK=$1
FAH_DIR=/home/FAH/`hostname`/task_$FAH_TASK
if [ ! -d $FAH_DIR ]; then
mkdir -p $FAH_DIR
echo "folding: creating directory: $FAH_DIR"
fi
#
# If freshly booted, or there is no existing
# folding client configuration, create a default
# configuration. The if statement ensures that
# if the users has changed his or her config it
# will not be overwritten.
#
FAH_CFG=$FAH_DIR/client.cfg
if [ ! -f $FAH_CFG ]; then
echo "[settings]" >$FAH_CFG
echo "username=TH_Foldinator" >>$FAH_CFG
echo "team=4" >>$FAH_CFG
echo "asknet=no" >>$FAH_CFG
echo "machineid=$FAH_TASK" >>$FAH_CFG
echo >>$FAH_CFG
echo "[http]" >>$FAH_CFG
echo "active=no" >>$FAH_CFG
echo "host=localhost" >>$FAH_CFG
echo "port=8080" >>$FAH_CFG
echo "usepasswd=yes" >>$FAH_CFG
echo >>$FAH_CFG
echo "[clienttype]" >>$FAH_CFG
echo "type=1" >>$FAH_CFG
echo >>$FAH_CFG
echo "[core]" >>$FAH_CFG
echo "priority=0" >>$FAH_CFG
echo "folding: created file: $FAH_CFG"
fi

# Start the folding client
SAVE_DIR=`pwd`
cd $FAH_DIR
nohup $FAH_CLIENT $FAH_OPT >$FAH_DIR/screenlog.txt 2>&1 &
cd $SAVE_DIR
echo "folding: started $FAH_CLIENT, task=$FAH_TASK in directory: $FAH_DIR"
echo
return 0
}
#
# end of FAH_start function.
#

#
# Main code:
#
# Search for hostname of the running system, comparing with the list of dual
# systems in SMP_HOSTS, to decide whether to start ONE copy or TWO.
#
if [ ! -z "$SMP_HOSTS" ]; then
for idx in $SMP_HOSTS; do
if [ "$FAH_HOST" = "$idx" ]; then
# This machine is an SMP (dual processor box), so we call the
# FAH_start function TWICE, once for each CPU.
echo "Running on SMP system"
FAH_start 1
FAH_start 2
sleep 5
exit 0
fi
done
fi
#
# This machine wasn't found in the SMP_HOST list, so we only call
# the FAH_start function ONCE for this machine.
echo "Running on non-SMP system"
FAH_start 1
sleep 5
exit 0
#