Error: no such theme PatternSkinTheme

Disable Papercut on SSH

Prof. Weinman told Martin and I that it is a nuisance for papercut to start every time he logged in to a MathLAN computer via ssh -Y. We agreed with him.

To prevent this, I changed the line in michie's /etc/profile

from
/usr/bin/papercut &

to
# Start papercut if user is not logged in via ssh
if [ "$SSH_CONNECTION" = "" ]; then
   /usr/bin/papercut &
fi

I tested this out, and it seemed to work correctly.

I then copied the /etc/profile file from zuse to setup, as michie's /etc/profile did not include the lines:
if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

Which are lines that I found in all other workstations' =/etc/profile=s.

(on setup) # scp zuse.cs.grinnell.edu:/etc/profile /setup/squeeze/etc/profile

I then made the same changes as the ones on michie to the /setup/squeeze/etc/profile on flajolet.

I created and ran the following script:
. /home/stone/utilities/squeeze/machine-categories

for machine in $WORKSTATIONS
do
  /usr/bin/ssh root@${machine} '/bin/mv /etc/profile /etc/profile-old; /bin/cp /setup/squeeze/etc/profile /etc/profile; chmod 644 /etc/profile'
done
Topic revision: r3 - 2011-09-21, JeffLeep
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback