1
0
Files
2022-09-29 17:59:04 +03:00

77 lines
2.0 KiB
Bash
Executable File

#!/bin/sh -x
BLANA=jhunter@192.26.81.86:/var/www/htdocs/SQA/xperform/scripts
MACHNAME=treefrog
MACHIPADDR=192.26.81.102
# set up files
rcp $BLANA/resolv.conf /etc/resolv.conf
rcp $BLANA/xp_name /
rcp $BLANA/xp_neton /
rcp $BLANA/xp_netoff /
rcp $BLANA/xp_switch /
rcp $BLANA/xp_stop /
# make xperf
cp /etc/passwd /etc/passwdold
echo "xperf::1080:20:xperform:/usr/people/xperf:/bin/csh" > /etc/passwdnew
cat /etc/passwdold /etc/passwdnew > /etc/passwd
rm /etc/passwdold /etc/passwdnew
mkdir /usr/people/xperf
chown xperf /usr/people/xperf
chgrp user /usr/people/xperf
cd /usr/people/xperf
# copy over xperf's files
rcp $BLANA/xperform .
rcp $BLANA/script-62 .
rcp $BLANA/sgisession sgis
rcp $BLANA/dview62 /usr/bin/dview
rcp $BLANA/.showcaserc .showcaserc
rcp $BLANA/.Sgiresources .
rcp $BLANA/.zmailrc .
rcp $BLANA/.zmlayout .
mkdir /usr/people/xperf/dumpster
# new files
mkdir /usr/people/xperf/.desktop-$MACHNAME
mkdir /usr/people/xperf/.desktop-$MACHNAME/ozPanelLayout-1.00
mkdir /usr/people/xperf/.desktop-$MACHNAME/configchecks
rcp $BLANA/Background /usr/people/xperf/.desktop-$MACHNAME/ozPanelLayout-1.00/
rcp $BLANA/4Dwmdeskname /usr/people/xperf/.desktop-$MACHNAME/
rcp $BLANA/4Dwmdesks /usr/people/xperf/.desktop-$MACHNAME/
rcp $BLANA/4Dwmsession /usr/people/xperf/.desktop-$MACHNAME/
rcp $BLANA/checksgisession /usr/people/xperf/.desktop-$MACHNAME/configchecks/
#rcp $BLANA/checkversion /usr/people/xperf/.desktop-$MACHNAME/configchecks/
rcp $BLANA/.forward /usr/people/xperf/.forward
rcp $BLANA/Windows /usr/lib/X11/app-defaults/Windows
# make xperf's mail file
touch /var/mail/xperf
chown xperf /var/mail/xperf
chgrp mail /var/mail/xperf
# organize files
chown xperf .*
chown -R xperf *
chgrp user .*
chgrp -R user *
chown root xperform
chmod 04755 xperform
rqs -force_requickstart /usr/bin/dview
rqs xperform
# special chkconfigs
chkconfig nfs on
chkconfig timed off
chkconfig sendmail off
chkconfig videod on
# remove crontabs
rm /var/spool/cron/crontabs/*
# xperf's the man
echo "xperf" > /etc/autologin
# init 6