Windows and linux network sharing configuration network neighbors

Source: Internet
Author: User
Article title: Configure network peers for Windows and linux networks. Linux is a technology channel of the IT lab in China. I have been using my home computer for seven years, including desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, with the continuous upgrading of computer software and hardware, three computers with different configurations have been purchased at home. I think there are also many friends who have more than two computers in their families. how to make full use of their functions, especially some old computers, is a concern of many friends, here we will introduce all the methods of the Linux Home Network's network neighbors.

In comparison, the network configuration and use in Windows are simpler. Once installed and set up in the LAN, it is very easy to use shared directories, files, printers, and other computers on the LAN. In Linux, resource sharing and access are more complex than Windows. In a LAN environment that includes both Linux and Windows machines (many enterprises will maintain this situation for a long time in the future), the problem is much more complicated.

I. basic samba and installation for linux network neighbors

As you know, Windows can use network neighbors to share resources, while Linux can use NFS to share resources. So what about Linux and Windows?

Linux can communicate with Windows hosts through Samba. Samba adopts the Client/Server architecture and runs the Samba Client program to access the shared resources on Windows hosts. when the Samba Server runs, the Windows host can access the shared resources on Linux. Samba bridges the communication between UNIX and Microsoft Windows.

It is a set of programs that support sharing files and printers between UNIX-based hosts and Windows-based hosts. In addition to shared files and printers, Samba can also act as a Windows Domain Controller so that you can manage Windows networks through UNIX servers. As a domain controller, Samba allows you to create login profiles for roaming (roaming) or local users and use the UNIX authentication scheme to authenticate them.

Features of Samba:

× Share the Linux file system.
× Share the printer installed on the Samba server.
× Windows customers can use their network neighbors to browse the network.
× Use files and printers shared by Windows.
× Supports Windows domain controllers and Windows member servers to authenticate users using Samba resources.
× Supports parsing and browsing WINS name servers.

RHEL 4.0 provides the RPM package for the Samba server, including the following:

× Samba-common: contains files required by both the Samba server and the client.
× Samba: Samba server software.
× Samba-client: Samba client software.
* System-config-samba: a GUI configuration tool for the Samba service.

You can run the following command to determine whether Samba is installed.

# Rpm? Qa | grep samba

If these four software packages appear, Samba is installed. otherwise, Samba must be installed. If you have not installed the Samba software package, you can insert the RHEL installation CD and install it by following the steps below (taking the KDE environment as an example ):

1. click the main menu> System Settings> software package menu items. the "software package management" dialog box is displayed.

2. find "Windows file server" in the dialog box, make sure that this option is selected, and then click "update" at the bottom of the dialog box.

3. install the Samba software package.

4. start samba:

#/Etc/rc. d/init. d/smb start
Starting SMB services: [OK] (started the SMB service program)
Starting NMB services: [OK] (the NetBIOS name resolution service program is started)

If you do not know whether the service is running, run the "/etc/rc. d/init. d/smb status" command. If you want to run Samba at system startup, you can use the following method in RHEL 4.0: use ntsysv settings. Run the command ntsysv with the root permission, add * (use the space key) to the smb service option, and restart the system. The Samba service can be automatically started every time the system starts.

[1] [2] [3] [4] Next page

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.