Article Title: newbie School: Use the netsend tool in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
A net send tool is provided in windows to send messages to machines with the messenger service;
In linux, commands are not provided to communicate with the window machine;
Generally, we can use commands such as talk, write, and wall to communicate with all login users on the same linux system;
Communication with windows, linux can only use samba, instant messaging is not available;
Fortunately, there is a tool called gladeNetsend.
Http://nchc.dl.sourceforge.net/sourceforge/gladenetsend/gladeNetSend-0.9.1.tar.gz
You can use this tool to implement net send short message communication with window;
The installation process is as follows:
1. Extract
Tar-xzf gladeNetSend-0.9.tar.gz
2.
Cd gladeNetSend/src
3. su to root
Su-root
4. Copy the gladeNetSend/src/nbtscan file to the/bin directory and grant the File Execution permission;
Cp nbtscan/bin
Chmod 755/bin/nbtscan
5. Change the/etc/lmhosts permission to be readable and writable to all users.
Chmod 666/etc/lmhosts
6. edit/etc/samba/smb. conf and add the message command item. If this item already exists, change it to the following:
Message command = sh-c 'echo % I: 'cat % s'>/tmp/smbmsg. Log'
If there is no message command entry, add the preceding line.
Restart the smb and nmbd services to ensure that they can receive the net send message:
/Etc/init. d/smb start
Nmbd
Exit the root account now:
7. Create the files smbmsg. log and smbmsg_recvd.log, and change the permission to 666,
Touch/tmp/smbmsg. log
Touch/tmp/smbmsg_recvd.log
Chmod 666/tmp/smbmsg *
8. Run the command in the/gladeNetSend directory to create the Makefile.
. /Autogen. sh
9. Compile
Make
10. The execution file gladenetsend is generated under the src directory.
Go to the src directory and execute:
. /Gladenetsend
You can run the net send command in linux.
You can also copy the execution file to the/bin or/usr/bin directory to ensure that it is in the execution path.