Newbie School: Use netsend in Linux

Source: Internet
Author: User
Tags net send
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.