Table of Contents

syssetup

syssetup is the (jdg-internal) file-sync mechanism to maintaint and distribute linux-info across systems.

online view:

setup a new linux system

install syssetup

# ---------------------
#  install syssetup

scp -pr syssetup@syssetup.networkconcepts.nl:/usr/local/syssetup /usr/local/
or
rsync -rtlv -e "ssh -l syssetup" syssetup.networkconcepts.nl:/usr/local/syssetup /usr/local/

cd /usr/local/syssetup/
./set_attribs.sh

# on Redhat/CentOS:
ln -sf /usr/local/syssetup/linux/etc/colorprompt.sh /etc/colorprompt.sh
ln -sf /etc/colorprompt.sh /etc/profile.d/colorprompt.sh
# or: /bin/cp -af /usr/local/syssetup/linux/etc/colorprompt.sh /etc/colorprompt.sh

# on Debian/Ubuntu:
ln -sf /usr/local/syssetup/linux/etc/colorprompt.sh /etc/colorprompt.sh
echo -e "\n#\n. /etc/colorprompt.sh\n" >> ~/.bashrc
echo -e "\n#\n. /etc/colorprompt.sh\n" >> /etc/skel/.bashrc
# or: /bin/cp -af /usr/local/syssetup/linux/etc/colorprompt.sh /etc/colorprompt.sh

#
cp -ia /usr/local/syssetup/linux/etc/distro.info /etc/

# relogin (to activate colorprompt.sh)

# setup first-time unison:
syssetup-sync.sh

# remove old-dirs
rm -rf /usr/local/info /usr/local/bin/syssetup

# ---------------------
# delete remove archive

When you get this message:

> syssetup-sync.sh 
...
Fatal error: Warning: inconsistent state.  
For safety, the remaining copies should be deleted.
  Archive ard697db3dd6180deb71336452cff7a8e7 on host jars-desktop is MISSING
  Archive ard9c7816acc87cb8a2b5362fd0401ed08 on host ns2.networkconcepts.nl should be DELETED
Please delete archive files as appropriate and try again.

# do this:
> ssh syssetup@89.106.163.2 rm .unison/ard9c7816acc87cb8a2b5362fd0401ed08

# ---------------------
# install unison

# on CentOS4 do:
wget -c http://dag.wieers.com/rpm/packages/unison/unison-2.27.57-1.el4.rf.i386.rpm
rpm -e unison
rm /usr/local/bin/unison
rpm -Uvh unison-2.27.57-1.el4.rf.i386.rpm
unison -version

    *
      Unison 2.27.57 on Debian Etch and Ubuntu Hardy

# on Debain/4etch do:
wget -c http://blog.philippheckel.com/uploads/2008/05/unison-2.27.57-binary-for-debian-etch.gz

# PREPARED (from syssetup-dir):
cd /usr/local/syssetup/debian/usr/bin/
chmod +x unison-2.27.57 
cp -a /usr/local/syssetup/debian/usr/bin/unison-2.27.57 /usr/bin/
ln -sf /usr/bin/unison-2.27.57 /usr/bin/unison
lt /usr/bin/unison

# ---------------------

install unison

# on CentOS4 do:
wget -c http://dag.wieers.com/rpm/packages/unison/unison-2.27.57-1.el4.rf.i386.rpm
rpm -e unison
rm /usr/local/bin/unison
rpm -Uvh unison-2.27.57-1.el4.rf.i386.rpm
unison -version
# on Debain/4etch do:
wget -c http://blog.philippheckel.com/uploads/2008/05/unison-2.27.57-binary-for-debian-etch.gz

# PREPARED (from syssetup-dir):
cd /usr/local/syssetup/debian/usr/bin/
chmod +x unison-2.27.57 
cp -a /usr/local/syssetup/debian/usr/bin/unison-2.27.57 /usr/bin/
ln -sf /usr/bin/unison-2.27.57 /usr/bin/unison
lt /usr/bin/unison