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]
Solaris Nevada / OpenSolaris Mac book right-click
When you run Solaris on Macbook. Trouble is that the right-click doesn't work . One way to solve is to have USB mouse or you can have a key mapped to right-click so that when ever you press the key it automatically maps the key to right click. To enable this goto Start -> Preferences -> Keyboard Accessibility Preferences .
click on "Enable Keyboard accessibility features" and then click "Enable Mouse Keys"
We need the scancode of the key to map it to right-click. For identifying scancode you can run Xev utility . Start the terminal and run xev "/usr/openwin/demo/xev" program. Click on Xev window and press the key which you wanted to map it to right-click, xev will show the scancode for the key . Once you get the scancode you can kill xev.
Sample xev screen:

Now to open your favorite editor and create a file under your home directory ~/ .xmodmap . Put the following entry into it.
-----------
keycode 117 = Pointer_Button3
---------
Save the file and run the command " xmodmap ~/.xmodmap" to activate it. Now while pressing the key you should be able to see right-click menu. Put the an entry in
Start -> Preferences -> Session
so that "xmodmap" command is executed each time you log into Gnome. Add entry "/usr/openwin/bin/xmodmap <path>" . Substitute <path> with location of ".xmodmap" file eg. /export/home/guest/.xmodmap