Configure the clients
In order for client workstations to receive these messages,
the messenger service must be active. To activate this service, follow these
steps.
For Windows 2000 and Windows XP:
- Click Start > Settings... > Control Panel.
- Open Services from Administrative
Tools.
- Scroll down to find Messenger. Ensure that the status is Started and the Startup type is Automatic.
For Windows Server 2003:
- Click Start > Control Panel.
- Open Services from Administrative
Tools.
- Scroll down to find Messenger. Ensure that the status is Started and the Startup type is Automatic.
Start WinPopup.exe
- Click Start > Run...
- Type winpopup.exe in the Open: field.
- Click OK.
For Linux:
- 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:
message command = /bin/bash -c 'echo -e WinPopup Message from %f on
$(date): \n >> /tmp/msg.txt; cat %s >> /tmp/msg.txt; echo -e
\n\n >> /tmp/msg.txt; rm %s'
- Restart the Samba server. For example, (on Red Hat): /etc/rc.d/init.d/samba
restart.
- 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:
#!/bin/bash
# Run this script in the background to display a message window where
# WinPopup messages are displayed in sequence. Samba must be started
# and smb.conf must be configured to append messages to /tmp/msg.txt
# remove old messages
rm /tmp/msg.txt
touch /tmp/msg.txt
chmod 666 /tmp/msg.txt
rxvt -fb -sb -fn lucidasanstypewriter-bold-14 -sl 2048 -bg red -fg
white -title SMB Network Messages -geometry 80x10+150+280 -e tail -f
/tmp/msg.txt
Note:
This script creates an rxvt window. If you
do not have rxvt installed or would rather use an xterm window, substitute
xterm instead.
- Save the script as tailmsg.sh and be sure to make this an executable file.
- Run this file in the background: ./tailmsg.sh &.