89 lines
4.7 KiB
HTML
89 lines
4.7 KiB
HTML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow"/>
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<title>Configure the clients</title>
|
||
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
||
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
||
|
|
||
|
|
||
|
<a name="cfgclient"></a>
|
||
|
<h2 id="cfgclient">Configure the clients</h2>
|
||
|
<p>In order for client workstations to receive these messages,
|
||
|
the messenger service must be active. To activate this service, follow these
|
||
|
steps.</p>
|
||
|
<p><span class="bold">For Windows 2000 and Windows XP:</span></p>
|
||
|
<ol type="1">
|
||
|
<li>Click <span class="bold">Start</span> > <span class="bold">Settings...</span> > <span class="bold">Control Panel</span>.</li>
|
||
|
<li>Open <span class="bold">Services</span> from <span class="bold">Administrative
|
||
|
Tools</span>.</li>
|
||
|
<li>Scroll down to find Messenger. Ensure that the status is <span class="bold">Started</span> and the <span class="bold">Startup</span> type is <span class="bold">Automatic</span>.</li></ol>
|
||
|
<p><span class="bold">For Windows Server 2003:</span></p>
|
||
|
<ol type="1">
|
||
|
<li>Click <span class="bold">Start</span> > <span class="bold">Control Panel</span>.</li>
|
||
|
<li>Open <span class="bold">Services</span> from <span class="bold">Administrative
|
||
|
Tools</span>.</li>
|
||
|
<li>Scroll down to find Messenger. Ensure that the status is <span class="bold">Started</span> and the <span class="bold">Startup</span> type is <span class="bold">Automatic</span>.</li></ol>
|
||
|
<p><span class="bold">Start WinPopup.exe</span></p>
|
||
|
<ol type="1">
|
||
|
<li>Click <span class="bold">Start</span> > <span class="bold">Run...</span></li>
|
||
|
<li>Type <span class="italic">winpopup.exe</span> in the <span class="bold">Open:</span> field.</li>
|
||
|
<li>Click <span class="bold">OK</span>.</li></ol>
|
||
|
<p></p>
|
||
|
<p><span><span class="bold">For Linux:</span></span></p>
|
||
|
<ol type="1">
|
||
|
<li>You need to enable Samba's messenger support. Edit the smb.conf file so
|
||
|
that it contains a message command directive. The following is an example
|
||
|
line:
|
||
|
<div class="lines"><tt class="xph">message command = /bin/bash -c 'echo -e WinPopup Message from %f on <br />
|
||
|
$(date): \n >> /tmp/msg.txt; cat %s >> /tmp/msg.txt; echo -e <br />
|
||
|
\n\n >> /tmp/msg.txt; rm %s'</tt><br />
|
||
|
</div></li>
|
||
|
<li>Restart the Samba server. For example, (on Red Hat): /etc/rc.d/init.d/samba
|
||
|
restart.</li>
|
||
|
<li>Create a shell script that can read the /tmp/msg.txt file and pop the
|
||
|
messages into a window in the background. The following is an example bash
|
||
|
script:
|
||
|
<div class="lines"><tt class="xph">#!/bin/bash<br />
|
||
|
<br />
|
||
|
# Run this script in the background to display a message window where <br />
|
||
|
# WinPopup messages are displayed in sequence. Samba must be started <br />
|
||
|
# and smb.conf must be configured to append messages to /tmp/msg.txt<br />
|
||
|
<br />
|
||
|
# remove old messages<br />
|
||
|
rm /tmp/msg.txt<br />
|
||
|
touch /tmp/msg.txt<br />
|
||
|
chmod 666 /tmp/msg.txt<br />
|
||
|
<br />
|
||
|
rxvt -fb -sb -fn lucidasanstypewriter-bold-14 -sl 2048 -bg red -fg <br />
|
||
|
white -title SMB Network Messages -geometry 80x10+150+280 -e tail -f <br />
|
||
|
/tmp/msg.txt<br />
|
||
|
</tt><br />
|
||
|
</div>
|
||
|
<a name="wq111"></a>
|
||
|
<div class="notetitle" id="wq111">Note:</div>
|
||
|
<div class="notebody"> This script creates an rxvt window. If you
|
||
|
do not have rxvt installed or would rather use an xterm window, substitute
|
||
|
xterm instead.</div></li>
|
||
|
<li>Save the script as tailmsg.sh and be sure to make this an executable file.</li>
|
||
|
<li>Run this file in the background: ./tailmsg.sh &.</li></ol>
|
||
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
||
|
</body>
|
||
|
</html>
|