Monday July 21, 2008 How to speed up your Solaris/OpenSolaris remote login
If you are logging into remote Solaris / OpenSolaris, it could take quite a few seconds to get the login prompt. If your home directories are exported with NFS while logging (ssh, rsh & telnet) into remote machine this delay can be noticed. The bottleneck here is with the /etc/profile file.
<<snip>> case "$0" in
-sh | -ksh | -ksh93 | -jsh | -bash)
if [ ! -f .hushlogin ]
then
/usr/sbin/quota
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
/bin/mail -E
case $? in
0)
echo "You have new mail."
;;
2)
echo "You have mail."
;;
esac
fi
esac
<<snip>>
Each time a user logs in /etc/profileshell script is executed. The script runs quota,mail and displays motd . If your sure that you d'nt need any of this, then go ahead and just touch .hushlogin file in your home directory
$touch ~/.hushlogin
Now login to remote machine and see the difference.
Posted by pradhap ( Jul 21 2008, 03:33:05 AM PDT ) Permalink Comments [1]